Closed Bug 871777 Opened 11 years ago Closed 11 years ago

Fold load into jump in BaselineHelpers-x64.h

Categories

(Core :: JavaScript Engine, enhancement)

x86_64
All
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: sunfish, Unassigned)

Details

Attachments

(1 file, 2 obsolete files)

In x64's EmitStubGuardFailure, instead of loading the jump destination into a register, the load can be folded into the jump.
Attached patch a proposed fix (obsolete) — Splinter Review
Attachment #749019 - Flags: review?
Attachment #749019 - Flags: review? → review?(jdemooij)
Comment on attachment 749019 [details] [diff] [review]
a proposed fix

Review of attachment 749019 [details] [diff] [review]:
-----------------------------------------------------------------

Nice, thanks! If you can post an updated patch I will land it for you.

::: js/src/ion/x64/BaselineHelpers-x64.h
@@ +273,2 @@
>      // Return address is already loaded, just jump to the next stubcode.
> +    masm.jmp(Operand(BaselineStubReg, ICStub::offsetOfStubCode()));

We should make the same change to EmitEnterTypeMonitorIC, and fix x86 as well.
Attachment #749019 - Flags: review?(jdemooij) → review+
New patch with the same fix applied to EmitEnterTypeMonitorIC and x86.
Attachment #749019 - Attachment is obsolete: true
Attachment #749454 - Flags: review?(jdemooij)
This time with the correct bug number.
Attachment #749454 - Attachment is obsolete: true
Attachment #749454 - Flags: review?(jdemooij)
Attachment #749455 - Flags: review?(jdemooij)
Attachment #749455 - Flags: review?(jdemooij)
Attachment #749455 - Flags: review+
Attachment #749455 - Flags: checkin?(jdemooij)
Attachment #749455 - Flags: checkin?(jdemooij) → checkin+
https://hg.mozilla.org/mozilla-central/rev/eeeb181131c7
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: