Closed
Bug 1112563
Opened 11 years ago
Closed 11 years ago
Use useRegisterAtStart for LoadSlot/LoadFixedSlot/GetDOMMember
Categories
(Core :: JavaScript Engine: JIT, defect)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: jandem, Assigned: jandem)
Details
Attachments
(2 files)
|
2.67 KB,
patch
|
sunfish
:
review+
|
Details | Diff | Splinter Review |
|
4.40 KB,
patch
|
sunfish
:
review+
|
Details | Diff | Splinter Review |
The main worry is when we load a Value on 32-bit platforms (we emit two loads and we don't want the first one to clobber our object/slots register), but fortunately masm.loadValue already knows how to deal with this (it just swaps the loads) so this should be safe.
Attachment #8537809 -
Flags: review?(sunfish)
Comment 1•11 years ago
|
||
Comment on attachment 8537809 [details] [diff] [review]
Patch
Review of attachment 8537809 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good. Can LStoreFixedSlotV and friends use AtStart too?
Attachment #8537809 -
Flags: review?(sunfish) → review+
| Assignee | ||
Comment 2•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/cfc612739ad7
(In reply to Dan Gohman [:sunfish] from comment #1)
> Can LStoreFixedSlotV and friends use AtStart too?
I think so, but what'd be the benefit if they have no defs/temps? We've been pretty conservative with *AtStart to do the safe thing by default..
Comment 3•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
| Assignee | ||
Comment 4•11 years ago
|
||
bz noticed that codegen is slightly worse on x64 when we're loading an object and reusing the input register (extra move to scratch register). This patch fixes that by using useRegister in this case. x64 has more registers so the optimization is less useful there anyway.
Attachment #8538493 -
Flags: review?(sunfish)
Comment 5•11 years ago
|
||
Comment on attachment 8538493 [details] [diff] [review]
Follow-up fix
Review of attachment 8538493 [details] [diff] [review]:
-----------------------------------------------------------------
Makes sense.
Attachment #8538493 -
Flags: review?(sunfish) → review+
| Assignee | ||
Comment 6•11 years ago
|
||
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 7•11 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•