Index: src/compiler/arm/code-generator-arm.cc |
diff --git a/src/compiler/arm/code-generator-arm.cc b/src/compiler/arm/code-generator-arm.cc |
index 0c97f846f0cff35eaccb09b24a02ca10f81dcca5..b472feb0af08d23f0ab20129cef0fc113ab685fe 100644 |
--- a/src/compiler/arm/code-generator-arm.cc |
+++ b/src/compiler/arm/code-generator-arm.cc |
@@ -1049,11 +1049,7 @@ void CodeGenerator::AssembleReturn() { |
} else { |
__ bind(&return_label_); |
__ LeaveFrame(StackFrame::MANUAL); |
- 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) { |
__ Drop(pop_count); |
} |