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

Method needValue

code.go:442–450  ·  view source on GitHub ↗
(list int)

Source from the content-addressed store, hash-verified

440}
441
442func (f *function) needValue(list int) bool {
443 f.assert(f.isJumpListWalkable(list))
444 for ; list != noJump; list = f.jump(list) {
445 if f.jumpControl(list).opCode() != opTestSet {
446 return true
447 }
448 }
449 return false
450}
451
452func (f *function) patchTestRegister(node, register int) bool {
453 if i := f.jumpControl(node); i.opCode() != opTestSet {

Callers 1

expressionToRegisterMethod · 0.95

Calls 5

assertMethod · 0.95
isJumpListWalkableMethod · 0.95
jumpMethod · 0.95
jumpControlMethod · 0.95
opCodeMethod · 0.80

Tested by

no test coverage detected