Index: src/compiler/x64/code-generator-x64.cc |
diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc |
index 56477d66b66c9baa0d527da7ed3554d1d69f4e0a..38c7f2a31c90724b3fd39767c07b3801fde1cbc6 100644 |
--- a/src/compiler/x64/code-generator-x64.cc |
+++ b/src/compiler/x64/code-generator-x64.cc |
@@ -1569,11 +1569,7 @@ void CodeGenerator::AssembleReturn() { |
__ bind(&return_label_); |
__ movq(rsp, rbp); // Move stack pointer back to frame pointer. |
__ popq(rbp); // Pop caller's frame pointer. |
- int pop_count = descriptor->IsJSFunctionCall() |
- ? static_cast<int>(descriptor->JSParameterCount()) |
- : (info()->IsStub() |
- ? info()->code_stub()->GetStackParameterCount() |
- : 0); |
+ int pop_count = static_cast<int>(descriptor->StackParameterCount()); |
if (pop_count == 0) { |
__ Ret(); |
} else { |