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

Method Jump

code.go:369–374  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

367}
368
369func (f *function) Jump() int {
370 f.assert(f.isJumpListWalkable(f.jumpPC))
371 jumpPC := f.jumpPC
372 f.jumpPC = noJump
373 return f.Concatenate(f.encodeAsBx(opJump, 0, noJump), jumpPC)
374}
375
376func (f *function) JumpTo(target int) { f.PatchList(f.Jump(), target) }
377func (f *function) ReturnNone() { f.EncodeABC(opReturn, 0, 1, 0) }

Callers 7

LeaveBlockMethod · 0.95
JumpToMethod · 0.95
conditionalJumpMethod · 0.95
expressionToRegisterMethod · 0.95
OpenForBodyMethod · 0.95
testThenBlockMethod · 0.80
statementMethod · 0.80

Calls 4

assertMethod · 0.95
isJumpListWalkableMethod · 0.95
ConcatenateMethod · 0.95
encodeAsBxMethod · 0.95

Tested by

no test coverage detected