Commit 5894a48d authored by yangguo@chromium.org's avatar yangguo@chromium.org

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
parent 0ef3978a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment