• Home
  • Raw
  • Download

Lines Matching refs:ra

335 void luaV_objlen (lua_State *L, StkId ra, const TValue *rb) {  in luaV_objlen()  argument
342 setnvalue(ra, cast_num(luaH_getn(h))); /* else primitive len */ in luaV_objlen()
346 setnvalue(ra, cast_num(tsvalue(rb)->len)); in luaV_objlen()
356 callTM(L, tm, rb, rb, ra, 1); in luaV_objlen()
360 void luaV_arith (lua_State *L, StkId ra, const TValue *rb, in luaV_arith() argument
367 setnvalue(ra, res); in luaV_arith()
369 else if (!call_binTM(L, rb, rc, ra, op)) in luaV_arith()
402 StkId ra) { in pushclosure() argument
408 setclLvalue(L, ra, ncl); /* anchor new closure in stack */ in pushclosure()
525 setnvalue(ra, op(L, nb, nc)); \
527 else { Protect(luaV_arith(L, ra, rb, rc, tm)); } }
547 StkId ra; in luaV_execute() local
553 ra = RA(i); in luaV_execute()
558 setobjs2s(L, ra, RB(i)); in luaV_execute()
562 setobj2s(L, ra, rb); in luaV_execute()
568 setobj2s(L, ra, rb); in luaV_execute()
571 setbvalue(ra, GETARG_B(i)); in luaV_execute()
577 setnilvalue(ra++); in luaV_execute()
582 setobj2s(L, ra, cl->upvals[b]->v); in luaV_execute()
586 Protect(luaV_gettable(L, cl->upvals[b]->v, RKC(i), ra)); in luaV_execute()
589 Protect(luaV_gettable(L, RB(i), RKC(i), ra)); in luaV_execute()
597 setobj(L, uv->v, ra); in luaV_execute()
598 luaC_barrier(L, uv, ra); in luaV_execute()
601 Protect(luaV_settable(L, ra, RKB(i), RKC(i))); in luaV_execute()
607 sethvalue(L, ra, t); in luaV_execute()
610 checkGC(L, ra + 1); in luaV_execute()
614 setobjs2s(L, ra+1, rb); in luaV_execute()
615 Protect(luaV_gettable(L, rb, RKC(i), ra)); in luaV_execute()
639 setnvalue(ra, luai_numunm(L, nb)); in luaV_execute()
642 Protect(luaV_arith(L, ra, rb, rb, TM_UNM)); in luaV_execute()
648 setbvalue(ra, res); in luaV_execute()
651 Protect(luaV_objlen(L, ra, RB(i))); in luaV_execute()
659 ra = RA(i); /* 'luav_concat' may invoke TMs and move the stack */ in luaV_execute()
661 setobjs2s(L, ra, rb); in luaV_execute()
662 checkGC(L, (ra >= rb ? ra + 1 : rb)); in luaV_execute()
695 if (GETARG_C(i) ? l_isfalse(ra) : !l_isfalse(ra)) in luaV_execute()
705 setobjs2s(L, ra, rb); in luaV_execute()
712 if (b != 0) L->top = ra+b; /* else previous instruction set top */ in luaV_execute()
713 if (luaD_precall(L, ra, nresults)) { /* C function? */ in luaV_execute()
725 if (b != 0) L->top = ra+b; /* else previous instruction set top */ in luaV_execute()
727 if (luaD_precall(L, ra, LUA_MULTRET)) /* C function? */ in luaV_execute()
754 if (b != 0) L->top = ra+b-1; in luaV_execute()
756 b = luaD_poscall(L, ra); in luaV_execute()
768 lua_Number step = nvalue(ra+2); in luaV_execute()
769 lua_Number idx = luai_numadd(L, nvalue(ra), step); /* increment index */ in luaV_execute()
770 lua_Number limit = nvalue(ra+1); in luaV_execute()
774 setnvalue(ra, idx); /* update internal index... */ in luaV_execute()
775 setnvalue(ra+3, idx); /* ...and external index */ in luaV_execute()
779 const TValue *init = ra; in luaV_execute()
780 const TValue *plimit = ra+1; in luaV_execute()
781 const TValue *pstep = ra+2; in luaV_execute()
782 if (!tonumber(init, ra)) in luaV_execute()
784 else if (!tonumber(plimit, ra+1)) in luaV_execute()
786 else if (!tonumber(pstep, ra+2)) in luaV_execute()
788 setnvalue(ra, luai_numsub(L, nvalue(ra), nvalue(pstep))); in luaV_execute()
792 StkId cb = ra + 3; /* call base */ in luaV_execute()
793 setobjs2s(L, cb+2, ra+2); in luaV_execute()
794 setobjs2s(L, cb+1, ra+1); in luaV_execute()
795 setobjs2s(L, cb, ra); in luaV_execute()
800 ra = RA(i); in luaV_execute()
806 if (!ttisnil(ra + 1)) { /* continue loop? */ in luaV_execute()
807 setobjs2s(L, ra, ra + 1); /* save control variable */ in luaV_execute()
816 if (n == 0) n = cast_int(L->top - ra) - 1; in luaV_execute()
821 luai_runtimecheck(L, ttistable(ra)); in luaV_execute()
822 h = hvalue(ra); in luaV_execute()
827 TValue *val = ra+n; in luaV_execute()
837 pushclosure(L, p, cl->upvals, base, ra); /* create a new one */ in luaV_execute()
839 setclLvalue(L, ra, ncl); /* push cashed closure */ in luaV_execute()
840 checkGC(L, ra + 1); in luaV_execute()
849 ra = RA(i); /* previous call may change the stack */ in luaV_execute()
850 L->top = ra + n; in luaV_execute()
854 setobjs2s(L, ra + j, base - n + j); in luaV_execute()
857 setnilvalue(ra + j); in luaV_execute()