Closed
Bug 774644
Opened 13 years ago
Closed 12 years ago
IonMonkey: Differential Testing: Missing ReferenceError with ion.
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: decoder, Assigned: dvander)
References
Details
(Keywords: regression, testcase, Whiteboard: [ion:p1:fx18])
Attachments
(1 file)
2.23 KB,
patch
|
jandem
:
review+
|
Details | Diff | Splinter Review |
The following testcase shows different behavior with options --ion -n -m --ion-eager vs. --no-ion on ionmonkey revision c4c50dc6317c:
function YearFromTime() {}
addTestCase();
function addTestCase() {
var start = -62126352000000;
YearFromTime();
var stop = -62094729600000;
for (var d = start; d < stop; d >>= 86400000)
new TestCase();
}
$ debug64/js --ion -n -m --ion-eager test.js
<no output>
$ debug64/js --no-ion test.js
test.js:8: ReferenceError: TestCase is not defined
Assignee | ||
Comment 1•13 years ago
|
||
The bug is that the very end of the loop has an INT32 type for |d|, but the loop header has |double|. But the OSR type deduction algorithm stops just short of the loop header, so we accidentally unbox the double as an integer.
Assignee | ||
Updated•13 years ago
|
Attachment #643189 -
Flags: review? → review?(jdemooij)
Comment 3•12 years ago
|
||
Comment on attachment 643189 [details] [diff] [review]
fix
Review of attachment 643189 [details] [diff] [review]:
-----------------------------------------------------------------
Good catch.
Attachment #643189 -
Flags: review?(jdemooij) → review+
Assignee | ||
Comment 4•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 5•12 years ago
|
||
Backed out due to orange: https://hg.mozilla.org/projects/ionmonkey/rev/db83474903a5
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Updated•12 years ago
|
Whiteboard: [ion:p1:fx18]
Comment 6•12 years ago
|
||
Here's another testcase:
function f() {
var x = x * 23;
while (x)
x = 2;
return x;
}
print(f());
Prints 0 with --ion-eager instead of NaN. We enter via OSR and assume x is int32, but it may also be a double.
Assignee | ||
Comment 7•12 years ago
|
||
Attempting a relanding since I can't reproduce shell failures locally:
https://hg.mozilla.org/projects/ionmonkey/rev/547ffa1e37eb
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•