| Index: src/x64/stub-cache-x64.cc
|
| diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc
|
| index 9bf6e9f2fb34d2ec94d52a3067d33092ff7a2995..c87f00fc4dbc2cfa6d0379f78dbe797bbad039bb 100644
|
| --- a/src/x64/stub-cache-x64.cc
|
| +++ b/src/x64/stub-cache-x64.cc
|
| @@ -733,7 +733,7 @@ class CallInterceptorCompiler BASE_EMBEDDED {
|
| // holder haven't changed and thus we can use cached constant function.
|
| if (*interceptor_holder != lookup->holder()) {
|
| stub_compiler_->CheckPrototypes(
|
| - IC::CurrentTypeOf(interceptor_holder, masm->isolate()), receiver,
|
| + IC::CurrentTypeOf(interceptor_holder, masm->isolate()), holder,
|
| handle(lookup->holder()), scratch1, scratch2, scratch3,
|
| name, depth2, miss);
|
| } else {
|
| @@ -749,7 +749,7 @@ class CallInterceptorCompiler BASE_EMBEDDED {
|
| GenerateFastApiCall(masm, optimization, arguments_.immediate());
|
| } else {
|
| Handle<JSFunction> fun = optimization.constant_function();
|
| - stub_compiler_->GenerateJumpFunctionIgnoreReceiver(fun);
|
| + stub_compiler_->GenerateJumpFunction(object, fun);
|
| }
|
|
|
| // Deferred code for fast API call case---clean preallocated space.
|
| @@ -801,15 +801,17 @@ class CallInterceptorCompiler BASE_EMBEDDED {
|
| Label* interceptor_succeeded) {
|
| {
|
| FrameScope scope(masm, StackFrame::INTERNAL);
|
| - __ push(holder); // Save the holder.
|
| - __ push(name_); // Save the name.
|
| + __ push(receiver);
|
| + __ push(holder);
|
| + __ push(name_);
|
|
|
| CompileCallLoadPropertyWithInterceptor(
|
| masm, receiver, holder, name_, holder_obj,
|
| IC::kLoadPropertyWithInterceptorOnly);
|
|
|
| - __ pop(name_); // Restore the name.
|
| - __ pop(receiver); // Restore the holder.
|
| + __ pop(name_);
|
| + __ pop(holder);
|
| + __ pop(receiver);
|
| // Leave the internal frame.
|
| }
|
|
|
|
|