MCPcopy Index your code
hub / github.com/Shopify/go-lua / patchListHelper

Method patchListHelper

code.go:470–481  ·  view source on GitHub ↗
(list, target, register, defaultTarget int)

Source from the content-addressed store, hash-verified

468}
469
470func (f *function) patchListHelper(list, target, register, defaultTarget int) {
471 f.assert(f.isJumpListWalkable(list))
472 for list != noJump {
473 next := f.jump(list)
474 if f.patchTestRegister(list, register) {
475 f.fixJump(list, target)
476 } else {
477 f.fixJump(list, defaultTarget)
478 }
479 list = next
480 }
481}
482
483func (f *function) dischargeJumpPC() {
484 f.assert(f.isJumpListWalkable(f.jumpPC))

Callers 3

dischargeJumpPCMethod · 0.95
PatchListMethod · 0.95
expressionToRegisterMethod · 0.95

Calls 5

assertMethod · 0.95
isJumpListWalkableMethod · 0.95
jumpMethod · 0.95
patchTestRegisterMethod · 0.95
fixJumpMethod · 0.95

Tested by

no test coverage detected