Closed
Bug 801830
Opened 13 years ago
Closed 13 years ago
Ionmonkey: wrong negative zero check removal for Mull
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: h4writer, Assigned: h4writer)
Details
(Whiteboard: [ion:p1])
Attachments
(2 files)
247 bytes,
application/javascript
|
Details | |
545 bytes,
patch
|
mjrosenb
:
review+
|
Details | Diff | Splinter Review |
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).
Assignee | ||
Comment 1•13 years ago
|
||
Assignee: general → hv1989
Attachment #671581 -
Flags: review?(mrosenberg)
![]() |
||
Updated•13 years ago
|
Whiteboard: [ion:p1]
Comment 2•13 years ago
|
||
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+
Assignee | ||
Comment 3•13 years ago
|
||
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.
Comment 4•13 years ago
|
||
Whoops, looks like I /was/ wrong in bug 689779.
Comment 5•13 years ago
|
||
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.
Description
•