Lines Matching refs:pc
60 static void traceexec (lua_State *L, const Instruction *pc) { in traceexec() argument
63 L->savedpc = pc; in traceexec()
70 int npc = pcRel(pc, p); in traceexec()
74 if (npc == 0 || pc <= oldpc || newline != getline(p, pcRel(oldpc, p))) in traceexec()
358 #define dojump(L,pc,i) {(pc) += (i); luai_threadyield(L);} argument
361 #define Protect(x) { L->savedpc = pc; {x;}; base = L->base; }
381 const Instruction *pc; in luaV_execute() local
384 pc = L->savedpc; in luaV_execute()
390 const Instruction i = *pc++; in luaV_execute()
394 traceexec(L, pc); in luaV_execute()
396 L->savedpc = pc - 1; in luaV_execute()
417 if (GETARG_C(i)) pc++; /* skip next instruction (if C) */ in luaV_execute()
542 dojump(L, pc, GETARG_sBx(i)); in luaV_execute()
550 dojump(L, pc, GETARG_sBx(*pc)); in luaV_execute()
552 pc++; in luaV_execute()
558 dojump(L, pc, GETARG_sBx(*pc)); in luaV_execute()
560 pc++; in luaV_execute()
566 dojump(L, pc, GETARG_sBx(*pc)); in luaV_execute()
568 pc++; in luaV_execute()
573 dojump(L, pc, GETARG_sBx(*pc)); in luaV_execute()
574 pc++; in luaV_execute()
581 dojump(L, pc, GETARG_sBx(*pc)); in luaV_execute()
583 pc++; in luaV_execute()
590 L->savedpc = pc; in luaV_execute()
610 L->savedpc = pc; in luaV_execute()
643 L->savedpc = pc; in luaV_execute()
660 dojump(L, pc, GETARG_sBx(i)); /* jump back */ in luaV_execute()
670 L->savedpc = pc; /* next steps may throw errors */ in luaV_execute()
678 dojump(L, pc, GETARG_sBx(i)); in luaV_execute()
692 dojump(L, pc, GETARG_sBx(*pc)); /* jump back */ in luaV_execute()
694 pc++; in luaV_execute()
706 if (c == 0) c = cast_int(*pc++); in luaV_execute()
731 for (j=0; j<nup; j++, pc++) { in luaV_execute()
732 if (GET_OPCODE(*pc) == OP_GETUPVAL) in luaV_execute()
733 ncl->l.upvals[j] = cl->upvals[GETARG_B(*pc)]; in luaV_execute()
735 lua_assert(GET_OPCODE(*pc) == OP_MOVE); in luaV_execute()
736 ncl->l.upvals[j] = luaF_findupval(L, base + GETARG_B(*pc)); in luaV_execute()