Index: src/mips/deoptimizer-mips.cc |
diff --git a/src/mips/deoptimizer-mips.cc b/src/mips/deoptimizer-mips.cc |
index d31990be5c7eb8a7aeef73f2e47bc9e6ff03828b..c66472f289856b8db488adadfec6deb7d0cd780c 100644 |
--- a/src/mips/deoptimizer-mips.cc |
+++ b/src/mips/deoptimizer-mips.cc |
@@ -104,7 +104,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(s0.code(), params); |
output_frame->SetRegister(s1.code(), (params - 1) * kPointerSize); |
output_frame->SetRegister(s2.code(), handler); |