Bug 461248 - Remove JSOP_RESUME (r=gal/jorendorff).

This commit is contained in:
Brendan Eich
2008-10-24 12:34:08 -07:00
parent 00b3d04266
commit eb0f0aad56
8 changed files with 86 additions and 78 deletions

View File

@@ -1767,9 +1767,9 @@ Decompile(SprintStack *ss, jsbytecode *pc, intN nb, JSOp nextop)
* Pop a condition expression for if/for/while. JSOP_IFEQ's precedence forces
* extra parens around assignment, which avoids a strict-mode warning.
*/
#define POP_COND_STR() \
PopStr(ss, (js_CodeSpec[ss->opcodes[ss->top - 1]].format & JOF_SET) \
? JSOP_IFEQ \
#define POP_COND_STR() \
PopStr(ss, (js_CodeSpec[ss->opcodes[ss->top - 1]].format & JOF_SET) \
? JSOP_IFEQ \
: JSOP_NOP)
/*
@@ -3476,8 +3476,6 @@ Decompile(SprintStack *ss, jsbytecode *pc, intN nb, JSOp nextop)
todo = Sprint(&ss->sprinter, "");
}
#endif
LOCAL_ASSERT(pc[len] == JSOP_RESUME);
len += JSOP_RESUME_LENGTH;
break;
case JSOP_DELNAME:
@@ -3900,10 +3898,6 @@ Decompile(SprintStack *ss, jsbytecode *pc, intN nb, JSOp nextop)
LOCAL_ASSERT(GET_ARGC(pc) == 0);
len = JSOP_CALL_LENGTH;
/* Skip over the waiting JSOP_RESUME. */
LOCAL_ASSERT(pc[len] == JSOP_RESUME);
len += JSOP_RESUME_LENGTH;
/*
* Arrange to parenthesize this genexp unless:
*