Lines Matching defs:pc
310 static void kname (Proto *p, int pc, int c, const char **name) {
320 const char *what = getobjname(p, pc, c, name); /* search for 'c' */
330 static int filterpc (int pc, int jmptarget) {
331 if (pc < jmptarget) /* is code conditional (inside a jump)? */
333 else return pc; /* current position sets that register */
341 int pc;
344 for (pc = 0; pc < lastpc; pc++) {
345 Instruction i = p->code[pc];
352 setreg = filterpc(pc, jmptarget);
357 setreg = filterpc(pc, jmptarget);
363 setreg = filterpc(pc, jmptarget);
368 int dest = pc + 1 + b;
370 if (pc < dest && dest <= lastpc) {
378 setreg = filterpc(pc, jmptarget);
383 setreg = filterpc(pc, jmptarget);
393 int pc;
398 pc = findsetreg(p, lastpc, reg);
399 if (pc != -1) { /* could find instruction? */
400 Instruction i = p->code[pc];
406 return getobjname(p, pc, b, name); /* get name for 'b' */
414 ? luaF_getlocalname(p, t + 1, pc)
416 kname(p, pc, k, name);
426 : GETARG_Ax(p->code[pc + 1]);
435 kname(p, pc, k, name);
448 int pc = currentpc(ci); /* calling instruction index */
449 Instruction i = p->code[pc]; /* calling instruction */
453 return getobjname(p, pc, GETARG_A(i), name);