Index: src/arm/deoptimizer-arm.cc |
diff --git a/src/arm/deoptimizer-arm.cc b/src/arm/deoptimizer-arm.cc |
index 9339c5fade3836c19f02094df89b3450e56bf327..c846f98a5e73464d7a9f7e60d5401c8a44980c58 100644 |
--- a/src/arm/deoptimizer-arm.cc |
+++ b/src/arm/deoptimizer-arm.cc |
@@ -107,7 +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->environment_length(); |
+ int params = descriptor->GetHandlerParameterCount(); |
output_frame->SetRegister(r0.code(), params); |
output_frame->SetRegister(r1.code(), handler); |
} |