Lines Matching refs:ra
4914 static void Arith(lua_State*L,StkId ra,const TValue*rb,
4922 case TM_ADD:setnvalue(ra,luai_numadd(nb,nc));break;
4923 case TM_SUB:setnvalue(ra,luai_numsub(nb,nc));break;
4924 case TM_MUL:setnvalue(ra,luai_nummul(nb,nc));break;
4925 case TM_DIV:setnvalue(ra,luai_numdiv(nb,nc));break;
4926 case TM_MOD:setnvalue(ra,luai_nummod(nb,nc));break;
4927 case TM_POW:setnvalue(ra,luai_numpow(nb,nc));break;
4928 case TM_UNM:setnvalue(ra,luai_numunm(nb));break;
4932 else if(!call_binTM(L,rb,rc,ra,op))
4943 …er(rc)){lua_Number nb=nvalue(rb),nc=nvalue(rc);setnvalue(ra,op(nb,nc));}else Protect(Arith(L,ra,rb…
4956 StkId ra;
4957 ra=RA(i);
4960 setobj(L,ra,RB(i));
4964 setobj(L,ra,KBx(i));
4968 setbvalue(ra,GETARG_B(i));
4976 }while(rb>=ra);
4981 setobj(L,ra,cl->upvals[b]->v);
4988 Protect(luaV_gettable(L,&g,rb,ra));
4992 Protect(luaV_gettable(L,RB(i),RKC(i),ra));
4998 Protect(luaV_settable(L,&g,KBx(i),ra));
5003 setobj(L,uv->v,ra);
5004 luaC_barrier(L,uv,ra);
5008 Protect(luaV_settable(L,ra,RKB(i),RKC(i)));
5014 sethvalue(L,ra,luaH_new(L,luaO_fb2int(b),luaO_fb2int(c)));
5020 setobj(L,ra+1,rb);
5021 Protect(luaV_gettable(L,rb,RKC(i),ra));
5052 setnvalue(ra,luai_numunm(nb));
5055 Protect(Arith(L,ra,rb,rb,TM_UNM));
5061 setbvalue(ra,res);
5068 setnvalue(ra,cast_num(luaH_getn(hvalue(rb))));
5072 setnvalue(ra,cast_num(tsvalue(rb)->len));
5077 if(!call_binTM(L,rb,(&luaO_nilobject_),ra,TM_LEN))
5122 if(l_isfalse(ra)!=GETARG_C(i))
5130 setobj(L,ra,rb);
5139 if(b!=0)L->top=ra+b;
5141 switch(luaD_precall(L,ra,nresults)){
5158 if(b!=0)L->top=ra+b;
5160 switch(luaD_precall(L,ra,(-1))){
5187 if(b!=0)L->top=ra+b-1;
5190 b=luaD_poscall(L,ra);
5199 lua_Number step=nvalue(ra+2);
5200 lua_Number idx=luai_numadd(nvalue(ra),step);
5201 lua_Number limit=nvalue(ra+1);
5205 setnvalue(ra,idx);
5206 setnvalue(ra+3,idx);
5211 const TValue*init=ra;
5212 const TValue*plimit=ra+1;
5213 const TValue*pstep=ra+2;
5215 if(!tonumber(init,ra))
5217 else if(!tonumber(plimit,ra+1))
5219 else if(!tonumber(pstep,ra+2))
5221 setnvalue(ra,luai_numsub(nvalue(ra),nvalue(pstep)));
5226 StkId cb=ra+3;
5227 setobj(L,cb+2,ra+2);
5228 setobj(L,cb+1,ra+1);
5229 setobj(L,cb,ra);
5247 n=cast_int(L->top-ra)-1;
5251 runtime_check(L,ttistable(ra));
5252 h=hvalue(ra);
5257 TValue*val=ra+n;
5264 luaF_close(L,ra);
5282 setclvalue(L,ra,ncl);
5293 ra=RA(i);
5295 L->top=ra+n;
5299 setobj(L,ra+j,ci->base-n+j);
5302 setnilvalue(ra+j);