Bug 1017036 - IonMonkey MIPS: Fix minor build issues. r=nbp

This commit is contained in:
Branislav Rankov 2014-06-03 14:17:20 +02:00
parent dcfc0b674d
commit d942184024
2 changed files with 9 additions and 2 deletions

View File

@ -250,7 +250,7 @@ void
MacroAssemblerMIPS::ma_li(Register dest, ImmGCPtr ptr) MacroAssemblerMIPS::ma_li(Register dest, ImmGCPtr ptr)
{ {
writeDataRelocation(ptr); writeDataRelocation(ptr);
ma_liPatchable(dest, Imm32(ptr.value)); ma_liPatchable(dest, Imm32(uintptr_t(ptr.value)));
} }
void void
@ -2495,6 +2495,12 @@ MacroAssemblerMIPSCompat::unboxObject(const ValueOperand &src, Register dest)
ma_move(dest, src.payloadReg()); ma_move(dest, src.payloadReg());
} }
void
MacroAssemblerMIPSCompat::unboxObject(const Address &src, Register dest)
{
ma_lw(dest, Address(src.base, src.offset + PAYLOAD_OFFSET));
}
void void
MacroAssemblerMIPSCompat::unboxValue(const ValueOperand &src, AnyRegister dest) MacroAssemblerMIPSCompat::unboxValue(const ValueOperand &src, AnyRegister dest)
{ {

View File

@ -494,7 +494,7 @@ class MacroAssemblerMIPSCompat : public MacroAssemblerMIPS
} }
CodeOffsetLabel movWithPatch(ImmWord imm, Register dest) { CodeOffsetLabel movWithPatch(ImmWord imm, Register dest) {
CodeOffsetLabel label = currentOffset(); CodeOffsetLabel label = CodeOffsetLabel(currentOffset());
ma_liPatchable(dest, Imm32(imm.value)); ma_liPatchable(dest, Imm32(imm.value));
return label; return label;
} }
@ -547,6 +547,7 @@ class MacroAssemblerMIPSCompat : public MacroAssemblerMIPS
void unboxString(const ValueOperand &operand, Register dest); void unboxString(const ValueOperand &operand, Register dest);
void unboxString(const Address &src, Register dest); void unboxString(const Address &src, Register dest);
void unboxObject(const ValueOperand &src, Register dest); void unboxObject(const ValueOperand &src, Register dest);
void unboxObject(const Address &src, Register dest);
void unboxValue(const ValueOperand &src, AnyRegister dest); void unboxValue(const ValueOperand &src, AnyRegister dest);
void unboxPrivate(const ValueOperand &src, Register dest); void unboxPrivate(const ValueOperand &src, Register dest);