Index: src/ic/x64/handler-compiler-x64.cc |
diff --git a/src/ic/x64/handler-compiler-x64.cc b/src/ic/x64/handler-compiler-x64.cc |
index 36973ec074ffc0b774d07e0a84e0c0535066227b..1538f12ac8141d6ce986b44cedf29c99e0f5f6c5 100644 |
--- a/src/ic/x64/handler-compiler-x64.cc |
+++ b/src/ic/x64/handler-compiler-x64.cc |
@@ -128,21 +128,20 @@ 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(optimization.is_simple_api_call()); |
__ PopReturnAddressTo(scratch_in); |
// 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)); |
- __ Push(arg); |
+ if (is_store) { |
+ DCHECK(!receiver.is(store_parameter)); |
+ DCHECK(!scratch_in.is(store_parameter)); |
+ __ Push(store_parameter); |
} |
__ PushReturnAddressFrom(scratch_in); |
// Stack now matches JSFunction abi. |
@@ -196,7 +195,7 @@ void PropertyHandlerCompiler::GenerateFastApiCall( |
RelocInfo::EXTERNAL_REFERENCE); |
// Jump to stub. |
- CallApiFunctionStub stub(isolate, is_store, call_data_undefined, argc); |
+ CallApiAccessorStub stub(isolate, is_store, call_data_undefined); |
__ TailCallStub(&stub); |
} |