Index: src/compiler/code-generator.cc |
diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc |
index 57d14a290a6274614c2fa46571043f902be0b264..92337e0c4f6431eb273878ae40952362ef01d0b5 100644 |
--- a/src/compiler/code-generator.cc |
+++ b/src/compiler/code-generator.cc |
@@ -591,7 +591,7 @@ void CodeGenerator::BuildTranslationForFrameStateDescriptor( |
case FrameStateType::kInterpretedFunction: |
translation->BeginInterpretedFrame( |
descriptor->bailout_id(), shared_info_id, |
- static_cast<unsigned int>(descriptor->locals_count())); |
+ static_cast<unsigned int>(descriptor->locals_count() + 1)); |
break; |
case FrameStateType::kArgumentsAdaptor: |
translation->BeginArgumentsAdaptorFrame( |