Index: src/arm/deoptimizer-arm.cc |
diff --git a/src/arm/deoptimizer-arm.cc b/src/arm/deoptimizer-arm.cc |
index 0ed84ff92e7fc20825a5e159aeb02746c692c32e..9339c5fade3836c19f02094df89b3450e56bf327 100644 |
--- a/src/arm/deoptimizer-arm.cc |
+++ b/src/arm/deoptimizer-arm.cc |
@@ -107,10 +107,7 @@ void Deoptimizer::SetPlatformCompiledStubRegisters( |
ApiFunction function(descriptor->deoptimization_handler_); |
ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_); |
intptr_t handler = reinterpret_cast<intptr_t>(xref.address()); |
- int params = descriptor->register_param_count_; |
- if (descriptor->stack_parameter_count_ != NULL) { |
- params++; |
- } |
+ int params = descriptor->environment_length(); |
output_frame->SetRegister(r0.code(), params); |
output_frame->SetRegister(r1.code(), handler); |
} |