| 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..90c7e09aa76fdeb57249efdc92fb2815ac541ba1 100644
|
| --- a/src/mips/stub-cache-mips.cc
|
| +++ b/src/mips/stub-cache-mips.cc
|
| @@ -899,12 +899,12 @@ static void GenerateFastApiCall(MacroAssembler* masm,
|
| __ sw(receiver, MemOperand(sp, FCA::kHolderIndex * kPointerSize));
|
| // Write receiver to stack frame.
|
| int index = stack_space - 1;
|
| - __ sw(receiver, MemOperand(sp, index * kPointerSize));
|
| + __ sw(receiver, MemOperand(sp, index-- * kPointerSize));
|
| // Write the arguments to stack frame.
|
| for (int i = 0; i < argc; i++) {
|
| ASSERT(!receiver.is(values[i]));
|
| ASSERT(!scratch.is(values[i]));
|
| - __ sw(receiver, MemOperand(sp, index-- * kPointerSize));
|
| + __ sw(values[i], MemOperand(sp, index-- * kPointerSize));
|
| }
|
|
|
| GenerateFastApiDirectCall(masm, optimization, argc, true);
|
| @@ -915,12 +915,10 @@ class CallInterceptorCompiler BASE_EMBEDDED {
|
| public:
|
| CallInterceptorCompiler(CallStubCompiler* stub_compiler,
|
| const ParameterCount& arguments,
|
| - Register name,
|
| - ExtraICState extra_ic_state)
|
| + Register name)
|
| : stub_compiler_(stub_compiler),
|
| arguments_(arguments),
|
| - name_(name),
|
| - extra_ic_state_(extra_ic_state) {}
|
| + name_(name) {}
|
|
|
| void Compile(MacroAssembler* masm,
|
| Handle<JSObject> object,
|
| @@ -1009,7 +1007,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 +1024,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 +1079,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);
|
| @@ -1095,7 +1095,6 @@ class CallInterceptorCompiler BASE_EMBEDDED {
|
| CallStubCompiler* stub_compiler_;
|
| const ParameterCount& arguments_;
|
| Register name_;
|
| - ExtraICState extra_ic_state_;
|
| };
|
|
|
|
|
| @@ -2463,7 +2462,7 @@ Handle<Code> CallStubCompiler::CompileCallInterceptor(Handle<JSObject> object,
|
| // Get the receiver from the stack.
|
| __ lw(a1, MemOperand(sp, argc * kPointerSize));
|
|
|
| - CallInterceptorCompiler compiler(this, arguments(), a2, extra_state());
|
| + CallInterceptorCompiler compiler(this, arguments(), a2);
|
| compiler.Compile(masm(), object, holder, name, &lookup, a1, a3, t0, a0,
|
| &miss);
|
|
|
|
|