Closed Bug 1329016 Opened 9 years ago Closed 9 years ago

CacheIR: Allow -0 (negative zero) index

Categories

(Core :: JavaScript Engine: JIT, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: evilpies, Assigned: evilpies)

References

(Blocks 2 open bugs)

Details

(Keywords: perf)

Attachments

(1 file)

Google Docs has IC misses caused by -0. We can truncate those to 0, because ToString(-0) is "0". (Btw we can't do this for strings like "-0", integer exotic objects should even return undefined for this) We have to communicate this clearly, because if we try to use guardIsInt32 outside of array accesses this is not a valid transformation!
Keywords: perf
Priority: -- → P3
Assignee: nobody → evilpies
As you said, fixing bug 1330793 made this trivial.
Attachment #8828387 - Flags: review?(jdemooij)
Comment on attachment 8828387 [details] [diff] [review] Allow negative zero in CacheIR index check Review of attachment 8828387 [details] [diff] [review]: ----------------------------------------------------------------- \o/
Attachment #8828387 - Flags: review?(jdemooij) → review+
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/59962d7c3d8c Allow negative zero in CacheIR index check. r=jandem
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: