Closed Bug 1406340 Opened 7 years ago Closed 7 years ago

rm ArgumentsRectifierReg

Categories

(Core :: JavaScript Engine: JIT, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox58 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Patch (obsolete) — 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)
Attachment #8915925 - Flags: review?(bbouvier)
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+
Attached patch PatchSplinter Review
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
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: