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

Method dropLastInstruction

code.go:314–318  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

312}
313
314func (f *function) dropLastInstruction() {
315 f.assert(len(f.f.code) == len(f.f.lineInfo))
316 f.f.code = f.f.code[:len(f.f.code)-1]
317 f.f.lineInfo = f.f.lineInfo[:len(f.f.lineInfo)-1]
318}
319
320func (f *function) EncodeABC(op opCode, a, b, c int) int {
321 f.assert(opMode(op) == iABC)

Callers 1

jumpOnConditionMethod · 0.95

Calls 1

assertMethod · 0.95

Tested by

no test coverage detected