| Index: src/x64/code-stubs-x64.cc
|
| diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc
|
| index 3a1edf4c5e848df960b974bf7df26e70122ad131..84630928d49ee3a256af73a9a2268d49e029d49c 100644
|
| --- a/src/x64/code-stubs-x64.cc
|
| +++ b/src/x64/code-stubs-x64.cc
|
| @@ -2743,15 +2743,13 @@ void CallApiCallbackStub::Generate(MacroAssembler* masm) {
|
|
|
| // call data
|
| __ Push(call_data);
|
| - Register scratch = call_data;
|
| - if (!this->call_data_undefined()) {
|
| - __ LoadRoot(scratch, Heap::kUndefinedValueRootIndex);
|
| - }
|
| +
|
| // return value
|
| - __ Push(scratch);
|
| + __ PushRoot(Heap::kUndefinedValueRootIndex);
|
| // return value default
|
| - __ Push(scratch);
|
| + __ PushRoot(Heap::kUndefinedValueRootIndex);
|
| // isolate
|
| + Register scratch = call_data;
|
| __ Move(scratch, ExternalReference::isolate_address(masm->isolate()));
|
| __ Push(scratch);
|
| // holder
|
|
|