Closed
Bug 1141121
Opened 9 years ago
Closed 9 years ago
x86/x64: do not force value argument to atomic binop into a register
Categories
(Core :: JavaScript Engine: JIT, defect)
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: lth, Assigned: lth)
References
Details
Attachments
(1 file)
16.16 KB,
patch
|
h4writer
:
review+
|
Details | Diff | Splinter Review |
The register set is perfectly capable of representing the value argument as an immediate if it is a known constant, and it requires little work to fix this once the fixes for bug 1141067 are in place.
Assignee | ||
Comment 1•9 years ago
|
||
Another bug that's convenient to tackle at the same time is pinning the input value register to the output register when emitting XADD.
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8579209 -
Flags: review?(hv1989)
Comment 3•9 years ago
|
||
Comment on attachment 8579209 [details] [diff] [review] Use immediates and reuse inputs when possible (x86 and x64) Review of attachment 8579209 [details] [diff] [review]: ----------------------------------------------------------------- I'm wondering if you are potentially optimizing this too early? Is SharedArrayBuffer already enabled / feature complete etc? It might be good to first get that fixed, before starting to optimize all these cases? Feel free to correct me and say that is currently the most important thing to do for the future SharedArrayBuffer. I'm not quite aware of the status of SharedArrayBuffer.
Attachment #8579209 -
Flags: review?(hv1989) → review+
Assignee | ||
Comment 4•9 years ago
|
||
(In reply to Hannes Verschore [:h4writer] from comment #3) > > I'm wondering if you are potentially optimizing this too early? > Is SharedArrayBuffer already enabled / feature complete etc? It might be > good to first get that fixed, before starting to optimize all these cases? > > Feel free to correct me and say that is currently the most important thing > to do for the future SharedArrayBuffer. I'm not quite aware of the status of > SharedArrayBuffer. No, you're spot on. The recent series of optimizations (this was the last of them) came about because this part of the shared memory feature is stable and because I needed to get a better grip on how to implement optimizations as a matter of course in future code.
Assignee | ||
Comment 5•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7cf3406ac1cd
Comment 6•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7cf3406ac1cd
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox39:
--- → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•