ARM64: small fixes for ArgumentAdaptorTrampoline after r20751.
authorulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 24 Apr 2014 09:02:48 +0000 (09:02 +0000)
committerulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 24 Apr 2014 09:02:48 +0000 (09:02 +0000)
BUG=
R=jacob.bramley@arm.com

Review URL: https://codereview.chromium.org/252483002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20928 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/arm64/builtins-arm64.cc

index bada600..4ff3beb 100644 (file)
@@ -1415,7 +1415,6 @@ static void ArgumentAdaptorStackCheck(MacroAssembler* masm,
   // Make x10 the space we have left. The stack might already be overflowed
   // here which will cause x10 to become negative.
   __ Sub(x10, jssp, x10);
-  __ Mov(x11, jssp);
   // Check if the arguments will overflow the stack.
   __ Cmp(x10, Operand(x2, LSL, kPointerSizeLog2));
   __ B(le, stack_overflow);
@@ -1583,7 +1582,7 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
     FrameScope frame(masm, StackFrame::MANUAL);
     EnterArgumentsAdaptorFrame(masm);
     __ InvokeBuiltin(Builtins::STACK_OVERFLOW, CALL_FUNCTION);
-    __ Brk(0);
+    __ Unreachable();
   }
 }