Lines Matching refs:ra

4915 static void Arith(lua_State*L,StkId ra,const TValue*rb,
4923 case TM_ADD:setnvalue(ra,luai_numadd(nb,nc));break;
4924 case TM_SUB:setnvalue(ra,luai_numsub(nb,nc));break;
4925 case TM_MUL:setnvalue(ra,luai_nummul(nb,nc));break;
4926 case TM_DIV:setnvalue(ra,luai_numdiv(nb,nc));break;
4927 case TM_MOD:setnvalue(ra,luai_nummod(nb,nc));break;
4928 case TM_POW:setnvalue(ra,luai_numpow(nb,nc));break;
4929 case TM_UNM:setnvalue(ra,luai_numunm(nb));break;
4933 else if(!call_binTM(L,rb,rc,ra,op))
4944 …er(rc)){lua_Number nb=nvalue(rb),nc=nvalue(rc);setnvalue(ra,op(nb,nc));}else Protect(Arith(L,ra,rb…
4957 StkId ra;
4958 ra=RA(i);
4961 setobj(L,ra,RB(i));
4965 setobj(L,ra,KBx(i));
4969 setbvalue(ra,GETARG_B(i));
4977 }while(rb>=ra);
4982 setobj(L,ra,cl->upvals[b]->v);
4989 Protect(luaV_gettable(L,&g,rb,ra));
4993 Protect(luaV_gettable(L,RB(i),RKC(i),ra));
4999 Protect(luaV_settable(L,&g,KBx(i),ra));
5004 setobj(L,uv->v,ra);
5005 luaC_barrier(L,uv,ra);
5009 Protect(luaV_settable(L,ra,RKB(i),RKC(i)));
5015 sethvalue(L,ra,luaH_new(L,luaO_fb2int(b),luaO_fb2int(c)));
5021 setobj(L,ra+1,rb);
5022 Protect(luaV_gettable(L,rb,RKC(i),ra));
5053 setnvalue(ra,luai_numunm(nb));
5056 Protect(Arith(L,ra,rb,rb,TM_UNM));
5062 setbvalue(ra,res);
5069 setnvalue(ra,cast_num(luaH_getn(hvalue(rb))));
5073 setnvalue(ra,cast_num(tsvalue(rb)->len));
5078 if(!call_binTM(L,rb,(&luaO_nilobject_),ra,TM_LEN))
5123 if(l_isfalse(ra)!=GETARG_C(i))
5131 setobj(L,ra,rb);
5140 if(b!=0)L->top=ra+b;
5142 switch(luaD_precall(L,ra,nresults)){
5159 if(b!=0)L->top=ra+b;
5161 switch(luaD_precall(L,ra,(-1))){
5188 if(b!=0)L->top=ra+b-1;
5191 b=luaD_poscall(L,ra);
5200 lua_Number step=nvalue(ra+2);
5201 lua_Number idx=luai_numadd(nvalue(ra),step);
5202 lua_Number limit=nvalue(ra+1);
5206 setnvalue(ra,idx);
5207 setnvalue(ra+3,idx);
5212 const TValue*init=ra;
5213 const TValue*plimit=ra+1;
5214 const TValue*pstep=ra+2;
5216 if(!tonumber(init,ra))
5218 else if(!tonumber(plimit,ra+1))
5220 else if(!tonumber(pstep,ra+2))
5222 setnvalue(ra,luai_numsub(nvalue(ra),nvalue(pstep)));
5227 StkId cb=ra+3;
5228 setobj(L,cb+2,ra+2);
5229 setobj(L,cb+1,ra+1);
5230 setobj(L,cb,ra);
5248 n=cast_int(L->top-ra)-1;
5252 runtime_check(L,ttistable(ra));
5253 h=hvalue(ra);
5258 TValue*val=ra+n;
5265 luaF_close(L,ra);
5283 setclvalue(L,ra,ncl);
5294 ra=RA(i);
5296 L->top=ra+n;
5300 setobj(L,ra+j,ci->base-n+j);
5303 setnilvalue(ra+j);