Closed Bug 1119783 Opened 9 years ago Closed 9 years ago

IonMonkey MIPS: Fix latest build issues (unboxObject)

Categories

(Core :: JavaScript Engine: JIT, defect)

Other
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38

People

(Reporter: rankov, Assigned: rankov)

Details

Attachments

(1 file, 1 obsolete file)

      No description provided.
Attached patch 1119783-Fix-build.patch (obsolete) — Splinter Review
Attachment #8546613 - Flags: review?(jdemooij)
Comment on attachment 8546613 [details] [diff] [review]
1119783-Fix-build.patch

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

::: js/src/jit/mips/MacroAssembler-mips.cpp
@@ +2564,5 @@
>  void
> +MacroAssemblerMIPSCompat::unboxNonDouble(const BaseIndex &src, Register dest)
> +{
> +    computeScaledAddress(src, SecondScratchReg);
> +    ma_lw(dest, Address(SecondScratchReg, PAYLOAD_OFFSET));

We should either use src.offset + PAYLOAD_OFFSET or assert src.offset == 0, right?
Attachment #8546613 - Flags: review?(jdemooij) → review+
(In reply to Jan de Mooij [:jandem] from comment #2)
> Comment on attachment 8546613 [details] [diff] [review]
> 1119783-Fix-build.patch
> 
> Review of attachment 8546613 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> ::: js/src/jit/mips/MacroAssembler-mips.cpp
> @@ +2564,5 @@
> >  void
> > +MacroAssemblerMIPSCompat::unboxNonDouble(const BaseIndex &src, Register dest)
> > +{
> > +    computeScaledAddress(src, SecondScratchReg);
> > +    ma_lw(dest, Address(SecondScratchReg, PAYLOAD_OFFSET));
> 
> We should either use src.offset + PAYLOAD_OFFSET or assert src.offset == 0,
> right?

You are right. I will fix this.
QA Contact: branislav.rankov
Carry review from previous patch.
Assignee: nobody → branislav.rankov
Attachment #8546613 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8547651 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/2f2b89a7f71a
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: