Lines Matching refs:base
423 StkId base; member
465 StkId base; member
719 luaV_concat(L,n+1,cast_int(L->top-L->base)-1); in luaO_pushvfstring()
1016 L->base=L->ci->base;
1017 luaF_close(L,L->base);
1018 luaD_seterrorobj(L,status,L->base);
1058 ci->base=(ci->base-oldstack)+L->stack;
1061 L->base=(L->base-oldstack)+L->stack;
1098 StkId base,fixed;
1102 base=L->top;
1110 return base;
1135 StkId st,base;
1140 base=func+1;
1141 if(L->top>base+p->numparams)
1142 L->top=base+p->numparams;
1146 base=adjust_varargs(L,p,nargs);
1151 L->base=ci->base=base;
1152 ci->top=L->base+p->maxstacksize;
1167 L->base=ci->base=ci->func+1;
1186 L->base=(ci-1)->base;
1222 L->base=L->ci->base;
2274 L1->base=L1->ci->base=L1->top;
2384 L->base=L->top=L->ci->base;
2533 for(p=ci->base;p<ci->top;p++)
3644 static void luaK_setlist(FuncState*fs,int base,int nelems,int tostore){
3648 luaK_codeABC(fs,OP_SETLIST,base,b,c);
3650 luaK_codeABC(fs,OP_SETLIST,base,b,0);
3653 fs->freereg=base+1;
3790 static int singlevaraux(FuncState*fs,TString*n,expdesc*var,int base){
3799 if(!base)
4094 int base,nparams;
4124 base=f->u.s.info;
4130 nparams=fs->freereg-(base+1);
4132 init_exp(f,VCALL,luaK_codeABC(fs,OP_CALL,base,nparams+1,2));
4134 fs->freereg=base+1;
4441 static void forbody(LexState*ls,int base,int line,int nvars,int isnum){
4447 prep=isnum?luaK_codeAsBx(fs,OP_FORPREP,base,(-1)):luaK_jump(fs);
4454 endfor=(isnum)?luaK_codeAsBx(fs,OP_FORLOOP,base,(-1)):
4455 luaK_codeABC(fs,OP_TFORLOOP,base,0,nvars);
4461 int base=fs->freereg;
4476 forbody(ls,base,line,1,1);
4483 int base=fs->freereg;
4494 forbody(ls,base,line,nvars-3,0);
4885 StkId top=L->base+last+1;
4936 #define RA(i)(base+GETARG_A(i))
4937 #define RB(i)check_exp(getBMode(GET_OPCODE(i))==OpArgR,base+GETARG_B(i))
4938 #define RKB(i)check_exp(getBMode(GET_OPCODE(i))==OpArgK,ISK(GETARG_B(i))?k+INDEXK(GETARG_B(i)):base…
4939 #define RKC(i)check_exp(getCMode(GET_OPCODE(i))==OpArgK,ISK(GETARG_C(i))?k+INDEXK(GETARG_C(i)):base…
4942 #define Protect(x){L->savedpc=pc;{x;};base=L->base;}
4946 StkId base;
4952 base=L->base;
5088 setobj(L,RA(i),base+b);
5148 base=L->base;
5166 if(L->openupval)luaF_close(L,ci->base);
5167 L->base=ci->base=ci->func+((ci+1)->base-pfunc);
5177 base=L->base;
5188 if(L->openupval)luaF_close(L,base);
5279 ncl->l.upvals[j]=luaF_findupval(L,base+GETARG_B(*pc));
5290 int n=cast_int(ci->base-ci->func)-cl->p->numparams-1;
5299 setobj(L,ra+j,ci->base-n+j);
5310 #define api_checknelems(L,n)luai_apicheck(L,(n)<=(L->top-L->base))
5315 TValue*o=L->base+(idx-1);
5316 luai_apicheck(L,idx<=L->ci->top-L->base);
5321 luai_apicheck(L,idx!=0&&-idx<=L->top-L->base);
5351 if(size>8000||(L->top-L->base+size)>8000)
5367 return cast_int(L->top-L->base);
5371 luai_apicheck(L,idx<=L->stack_last-L->base);
5372 while(L->top<L->base+idx)
5374 L->top=L->base+idx;
5377 luai_apicheck(L,-(idx+1)<=(L->top-L->base));
5819 luaV_concat(L,n,cast_int(L->top-L->base)-1);
6221 int base=luaL_optint(L,2,10);
6222 if(base==10){
6233 luaL_argcheck(L,2<=base&&base<=36,2,"base out of range");
6234 n=strtoul(s1,&s2,base);