Closed
Bug 1406340
Opened 7 years ago
Closed 7 years ago
rm ArgumentsRectifierReg
Categories
(Core :: JavaScript Engine: JIT, enhancement)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
Details
Attachments
(1 file, 1 obsolete file)
29.98 KB,
patch
|
jandem
:
review+
|
Details | Diff | Splinter Review |
The rectifier trampoline can just load argc from the stack (and is actually already doing that). This simplifies a bunch of code and is necessary for bug 1405994.
14 files changed, 15 insertions(+), 73 deletions(-)
Attachment #8915925 -
Flags: review?(bbouvier)
Assignee | ||
Updated•7 years ago
|
Attachment #8915925 -
Flags: review?(bbouvier)
Comment 1•7 years ago
|
||
Comment on attachment 8915925 [details] [diff] [review]
Patch
Review of attachment 8915925 [details] [diff] [review]:
-----------------------------------------------------------------
Nice, thanks!
::: js/src/jit/BaselineCacheIRCompiler.cpp
@@ -529,5 @@
>
> Register obj = allocator.useRegister(masm, reader.objOperandId());
> Address getterAddr(stubAddress(reader.stubOffset()));
>
> - AutoScratchRegisterExcluding code(allocator, masm, ArgumentsRectifierReg);
according to searchfox, AutoScratchRegisterExcluding could now be removed \o/
::: js/src/jit/Lowering.cpp
@@ +499,5 @@
>
> void
> LIRGenerator::visitCall(MCall* call)
> {
> MOZ_ASSERT(CallTempReg0 != CallTempReg1);
pre-existing: could it be a static_assert?
Attachment #8915925 -
Flags: review+
Assignee | ||
Comment 2•7 years ago
|
||
Thanks for the quick review!
This removes AutoScratchRegisterExcluding, fixes a bug on x64, and removes the CallTempReg0 != CallTempReg1 assert as discussed on IRC.
Attachment #8915925 -
Attachment is obsolete: true
Attachment #8915937 -
Flags: review+
Pushed by jandemooij@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b632d01bb670
Remove ArgumentsRectifierReg and just load argc from the stack. r=bbouvier
Comment 4•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in
before you can comment on or make changes to this bug.
Description
•