Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index 601faf723d6cf15cbd51dceb930cc61d750dcaeb..c13713d088bf836c30823cec6e41db40515edc9b 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -1204,6 +1204,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; |