Index: src/x64/deoptimizer-x64.cc |
diff --git a/src/x64/deoptimizer-x64.cc b/src/x64/deoptimizer-x64.cc |
index bf11e0860f4b36e14be8ef340e17bd3145628029..45280771658dd80a45de9ded4746f22cc46e6434 100644 |
--- a/src/x64/deoptimizer-x64.cc |
+++ b/src/x64/deoptimizer-x64.cc |
@@ -106,7 +106,7 @@ void Deoptimizer::SetPlatformCompiledStubRegisters( |
FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) { |
intptr_t handler = |
reinterpret_cast<intptr_t>(descriptor->deoptimization_handler_); |
- int params = descriptor->environment_length(); |
+ int params = descriptor->GetHandlerParameterCount(); |
output_frame->SetRegister(rax.code(), params); |
output_frame->SetRegister(rbx.code(), handler); |
} |