Closed Bug 1058587 Opened 10 years ago Closed 10 years ago

OdinMonkey MIPS: Bias the global-register to improve instruction encoding efficiency

Categories

(Core :: JavaScript Engine: JIT, defect)

Other
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: rankov, Assigned: rankov)

References

Details

Attachments

(1 file, 2 obsolete files)

This is followup on ARM bug 1051595.
Assignee: nobody → branislav.rankov
Status: NEW → ASSIGNED
Depends on: 1051595
Here's the suggested patch. This was tested, but with other pending patches applied, so could use retesting.
With the uses in GenerateAsyncInterruptExit() also patched, thanks.
Attachment #8479028 - Attachment is obsolete: true
Attachment #8479042 - Flags: review?(branislav.rankov)
Comment on attachment 8479042 [details] [diff] [review]
Bias the global-register to improve instruction encoding efficiency.

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

Looks good. Might need a rebase because I landed the patches from bug 972836

::: js/src/asmjs/AsmJSValidate.cpp
@@ -6647,3 @@
>      masm.pop(HeapReg);
>      masm.as_jr(HeapReg);
> -    masm.loadPtr(Address(GlobalReg, AsmJSModule::heapGlobalDataOffset()), HeapReg);

nit: Line over 99 characters

::: js/src/jit/mips/CodeGenerator-mips.cpp
@@ +2184,5 @@
>      Register tmp = ToRegister(ins->temp());
>      Register out = ToRegister(ins->output());
>      unsigned addr = mir->globalDataOffset();
>  
> +    BaseIndex source(GlobalReg, index, TimesFour, addr - AsmJSGlobalRegBias);

Maybe change addr above for consistency.
Attachment #8479042 - Flags: review?(branislav.rankov) → review+
Rebase. Carry forward r+.
Attachment #8479042 - Attachment is obsolete: true
Attachment #8479480 - Flags: review+
This only touches the MIPS backend which is not tested by tbpl, so requesting checkin without a try build
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/55ada902c145
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: