(L *LState, baseframe *callFrame)
| 11 | ) |
| 12 | |
| 13 | func mainLoop(L *LState, baseframe *callFrame) { |
| 14 | var inst uint32 |
| 15 | var cf *callFrame |
| 16 | |
| 17 | if L.stack.IsEmpty() { |
| 18 | return |
| 19 | } |
| 20 | |
| 21 | L.currentFrame = L.stack.Last() |
| 22 | if L.currentFrame.Fn.IsG { |
| 23 | callGFunction(L, false) |
| 24 | return |
| 25 | } |
| 26 | |
| 27 | for { |
| 28 | cf = L.currentFrame |
| 29 | inst = cf.Fn.Proto.Code[cf.Pc] |
| 30 | cf.Pc++ |
| 31 | if jumpTable[int(inst>>26)](L, inst, baseframe) == 1 { |
| 32 | return |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | func mainLoopWithContext(L *LState, baseframe *callFrame) { |
| 38 | var inst uint32 |
nothing calls this directly
no test coverage detected
searching dependent graphs…