Eliminate useless genexp for(;;) conditions (442342, r=jorendorff).

This commit is contained in:
Brendan Eich
2008-07-01 13:05:11 -07:00
parent c4707cae81
commit 9717bc0d6c
5 changed files with 27 additions and 18 deletions

View File

@@ -3868,9 +3868,6 @@ Decompile(SprintStack *ss, jsbytecode *pc, intN nb, JSOp nextop)
} else {
op = (JSOp) *pc2;
op = ((js_CodeSpec[op].format & JOF_PARENHEAD) ||
((op == JSOP_IFNE || op == JSOP_IFNEX) &&
(!(sn2 = js_GetSrcNote(outer, pc2)) ||
SN_TYPE(sn2) != SRC_GENEXP)) ||
((js_CodeSpec[op].format & JOF_INVOKE) &&
GET_ARGC(pc2) == 1) ||
((op == JSOP_IFEQ || op == JSOP_IFEQX) &&