| Index: src/mips/lithium-codegen-mips.cc
|
| diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc
|
| index ecbfc73646d675d7f43665234cb38dcd1ad38929..8fa397bccdc52fb6b387a5ad7ab83595ff70e1d9 100644
|
| --- a/src/mips/lithium-codegen-mips.cc
|
| +++ b/src/mips/lithium-codegen-mips.cc
|
| @@ -366,7 +366,7 @@ Register LCodeGen::EmitLoadRegister(LOperand* op, Register scratch) {
|
| Abort(kEmitLoadRegisterUnsupportedDoubleImmediate);
|
| } else {
|
| ASSERT(r.IsSmiOrTagged());
|
| - __ LoadObject(scratch, literal);
|
| + __ li(scratch, literal);
|
| }
|
| return scratch;
|
| } else if (op->IsStackSlot() || op->IsArgument()) {
|
| @@ -668,7 +668,7 @@ void LCodeGen::LoadContextFromDeferred(LOperand* context) {
|
| } else if (context->IsConstantOperand()) {
|
| HConstant* constant =
|
| chunk_->LookupConstant(LConstantOperand::cast(context));
|
| - __ LoadObject(cp, Handle<Object>::cast(constant->handle(isolate())));
|
| + __ li(cp, Handle<Object>::cast(constant->handle(isolate())));
|
| } else {
|
| UNREACHABLE();
|
| }
|
| @@ -1647,7 +1647,7 @@ void LCodeGen::DoConstantE(LConstantE* instr) {
|
| void LCodeGen::DoConstantT(LConstantT* instr) {
|
| Handle<Object> value = instr->value(isolate());
|
| AllowDeferredHandleDereference smi_check;
|
| - __ LoadObject(ToRegister(instr->result()), value);
|
| + __ li(ToRegister(instr->result()), value);
|
| }
|
|
|
|
|
| @@ -2651,7 +2651,7 @@ void LCodeGen::DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr,
|
| // offset to the location of the map check.
|
| Register temp = ToRegister(instr->temp());
|
| ASSERT(temp.is(t0));
|
| - __ LoadHeapObject(InstanceofStub::right(), instr->function());
|
| + __ li(InstanceofStub::right(), instr->function());
|
| static const int kAdditionalDelta = 7;
|
| int delta = masm_->InstructionsGeneratedSince(map_check) + kAdditionalDelta;
|
| Label before_push_delta;
|
| @@ -3403,7 +3403,7 @@ void LCodeGen::DoOuterContext(LOuterContext* instr) {
|
|
|
| void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) {
|
| ASSERT(ToRegister(instr->context()).is(cp));
|
| - __ LoadHeapObject(scratch0(), instr->hydrogen()->pairs());
|
| + __ li(scratch0(), instr->hydrogen()->pairs());
|
| __ li(scratch1(), Operand(Smi::FromInt(instr->hydrogen()->flags())));
|
| // The context is the first argument.
|
| __ Push(cp, scratch0(), scratch1());
|
| @@ -3440,7 +3440,7 @@ void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
|
|
|
| if (can_invoke_directly) {
|
| if (a1_state == A1_UNINITIALIZED) {
|
| - __ LoadHeapObject(a1, function);
|
| + __ li(a1, function);
|
| }
|
|
|
| // Change context.
|
| @@ -5374,7 +5374,7 @@ void LCodeGen::DoRegExpLiteral(LRegExpLiteral* instr) {
|
| // a2 and t0-t2 are used as temporaries.
|
| int literal_offset =
|
| FixedArray::OffsetOfElementAt(instr->hydrogen()->literal_index());
|
| - __ LoadHeapObject(t3, instr->hydrogen()->literals());
|
| + __ li(t3, instr->hydrogen()->literals());
|
| __ lw(a1, FieldMemOperand(t3, literal_offset));
|
| __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
|
| __ Branch(&materialized, ne, a1, Operand(at));
|
|
|