Index: src/ic/mips/handler-compiler-mips.cc |
diff --git a/src/ic/mips/handler-compiler-mips.cc b/src/ic/mips/handler-compiler-mips.cc |
index fc4f65caa7a9951ced446c8cc6ddaf1255a00e1a..6c9e006890013a58dfcc97ccc0f2ced30adb2218 100644 |
--- a/src/ic/mips/handler-compiler-mips.cc |
+++ b/src/ic/mips/handler-compiler-mips.cc |
@@ -222,20 +222,17 @@ static void CompileCallLoadPropertyWithInterceptor( |
// Generate call to api function. |
-void PropertyHandlerCompiler::GenerateFastApiCall( |
+void PropertyHandlerCompiler::GenerateApiAccessorCall( |
MacroAssembler* masm, const CallOptimization& optimization, |
Handle<Map> receiver_map, Register receiver, Register scratch_in, |
- bool is_store, int argc, Register* values) { |
+ bool is_store, Register store_parameter) { |
DCHECK(!receiver.is(scratch_in)); |
- // Preparing to push, adjust sp. |
- __ Subu(sp, sp, Operand((argc + 1) * kPointerSize)); |
- __ sw(receiver, MemOperand(sp, argc * kPointerSize)); // Push receiver. |
+ __ push(receiver); |
// Write the arguments to stack frame. |
- for (int i = 0; i < argc; i++) { |
- Register arg = values[argc - 1 - i]; |
- DCHECK(!receiver.is(arg)); |
- DCHECK(!scratch_in.is(arg)); |
- __ sw(arg, MemOperand(sp, (argc - 1 - i) * kPointerSize)); // Push arg. |
+ if (is_store) { |
+ DCHECK(!receiver.is(store_parameter)); |
+ DCHECK(!scratch_in.is(store_parameter)); |
+ __ push(store_parameter); |
} |
DCHECK(optimization.is_simple_api_call()); |
@@ -288,7 +285,7 @@ void PropertyHandlerCompiler::GenerateFastApiCall( |
__ li(api_function_address, Operand(ref)); |
// Jump to stub. |
- CallApiFunctionStub stub(isolate, is_store, call_data_undefined, argc); |
+ CallApiAccessorStub stub(isolate, is_store, call_data_undefined); |
__ TailCallStub(&stub); |
} |