[turbofan] Fix returns for large-sized frames in TurboFan ia32 and x64 backends.
authortitzer <titzer@chromium.org>
Wed, 29 Apr 2015 11:32:17 +0000 (04:32 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 29 Apr 2015 11:32:25 +0000 (11:32 +0000)
R=dcarney@chromium.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#28129}

src/compiler/ia32/code-generator-ia32.cc
src/compiler/x64/code-generator-x64.cc

index f4bed3f7fdc2a2540c4d63f5a9ac832f157e4c25..ffd1c004b2a6e0349c74cd3edff39b41c44b06a7 100644 (file)
@@ -1277,7 +1277,7 @@ void CodeGenerator::AssembleReturn() {
     int pop_count = descriptor->IsJSFunctionCall()
                         ? static_cast<int>(descriptor->JSParameterCount())
                         : 0;
-    __ ret(pop_count * kPointerSize);
+    __ Ret(pop_count * kPointerSize, ebx);
   } else {
     __ ret(0);
   }
index 0f7f95de00fd6b78cedb7fa4c1be1c03b4c7b89d..9241d8355f7079691a01d1dc18e3994f93b2ae94 100644 (file)
@@ -1470,7 +1470,7 @@ void CodeGenerator::AssembleReturn() {
     int pop_count = descriptor->IsJSFunctionCall()
                         ? static_cast<int>(descriptor->JSParameterCount())
                         : 0;
-    __ ret(pop_count * kPointerSize);
+    __ Ret(pop_count * kPointerSize, rbx);
   } else {
     __ ret(0);
   }