Revision: 18294
Author:   [email protected]
Date:     Tue Dec 10 23:01:40 2013 UTC
Log:      MIPS: Properly restore the receiver after the interceptor call.

Port r18289 (6bc886d3)

BUG=
[email protected]

Review URL: https://codereview.chromium.org/110943003
http://code.google.com/p/v8/source/detail?r=18294

Modified:
 /branches/bleeding_edge/src/mips/stub-cache-mips.cc

=======================================
--- /branches/bleeding_edge/src/mips/stub-cache-mips.cc Tue Dec 10 23:00:10 2013 UTC +++ /branches/bleeding_edge/src/mips/stub-cache-mips.cc Tue Dec 10 23:01:40 2013 UTC
@@ -1078,12 +1078,13 @@
     {
       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(holder);  // Restore the holder.
+      __ pop(receiver);
+      __ pop(name_);
+      __ pop(holder);
     }
// If interceptor returns no-result sentinel, call the constant function.
     __ LoadRoot(scratch, Heap::kNoInterceptorResultSentinelRootIndex);

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to