MCPcopy Index your code
hub / github.com/yuin/gopher-lua / pushCallFrame

Method pushCallFrame

_state.go:1016–1031  ·  view source on GitHub ↗

+inline-end

(cf callFrame, fn LValue, meta bool)

Source from the content-addressed store, hash-verified

1014} // +inline-end
1015
1016func (ls *LState) pushCallFrame(cf callFrame, fn LValue, meta bool) { // +inline-start
1017 if meta {
1018 cf.NArgs++
1019 ls.reg.Insert(fn, cf.LocalBase)
1020 }
1021 if cf.Fn == nil {
1022 ls.RaiseError("attempt to call a non-function object")
1023 }
1024 if ls.stack.IsFull() {
1025 ls.RaiseError("stack overflow")
1026 }
1027 ls.stack.Push(cf)
1028 newcf := ls.stack.Last()
1029 // +inline-call ls.initCallFrame newcf
1030 ls.currentFrame = newcf
1031} // +inline-end
1032
1033func (ls *LState) callR(nargs, nret, rbase int) {
1034 base := ls.reg.Top() - nargs - 1

Callers 1

callRMethod · 0.95

Calls 5

RaiseErrorMethod · 0.95
IsFullMethod · 0.65
PushMethod · 0.65
LastMethod · 0.65
InsertMethod · 0.45

Tested by

no test coverage detected