Revision: 18797
Author:   [email protected]
Date:     Thu Jan 23 19:32:50 2014 UTC
Log:      A64: Create a frame before calling InstanceOf builtin.

We need a frame because we push arguments in stack.

BUG=314606
TEST=mjsunit/regress/regress-78270
[email protected]

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

Modified:
 /branches/experimental/a64/src/a64/code-stubs-a64.cc

=======================================
--- /branches/experimental/a64/src/a64/code-stubs-a64.cc Thu Jan 23 18:07:26 2014 UTC +++ /branches/experimental/a64/src/a64/code-stubs-a64.cc Thu Jan 23 19:32:50 2014 UTC
@@ -3338,13 +3338,15 @@
   // Slow-case. Tail call builtin.
   __ Bind(&slow);
   if (!ReturnTrueFalseObject()) {
+    FrameScope scope(masm, StackFrame::INTERNAL);
// Arguments have either been passed into registers or have been previously
     // popped. We need to push them before calling builtin.
     __ Push(object, function);
-    __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION);
+    __ InvokeBuiltin(Builtins::INSTANCE_OF, CALL_FUNCTION);
   } else {
     ASM_UNIMPLEMENTED("InstanceofStub call builtin and return object");
   }
+  __ Ret();
 }


--
--
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