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

Method setTop

stack.go:150–156  ·  view source on GitHub ↗
(top int)

Source from the content-addressed store, hash-verified

148func (ci *callInfo) jump(offset int) { ci.savedPC += pc(offset) }
149
150func (ci *callInfo) setTop(top int) {
151 if ci.luaCallInfo != nil {
152 diff := top - ci.top
153 ci.frame = ci.frame[:len(ci.frame)+diff]
154 }
155 ci.top = top
156}
157
158func (ci *callInfo) frameIndex(stackSlot int) int {
159 if stackSlot < ci.top-len(ci.frame) || ci.top <= stackSlot {

Callers 6

adjustResultsMethod · 0.80
CheckStackMethod · 0.80
initFunction · 0.80
executeSwitchMethod · 0.80
hookMethod · 0.80
initializeStackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected