From 85cf6ce9fa700db609efd76f3b5faa6580fe2859 Mon Sep 17 00:00:00 2001 From: "ulan@chromium.org" Date: Thu, 17 Apr 2014 11:30:25 +0000 Subject: [PATCH] X64: fix arguments adaptor stack check after r20751. BUG= R=haitao.feng@intel.com Review URL: https://codereview.chromium.org/239703012 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20838 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/x64/builtins-x64.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc index 5803ad772..19e7b533c 100644 --- a/src/x64/builtins-x64.cc +++ b/src/x64/builtins-x64.cc @@ -1340,7 +1340,8 @@ static void ArgumentsAdaptorStackCheck(MacroAssembler* masm, __ subp(rcx, rdx); // Make rdx the space we need for the array when it is unrolled onto the // stack. - __ PositiveSmiTimesPowerOfTwoToInteger64(rdx, rax, kPointerSizeLog2); + __ movp(rdx, rbx); + __ shlp(rdx, Immediate(kPointerSizeLog2)); // Check if the arguments will overflow the stack. __ cmpp(rcx, rdx); __ j(less_equal, stack_overflow); // Signed comparison. -- 2.34.1