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

Method opCode

instructions.go:136–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134func mask0(n, p uint) instruction { return ^mask1(n, p) }
135
136func (i instruction) opCode() opCode { return opCode(i >> posOp & (1<<sizeOp - 1)) }
137func (i instruction) arg(pos, size uint) int { return int(i >> pos & mask1(size, 0)) }
138func (i *instruction) setOpCode(op opCode) { i.setArg(posOp, sizeOp, int(op)) }
139func (i *instruction) setArg(pos, size uint, arg int) {

Callers 15

StringMethod · 0.95
functionNameMethod · 0.80
loadNilMethod · 0.80
jumpControlMethod · 0.80
needValueMethod · 0.80
patchTestRegisterMethod · 0.80
PatchCloseMethod · 0.80
invertJumpMethod · 0.80
jumpOnConditionMethod · 0.80
PostfixMethod · 0.80
lastLoadMethod · 0.80
objectNameMethod · 0.80

Calls 1

opCodeTypeAlias · 0.85

Tested by

no test coverage detected