Index: src/mips/stub-cache-mips.cc |
diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc |
index 76452f0c956c69bba52bc2fe4c30331f64e89a30..f590a99b61cc4db19d4eedf93ded47205707b126 100644 |
--- a/src/mips/stub-cache-mips.cc |
+++ b/src/mips/stub-cache-mips.cc |
@@ -574,7 +574,7 @@ static void GenerateFastApiDirectCall(MacroAssembler* masm, |
// ----------------------------------- |
// Get the function and setup the context. |
Handle<JSFunction> function = optimization.constant_function(); |
- __ li(t1, Operand(function)); |
+ __ LoadHeapObject(t1, function); |
__ lw(cp, FieldMemOperand(t1, JSFunction::kContextOffset)); |
// Pass the additional arguments FastHandleApiCall expects. |
@@ -1115,7 +1115,7 @@ void StubCompiler::GenerateLoadConstant(Handle<JSObject> object, |
Register scratch1, |
Register scratch2, |
Register scratch3, |
- Handle<Object> value, |
+ Handle<JSFunction> value, |
Handle<String> name, |
Label* miss) { |
// Check that the receiver isn't a smi. |
@@ -1127,7 +1127,7 @@ void StubCompiler::GenerateLoadConstant(Handle<JSObject> object, |
scratch1, scratch2, scratch3, name, miss); |
// Return the constant value. |
- __ li(v0, Operand(value)); |
+ __ LoadHeapObject(v0, value); |
__ Ret(); |
} |
@@ -2709,7 +2709,7 @@ Handle<Code> LoadStubCompiler::CompileLoadCallback( |
Handle<Code> LoadStubCompiler::CompileLoadConstant(Handle<JSObject> object, |
Handle<JSObject> holder, |
- Handle<Object> value, |
+ Handle<JSFunction> value, |
Handle<String> name) { |
// ----------- S t a t e ------------- |
// -- a0 : receiver |
@@ -2847,7 +2847,7 @@ Handle<Code> KeyedLoadStubCompiler::CompileLoadConstant( |
Handle<String> name, |
Handle<JSObject> receiver, |
Handle<JSObject> holder, |
- Handle<Object> value) { |
+ Handle<JSFunction> value) { |
// ----------- S t a t e ------------- |
// -- ra : return address |
// -- a0 : key |