| Index: src/mips/stub-cache-mips.cc
|
| diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc
|
| index 3d4617a0a7d6d775c1523ac7b2cc765bfc746d99..621753064bbe3a518a64bdbcd832d7f4f4705785 100644
|
| --- a/src/mips/stub-cache-mips.cc
|
| +++ b/src/mips/stub-cache-mips.cc
|
| @@ -1009,7 +1009,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 {
|
| @@ -1026,7 +1026,8 @@ class CallInterceptorCompiler BASE_EMBEDDED {
|
| masm, optimization, arguments_.immediate(), false);
|
| } else {
|
| Handle<JSFunction> function = optimization.constant_function();
|
| - stub_compiler_->GenerateJumpFunctionIgnoreReceiver(function);
|
| + __ Move(a0, receiver);
|
| + stub_compiler_->GenerateJumpFunction(object, function);
|
| }
|
|
|
| // Deferred code for fast API call case---clean preallocated space.
|
| @@ -1080,12 +1081,13 @@ class CallInterceptorCompiler BASE_EMBEDDED {
|
| {
|
| FrameScope scope(masm, StackFrame::INTERNAL);
|
|
|
| - __ Push(holder, name_);
|
| + __ Push(receiver, holder, 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);
|
| }
|
| // If interceptor returns no-result sentinel, call the constant function.
|
| __ LoadRoot(scratch, Heap::kNoInterceptorResultSentinelRootIndex);
|
|
|