From 5894a48d37951015b29b860670b0e92cdffaff7e Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Wed, 6 Aug 2014 13:18:49 +0000 Subject: [PATCH] Check for initialized code stub descriptor in the deoptimizer. R=verwaest@chromium.org Review URL: https://codereview.chromium.org/448683002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22932 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/deoptimizer.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc index c8c4d9e..b7fe058 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_EQ(descriptor->MajorKey(), major_key); // The output frame must have room for all pushed register parameters // and the standard stack frame slots. Include space for an argument -- 2.7.4