(stackSlot int)
| 156 | } |
| 157 | |
| 158 | func (ci *callInfo) frameIndex(stackSlot int) int { |
| 159 | if stackSlot < ci.top-len(ci.frame) || ci.top <= stackSlot { |
| 160 | panic("frameIndex called with out-of-range stackSlot") |
| 161 | } |
| 162 | return stackSlot - ci.top + len(ci.frame) |
| 163 | } |
| 164 | |
| 165 | func (l *State) pushLuaFrame(function, base, resultCount int, p *prototype) *callInfo { |
| 166 | ci := l.callInfo.next |
nothing calls this directly
no outgoing calls
no test coverage detected