| 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 46fa8cc337139fa0089a14b2c79e7b22a6161ed8..8f4918e75598549d9790b1b8b4fe6e6108cf497d 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);
|
| }
|
|
|
|
|