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

Method invertJump

code.go:769–773  ·  view source on GitHub ↗
(pc int)

Source from the content-addressed store, hash-verified

767}
768
769func (f *function) invertJump(pc int) {
770 i := f.jumpControl(pc)
771 f.p.l.assert(testTMode(i.opCode()) && i.opCode() != opTestSet && i.opCode() != opTest)
772 i.setA(not(i.a()))
773}
774
775func (f *function) jumpOnCondition(e exprDesc, cond int) int {
776 if e.kind == kindRelocatable {

Callers 2

GoIfTrueMethod · 0.95
encodeNotMethod · 0.95

Calls 7

jumpControlMethod · 0.95
testTModeFunction · 0.85
notFunction · 0.85
opCodeMethod · 0.80
setAMethod · 0.80
aMethod · 0.80
assertMethod · 0.45

Tested by

no test coverage detected