Fix lvalue=>rvalue handling todo with parenthesization and assignment (320032, r=mrbkap).

This commit is contained in:
brendan%mozilla.org 2005-12-28 05:36:29 +00:00
Родитель f4233b408d
Коммит 2af0d6a3d8
1 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -2066,10 +2066,7 @@ interrupt:
goto out; goto out;
EMPTY_CASE(JSOP_NOP) EMPTY_CASE(JSOP_NOP)
EMPTY_CASE(JSOP_GROUP)
BEGIN_CASE(JSOP_GROUP)
obj = NULL;
END_CASE(JSOP_GROUP)
BEGIN_CASE(JSOP_PUSH) BEGIN_CASE(JSOP_PUSH)
PUSH_OPND(JSVAL_VOID); PUSH_OPND(JSVAL_VOID);
@ -2808,6 +2805,7 @@ interrupt:
goto out; goto out;
sp--; sp--;
STORE_OPND(-1, rval); STORE_OPND(-1, rval);
obj = NULL;
END_CASE(JSOP_SETNAME) END_CASE(JSOP_SETNAME)
#define INTEGER_OP(OP, EXTRA_CODE) \ #define INTEGER_OP(OP, EXTRA_CODE) \
@ -3611,6 +3609,7 @@ interrupt:
PROPERTY_OP(-2, CACHED_SET(OBJ_SET_PROPERTY(cx, obj, id, &rval))); PROPERTY_OP(-2, CACHED_SET(OBJ_SET_PROPERTY(cx, obj, id, &rval)));
sp--; sp--;
STORE_OPND(-1, rval); STORE_OPND(-1, rval);
obj = NULL;
END_CASE(JSOP_SETPROP) END_CASE(JSOP_SETPROP)
BEGIN_CASE(JSOP_GETELEM) BEGIN_CASE(JSOP_GETELEM)
@ -3624,6 +3623,7 @@ interrupt:
ELEMENT_OP(-2, CACHED_SET(OBJ_SET_PROPERTY(cx, obj, id, &rval))); ELEMENT_OP(-2, CACHED_SET(OBJ_SET_PROPERTY(cx, obj, id, &rval)));
sp -= 2; sp -= 2;
STORE_OPND(-1, rval); STORE_OPND(-1, rval);
obj = NULL;
END_CASE(JSOP_SETELEM) END_CASE(JSOP_SETELEM)
BEGIN_CASE(JSOP_ENUMELEM) BEGIN_CASE(JSOP_ENUMELEM)
@ -4506,6 +4506,7 @@ interrupt:
GC_POKE(cx, obj->slots[slot]); GC_POKE(cx, obj->slots[slot]);
OBJ_SET_SLOT(cx, obj, slot, rval); OBJ_SET_SLOT(cx, obj, slot, rval);
} }
obj = NULL;
END_CASE(JSOP_SETGVAR) END_CASE(JSOP_SETGVAR)
BEGIN_CASE(JSOP_DEFCONST) BEGIN_CASE(JSOP_DEFCONST)
@ -4987,6 +4988,7 @@ interrupt:
if (!ok) if (!ok)
goto out; goto out;
obj = NULL;
sp += i; sp += i;
if (js_CodeSpec[op2].ndefs) if (js_CodeSpec[op2].ndefs)
STORE_OPND(-1, rval); STORE_OPND(-1, rval);
@ -5336,6 +5338,7 @@ interrupt:
goto out; goto out;
sp -= 2; sp -= 2;
STORE_OPND(-1, rval); STORE_OPND(-1, rval);
obj = NULL;
END_CASE(JSOP_SETXMLNAME) END_CASE(JSOP_SETXMLNAME)
BEGIN_CASE(JSOP_XMLNAME) BEGIN_CASE(JSOP_XMLNAME)
@ -5527,6 +5530,7 @@ interrupt:
goto out; goto out;
--sp; --sp;
STORE_OPND(-1, rval); STORE_OPND(-1, rval);
obj = NULL;
END_LITOPX_CASE(JSOP_SETMETHOD) END_LITOPX_CASE(JSOP_SETMETHOD)
BEGIN_CASE(JSOP_GETFUNNS) BEGIN_CASE(JSOP_GETFUNNS)