Closed
Bug 686381
Opened 14 years ago
Closed 14 years ago
IonMonkey: Compile JSOP_AND
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: dvander, Assigned: jandem)
References
Details
Attachments
(2 files)
|
8.25 KB,
patch
|
dvander
:
review+
|
Details | Diff | Splinter Review |
|
14.17 KB,
patch
|
dvander
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•14 years ago
|
||
I have a patch to compile JSOP_AND and JSOP_OR, will clean-up and attach next week.
Assignee: general → jandemooij
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•14 years ago
|
||
With this patch we fail basic/shapelessCalleeTest.js with --ion-eager, same assert as bug 691598. I was able to reduce it to a test without AND/OR:
--
function f(a, b, c) {
a();
}
f();
--
Seems to be bug 691598, or do you want me to file a separate bug?
Attachment #570640 -
Flags: review?(dvander)
| Reporter | ||
Updated•14 years ago
|
Attachment #570640 -
Flags: review?(dvander) → review+
| Assignee | ||
Comment 3•14 years ago
|
||
While fuzzing this a bit I noticed there's a problem with bailouts. Consider this expression:
X && Y
If we bail-out at Y, the snapshot of the RHS block assumes X is still on the stack (X is popped immediately after taking the snapshot). The interpreter, however, assumes JSOP_AND already popped X.
The simplest fix is to change JSOP_AND and JSOP_OR to always leave the value on the stack, and insert a JSOP_POP right before the RHS.
I can probably land this patch on m-c first.
Attachment #571961 -
Flags: review?(dvander)
| Reporter | ||
Comment 4•14 years ago
|
||
Comment on attachment 571961 [details] [diff] [review]
Follow-up fix
Review of attachment 571961 [details] [diff] [review]:
-----------------------------------------------------------------
Yeah, would be good to land the non-ion changes on m-c first.
Attachment #571961 -
Flags: review?(dvander) → review+
| Assignee | ||
Comment 5•14 years ago
|
||
I will land these patches tomorrow (after the nightly -> aurora merge).
| Assignee | ||
Comment 6•14 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/97dc5c8ab41b
Please don't close this bug, I still have to land the other patch on the IM branch.
Comment 7•14 years ago
|
||
| Assignee | ||
Comment 8•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•