| Index: src/ia32/stub-cache-ia32.cc
|
| ===================================================================
|
| --- src/ia32/stub-cache-ia32.cc (revision 10127)
|
| +++ src/ia32/stub-cache-ia32.cc (working copy)
|
| @@ -429,7 +429,7 @@
|
| // -----------------------------------
|
| // Get the function and setup the context.
|
| Handle<JSFunction> function = optimization.constant_function();
|
| - __ mov(edi, Immediate(function));
|
| + __ LoadHeapObject(edi, function);
|
| __ mov(esi, FieldOperand(edi, JSFunction::kContextOffset));
|
|
|
| // Pass the additional arguments.
|
| @@ -1025,7 +1025,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.
|
| @@ -1036,7 +1036,7 @@
|
| object, receiver, holder, scratch1, scratch2, scratch3, name, miss);
|
|
|
| // Return the constant value.
|
| - __ mov(eax, value);
|
| + __ LoadHeapObject(eax, value);
|
| __ ret(0);
|
| }
|
|
|
| @@ -2729,7 +2729,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 -------------
|
| // -- eax : receiver
|
| @@ -2891,7 +2891,7 @@
|
| Handle<String> name,
|
| Handle<JSObject> receiver,
|
| Handle<JSObject> holder,
|
| - Handle<Object> value) {
|
| + Handle<JSFunction> value) {
|
| // ----------- S t a t e -------------
|
| // -- eax : key
|
| // -- edx : receiver
|
|
|