Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index d077fed64a66db4e95d8512c0a81ede434b8542f..cd8dc99e6e8350602f566c6f2330b70fc4f9f0a3 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -1215,6 +1215,7 @@ void Deoptimizer::DoComputeCompiledStubFrame(TranslationIterator* iterator, |
// and the standard stack frame slots. Include space for an argument |
// object to the callee and optionally the space to pass the argument |
// object to the stub failure handler. |
+ ASSERT(descriptor->register_param_count_ >= 0); |
int height_in_bytes = kPointerSize * descriptor->register_param_count_ + |
sizeof(Arguments) + kPointerSize; |
int fixed_frame_size = StandardFrameConstants::kFixedFrameSize; |