Closed Bug 789300 Opened 12 years ago Closed 12 years ago

IonMonkey: Differential Testing: Getting different output w/without --ion-eager

Categories

(Core :: JavaScript Engine, defect)

Other Branch
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: gkw, Assigned: sstangl)

References

Details

(Keywords: regression, testcase, Whiteboard: [ion:p1:fx18])

Attachments

(1 file)

print(NaN ? "" : function() {}) shows the following on 64-bit js opt shell on IonMonkey changeset 93ebcdb7b37b without --ion-eager: function () {} but shows nothing (except newlines?) with --ion-eager, when the testcase is passed in as a CLI argument.
(I think this might be wrong, but posting nonetheless) autoBisect shows this is probably related to the following changeset: The first bad revision is: changeset: 105607:6cd206b37176 parent: 104959:b63bb39ed1c0 parent: 105606:a0240c1043ee user: David Anderson date: Wed Aug 29 17:51:24 2012 -0700 summary: Merge from mozilla-central.
Keywords: regression
try { (function() { Object.defineProperty(this, "s0", { get: function() { Object.defineProperty(this.t1, 7, { value: '' / window }) } }) })() { a2 = [] } s0 + '' } catch (e) {} try { t1 = (a2) gc() s0 + 2 function window() {} b = this.s0; print(function(){}); var window = (""), al } catch (e) {} Locking this bug s-s because the gc in the middle of this testcase seems essential: $ ./js testcase.js function (){} $ ./js --ion-eager testcase.js As one can see, there is no output from --ion-eager. Note that "function (){}" shows when the testcase is pasted into the shell both with and without --ion-eager.
Group: core-security
OS: Windows 7 → All
Hardware: x86_64 → All
Whiteboard: [ion:p1:fx18]
Attachment #662309 - Flags: review?(dvander)
Comment on attachment 662309 [details] [diff] [review] Properly detect NaN truthiness. Review of attachment 662309 [details] [diff] [review]: ----------------------------------------------------------------- We can take the security flag off this.
Attachment #662309 - Flags: review?(dvander) → review+
Sean checked that comment 2 is a different bug altogether, spun off as s-s bug 792234. This bug should only be marked non-s-s when bug 792234 is opened up.
Group: core-security
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: