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

Method jumpControl

code.go:435–440  ·  view source on GitHub ↗
(pc int)

Source from the content-addressed store, hash-verified

433}
434
435func (f *function) jumpControl(pc int) *instruction {
436 if pc >= 1 && testTMode(f.f.code[pc-1].opCode()) {
437 return &f.f.code[pc-1]
438 }
439 return &f.f.code[pc]
440}
441
442func (f *function) needValue(list int) bool {
443 f.assert(f.isJumpListWalkable(list))

Callers 3

needValueMethod · 0.95
patchTestRegisterMethod · 0.95
invertJumpMethod · 0.95

Calls 2

testTModeFunction · 0.85
opCodeMethod · 0.80

Tested by

no test coverage detected