Closed Bug 801830 Opened 13 years ago Closed 13 years ago

Ionmonkey: wrong negative zero check removal for Mull

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19

People

(Reporter: h4writer, Assigned: h4writer)

Details

(Whiteboard: [ion:p1])

Attachments

(2 files)

Should return "true". Reporting the returned value is a negative zero. For IM (--ion-eager for this testcase) it returns false (i.e. not a negative zero). Reason: MMul uses congruentTo to check if two definitions are the same. It should use the function EqualValues (or check the valuenumber).
Attached patch PatchSplinter Review
Assignee: general → hv1989
Attachment #671581 - Flags: review?(mrosenberg)
Comment on attachment 671581 [details] [diff] [review] Patch Review of attachment 671581 [details] [diff] [review]: ----------------------------------------------------------------- Ok, it really looks like we don't want to use congruentTo in most cases. I'm trying to think of what we need it for ever, and am drawing a bit of a blank.
Attachment #671581 - Flags: review?(mrosenberg) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/b21bafeb5b50 Sorry, I forgot to mention the reviewer :( (In reply to Marty Rosenberg [:mjrosenb] from comment #2) > Ok, it really looks like we don't want to use congruentTo in most cases. > I'm trying to think of what we need it for ever, and am drawing a bit of a > blank. Indeed EqualValues should be used. GVN uses congruenTo to determine if two definitions are the same. But uses more information to make the final decision. E.g. arr[1] and arr[1] are congruent to each other. But when there is a call between both accesses, the call could adjust the value. Therefore EqualValues will report false in that case.
Whoops, looks like I /was/ wrong in bug 689779.
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: