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;
2404 int pc=currentpc(L,ci);
2405 if(pc<0)
2408 return getline_(ci_func(ci)->l.p,pc);
3002 if(fs->pc>fs->lasttarget){
3003 if(fs->pc==0){
3008 previous=&fs->f->code[fs->pc-1];
3037 static void fixjump(FuncState*fs,int pc,int dest){
3038 Instruction*jmp=&fs->f->code[pc];
3039 int offset=dest-(pc+1);
3045 fs->lasttarget=fs->pc;
3046 return fs->pc;
3048 static int getjump(FuncState*fs,int pc){
3049 int offset=GETARG_sBx(fs->f->code[pc]);
3053 return(pc+1)+offset;
3055 static Instruction*getjumpcontrol(FuncState*fs,int pc){
3056 Instruction*pi=&fs->f->code[pc];
3057 if(pc>=1&&testTMode(GET_OPCODE(*(pi-1))))
3095 patchlistaux(fs,fs->jpc,fs->pc,((1<<8)-1),fs->pc);
3099 if(target==fs->pc)
3256 Instruction*pc=&getcode(fs,e);
3257 SETARG_A(*pc,reg);
3389 Instruction*pc=getjumpcontrol(fs,e->u.s.info);
3390 SETARG_A(*pc,!(GETARG_A(*pc)));
3396 fs->pc--;
3405 int pc;
3409 pc=(-1);
3414 pc=e->u.s.info;
3418 pc=jumponcond(fs,e,0);
3422 luaK_concat(fs,&e->f,pc);
3427 int pc;
3431 pc=(-1);
3435 pc=e->u.s.info;
3439 pc=jumponcond(fs,e,1);
3443 luaK_concat(fs,&e->t,pc);
3625 fs->f->lineinfo[fs->pc-1]=line;
3630 luaM_growvector(fs->L,f->code,fs->pc,f->sizecode,Instruction,
3632 f->code[fs->pc]=i;
3633 luaM_growvector(fs->L,f->lineinfo,fs->pc,f->sizelineinfo,int,
3635 f->lineinfo[fs->pc]=line;
3636 return fs->pc++;
3750 getlocvar(fs,fs->nactvar-nvars).startpc=fs->pc;
3756 getlocvar(fs,--fs->nactvar).endpc=fs->pc;
3882 fs->pc=0;
3905 luaM_reallocvector(L,f->code,f->sizecode,fs->pc,Instruction);
3906 f->sizecode=fs->pc;
3907 luaM_reallocvector(L,f->lineinfo,f->sizelineinfo,fs->pc,int);
3908 f->sizelineinfo=fs->pc;
4004 int pc=luaK_codeABC(fs,OP_NEWTABLE,0,0,0);
4008 init_exp(t,VRELOCABLE,pc);
4036 SETARG_B(fs->f->code[pc],luaO_int2fb(cc.na));
4037 SETARG_C(fs->f->code[pc],luaO_int2fb(cc.nh));
4549 getlocvar(fs,fs->nactvar-1).startpc=fs->pc;
4941 #define dojump(L,pc,i){(pc)+=(i);}
4942 #define Protect(x){L->savedpc=pc;{x;};base=L->base;}
4948 const Instruction*pc;
4950 pc=L->savedpc;
4955 const Instruction i=*pc++;
4969 if(GETARG_C(i))pc++;
5092 dojump(L,pc,GETARG_sBx(i));
5100 dojump(L,pc,GETARG_sBx(*pc));
5102 pc++;
5108 dojump(L,pc,GETARG_sBx(*pc));
5110 pc++;
5116 dojump(L,pc,GETARG_sBx(*pc));
5118 pc++;
5123 dojump(L,pc,GETARG_sBx(*pc));
5124 pc++;
5131 dojump(L,pc,GETARG_sBx(*pc));
5133 pc++;
5140 L->savedpc=pc;
5159 L->savedpc=pc;
5189 L->savedpc=pc;
5204 dojump(L,pc,GETARG_sBx(i));
5214 L->savedpc=pc;
5222 dojump(L,pc,GETARG_sBx(i));
5236 dojump(L,pc,GETARG_sBx(*pc));
5238 pc++;
5250 if(c==0)c=cast_int(*pc++);
5275 for(j=0;j<nup;j++,pc++){
5276 if(GET_OPCODE(*pc)==OP_GETUPVAL)
5277 ncl->l.upvals[j]=cl->upvals[GETARG_B(*pc)];
5279 ncl->l.upvals[j]=luaF_findupval(L,base+GETARG_B(*pc));