| 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 c2f5381f892b99a2f43015e9e8a2ee102de80d6a..dde61691d5888861f6f1c29fe372fde305a064cb 100644
|
| --- a/src/ic/x64/handler-compiler-x64.cc
|
| +++ b/src/ic/x64/handler-compiler-x64.cc
|
| @@ -257,11 +257,11 @@ void NamedStoreHandlerCompiler::GenerateStoreViaSetter(
|
| }
|
| __ Push(receiver);
|
| __ Push(value());
|
| - ParameterCount actual(1);
|
| - ParameterCount expected(expected_arguments);
|
| __ LoadAccessor(rdi, holder, accessor_index, ACCESSOR_SETTER);
|
| - __ InvokeFunction(rdi, no_reg, expected, actual, CALL_FUNCTION,
|
| - CheckDebugStepCallWrapper());
|
| + __ Set(rax, 1);
|
| + __ Call(masm->isolate()->builtins()->CallFunction(
|
| + ConvertReceiverMode::kNotNullOrUndefined),
|
| + RelocInfo::CODE_TARGET);
|
| } else {
|
| // If we generate a global code snippet for deoptimization only, remember
|
| // the place to continue after deoptimization.
|
| @@ -303,11 +303,11 @@ void NamedLoadHandlerCompiler::GenerateLoadViaGetter(
|
| receiver = scratch;
|
| }
|
| __ Push(receiver);
|
| - ParameterCount actual(0);
|
| - ParameterCount expected(expected_arguments);
|
| __ LoadAccessor(rdi, holder, accessor_index, ACCESSOR_GETTER);
|
| - __ InvokeFunction(rdi, no_reg, expected, actual, CALL_FUNCTION,
|
| - CheckDebugStepCallWrapper());
|
| + __ Set(rax, 0);
|
| + __ Call(masm->isolate()->builtins()->CallFunction(
|
| + ConvertReceiverMode::kNotNullOrUndefined),
|
| + RelocInfo::CODE_TARGET);
|
| } else {
|
| // If we generate a global code snippet for deoptimization only, remember
|
| // the place to continue after deoptimization.
|
|
|