Index: src/arm/stub-cache-arm.cc |
=================================================================== |
--- src/arm/stub-cache-arm.cc (revision 10127) |
+++ src/arm/stub-cache-arm.cc (working copy) |
@@ -575,7 +575,7 @@ |
// ----------------------------------- |
// Get the function and setup the context. |
Handle<JSFunction> function = optimization.constant_function(); |
- __ mov(r5, Operand(function)); |
+ __ LoadHeapObject(r5, function); |
__ ldr(cp, FieldMemOperand(r5, JSFunction::kContextOffset)); |
// Pass the additional arguments FastHandleApiCall expects. |
@@ -1099,7 +1099,7 @@ |
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. |
@@ -1110,7 +1110,7 @@ |
object, receiver, holder, scratch1, scratch2, scratch3, name, miss); |
// Return the constant value. |
- __ mov(r0, Operand(value)); |
+ __ LoadHeapObject(r0, value); |
__ Ret(); |
} |
@@ -2690,7 +2690,7 @@ |
Handle<Code> LoadStubCompiler::CompileLoadConstant(Handle<JSObject> object, |
Handle<JSObject> holder, |
- Handle<Object> value, |
+ Handle<JSFunction> value, |
Handle<String> name) { |
// ----------- S t a t e ------------- |
// -- r0 : receiver |
@@ -2830,7 +2830,7 @@ |
Handle<String> name, |
Handle<JSObject> receiver, |
Handle<JSObject> holder, |
- Handle<Object> value) { |
+ Handle<JSFunction> value) { |
// ----------- S t a t e ------------- |
// -- lr : return address |
// -- r0 : key |