Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index c8c4d9e7b9279df91baa689b4856727e317f122e..eae2d34708736da59d1b0e8cfc3c726753c531a4 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -1624,6 +1624,9 @@ void Deoptimizer::DoComputeCompiledStubFrame(TranslationIterator* iterator, |
int major_key = CodeStub::GetMajorKey(compiled_code_); |
CodeStubInterfaceDescriptor* descriptor = |
isolate_->code_stub_interface_descriptor(major_key); |
+ // Check that there is a matching descriptor to the major key. |
+ // This will fail if there has not been one installed to the isolate. |
+ DCHECK(descriptor->MajorKey() == major_key); |
Toon Verwaest
2014/08/06 13:12:52
DCHECK_EQ
|
// The output frame must have room for all pushed register parameters |
// and the standard stack frame slots. Include space for an argument |