Lines Matching refs:pc
512 #define pcRel(pc,p)(cast(int,(pc)-(p)->code)-1) argument
513 #define getline_(f,pc)(((f)->lineinfo)?(f)->lineinfo[pc]:0) argument
971 int pc;
2405 int pc=currentpc(L,ci);
2406 if(pc<0)
2409 return getline_(ci_func(ci)->l.p,pc);
3003 if(fs->pc>fs->lasttarget){
3004 if(fs->pc==0){
3009 previous=&fs->f->code[fs->pc-1];
3038 static void fixjump(FuncState*fs,int pc,int dest){
3039 Instruction*jmp=&fs->f->code[pc];
3040 int offset=dest-(pc+1);
3046 fs->lasttarget=fs->pc;
3047 return fs->pc;
3049 static int getjump(FuncState*fs,int pc){
3050 int offset=GETARG_sBx(fs->f->code[pc]);
3054 return(pc+1)+offset;
3056 static Instruction*getjumpcontrol(FuncState*fs,int pc){
3057 Instruction*pi=&fs->f->code[pc];
3058 if(pc>=1&&testTMode(GET_OPCODE(*(pi-1))))
3096 patchlistaux(fs,fs->jpc,fs->pc,((1<<8)-1),fs->pc);
3100 if(target==fs->pc)
3257 Instruction*pc=&getcode(fs,e);
3258 SETARG_A(*pc,reg);
3390 Instruction*pc=getjumpcontrol(fs,e->u.s.info);
3391 SETARG_A(*pc,!(GETARG_A(*pc)));
3397 fs->pc--;
3406 int pc;
3410 pc=(-1);
3415 pc=e->u.s.info;
3419 pc=jumponcond(fs,e,0);
3423 luaK_concat(fs,&e->f,pc);
3428 int pc;
3432 pc=(-1);
3436 pc=e->u.s.info;
3440 pc=jumponcond(fs,e,1);
3444 luaK_concat(fs,&e->t,pc);
3626 fs->f->lineinfo[fs->pc-1]=line;
3631 luaM_growvector(fs->L,f->code,fs->pc,f->sizecode,Instruction,
3633 f->code[fs->pc]=i;
3634 luaM_growvector(fs->L,f->lineinfo,fs->pc,f->sizelineinfo,int,
3636 f->lineinfo[fs->pc]=line;
3637 return fs->pc++;
3751 getlocvar(fs,fs->nactvar-nvars).startpc=fs->pc;
3757 getlocvar(fs,--fs->nactvar).endpc=fs->pc;
3883 fs->pc=0;
3906 luaM_reallocvector(L,f->code,f->sizecode,fs->pc,Instruction);
3907 f->sizecode=fs->pc;
3908 luaM_reallocvector(L,f->lineinfo,f->sizelineinfo,fs->pc,int);
3909 f->sizelineinfo=fs->pc;
4005 int pc=luaK_codeABC(fs,OP_NEWTABLE,0,0,0);
4009 init_exp(t,VRELOCABLE,pc);
4037 SETARG_B(fs->f->code[pc],luaO_int2fb(cc.na));
4038 SETARG_C(fs->f->code[pc],luaO_int2fb(cc.nh));
4550 getlocvar(fs,fs->nactvar-1).startpc=fs->pc;
4942 #define dojump(L,pc,i){(pc)+=(i);}
4943 #define Protect(x){L->savedpc=pc;{x;};base=L->base;}
4949 const Instruction*pc;
4951 pc=L->savedpc;
4956 const Instruction i=*pc++;
4970 if(GETARG_C(i))pc++;
5093 dojump(L,pc,GETARG_sBx(i));
5101 dojump(L,pc,GETARG_sBx(*pc));
5103 pc++;
5109 dojump(L,pc,GETARG_sBx(*pc));
5111 pc++;
5117 dojump(L,pc,GETARG_sBx(*pc));
5119 pc++;
5124 dojump(L,pc,GETARG_sBx(*pc));
5125 pc++;
5132 dojump(L,pc,GETARG_sBx(*pc));
5134 pc++;
5141 L->savedpc=pc;
5160 L->savedpc=pc;
5190 L->savedpc=pc;
5205 dojump(L,pc,GETARG_sBx(i));
5215 L->savedpc=pc;
5223 dojump(L,pc,GETARG_sBx(i));
5237 dojump(L,pc,GETARG_sBx(*pc));
5239 pc++;
5251 if(c==0)c=cast_int(*pc++);
5276 for(j=0;j<nup;j++,pc++){
5277 if(GET_OPCODE(*pc)==OP_GETUPVAL)
5278 ncl->l.upvals[j]=cl->upvals[GETARG_B(*pc)];
5280 ncl->l.upvals[j]=luaF_findupval(L,base+GETARG_B(*pc));