Closed
Bug 816015
Opened 12 years ago
Closed 12 years ago
IonMonkey: Make ARM's second scratch register configurable
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: jandem, Assigned: jandem)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
mjrosenb
:
review+
|
Details | Diff | Splinter Review |
Some macro-assembler methods use lr as scratch. This doesn't work well with the baseline compiler's IC stubs since lr holds the return address.
Simplest fix for now is to make it configurable, so that Ion can keep using lr and baseline can set it to one of the unused registers.
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #686053 -
Flags: review?(mrosenberg)
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #686055 -
Flags: review?(mrosenberg)
Assignee | ||
Updated•12 years ago
|
Attachment #686053 -
Attachment is obsolete: true
Attachment #686053 -
Flags: review?(mrosenberg)
Comment 3•12 years ago
|
||
Comment on attachment 686055 [details] [diff] [review]
Patch for inbound
Review of attachment 686055 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/ion/arm/MacroAssembler-arm.h
@@ +31,5 @@
> + // defaults to lr, since it's non-allocatable (as it can be clobbered by some
> + // instructions). Allow the baseline compiler to override this though, since
> + // baseline IC stubs rely on lr holding the return address.
> + Register secondScratchReg_;
> +
minor nit: would it be possible to make this a const, and only set it in the constructor?
Having the scratch change mid-run shouldn't affect anything, but I don't see why that would be a particularly useful ability.
Attachment #686055 -
Flags: review?(mrosenberg) → review+
Assignee | ||
Comment 4•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/bca4d501d3ff
(Nit was discussed on IRC.)
Comment 5•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in
before you can comment on or make changes to this bug.
Description
•