Lines Matching refs:e2
714 static int constfolding (OpCode op, expdesc *e1, expdesc *e2) { in constfolding() argument
716 if (!isnumeral(e1) || !isnumeral(e2)) return 0; in constfolding()
717 if ((op == OP_DIV || op == OP_MOD) && e2->u.nval == 0) in constfolding()
722 if (op == OP_DIV && e1->u.nval == INT64_MIN && e2->u.nval == -1) in constfolding()
724 r = luaO_arith(op - OP_ADD + LUA_OPADD, e1->u.nval, e2->u.nval); in constfolding()
731 expdesc *e1, expdesc *e2, int line) { in codearith() argument
732 if (constfolding(op, e1, e2)) in codearith()
735 int o2 = (op != OP_UNM && op != OP_LEN) ? luaK_exp2RK(fs, e2) : 0; in codearith()
739 freeexp(fs, e2); in codearith()
742 freeexp(fs, e2); in codearith()
753 expdesc *e2) { in codecomp() argument
755 int o2 = luaK_exp2RK(fs, e2); in codecomp()
756 freeexp(fs, e2); in codecomp()
769 expdesc e2; in luaK_prefix() local
770 e2.t = e2.f = NO_JUMP; e2.k = VKNUM; e2.u.nval = 0; in luaK_prefix()
777 codearith(fs, OP_UNM, e, &e2, line); in luaK_prefix()
784 codearith(fs, OP_LEN, e, &e2, line); in luaK_prefix()
820 expdesc *e1, expdesc *e2, int line) { in luaK_posfix() argument
824 luaK_dischargevars(fs, e2); in luaK_posfix()
825 luaK_concat(fs, &e2->f, e1->f); in luaK_posfix()
826 *e1 = *e2; in luaK_posfix()
831 luaK_dischargevars(fs, e2); in luaK_posfix()
832 luaK_concat(fs, &e2->t, e1->t); in luaK_posfix()
833 *e1 = *e2; in luaK_posfix()
837 luaK_exp2val(fs, e2); in luaK_posfix()
838 if (e2->k == VRELOCABLE && GET_OPCODE(getcode(fs, e2)) == OP_CONCAT) { in luaK_posfix()
839 lua_assert(e1->u.info == GETARG_B(getcode(fs, e2))-1); in luaK_posfix()
841 SETARG_B(getcode(fs, e2), e1->u.info); in luaK_posfix()
842 e1->k = VRELOCABLE; e1->u.info = e2->u.info; in luaK_posfix()
845 luaK_exp2nextreg(fs, e2); /* operand must be on the 'stack' */ in luaK_posfix()
846 codearith(fs, OP_CONCAT, e1, e2, line); in luaK_posfix()
852 codearith(fs, cast(OpCode, op - OPR_ADD + OP_ADD), e1, e2, line); in luaK_posfix()
856 codecomp(fs, cast(OpCode, op - OPR_EQ + OP_EQ), 1, e1, e2); in luaK_posfix()
860 codecomp(fs, cast(OpCode, op - OPR_NE + OP_EQ), 0, e1, e2); in luaK_posfix()