Closed Bug 379925 Opened 18 years ago Closed 18 years ago

"Assertion failure: pc[oplen] == JSOP_POP || pc[oplen] == JSOP_SETSP"

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla1.9alpha5

People

(Reporter: jruderman, Assigned: brendan)

References

Details

(Keywords: assertion, regression, testcase)

Attachments

(1 file)

js> function() { for(var [x, x] = [,,] in []); } Assertion failure: pc[oplen] == JSOP_POP || pc[oplen] == JSOP_SETSP, at jsopcode.c:1297
Attached patch fixSplinter Review
How did I miss those JSOP_SETSP assertions and tests in jsopcode.c? This also simplifies the emitter by removing the wantpop optimization, allowing the decompiler to interpret JSOP_POPN in a context-free way when decompiling group assignment. Always emitting JSOP_POP after JSOP_SETLOCAL, etc., also paves the way for future fixing of bug 312354. /be
Assignee: general → brendan
Status: NEW → ASSIGNED
Attachment #264065 - Flags: review?(igor)
OS: Mac OS X → All
Priority: -- → P1
Hardware: PC → All
Target Milestone: --- → mozilla1.9alpha5
Attachment #264065 - Flags: review?(igor) → review+
Fixed on trunk: js/src/jsemit.c 3.249 js/src/jsopcode.c 3.234 /be
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
/cvsroot/mozilla/js/tests/js1_7/decompilation/regress-379925.js,v <-- regress-379925.js initial revision: 1.1
Flags: in-testsuite+
verified fixed 1.9.0 linux/mac*/windows.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: