Reviewers: Toon Verwaest,
Description:
Check for initialized code stub descriptor in the deoptimizer.
[email protected]
Please review this at https://codereview.chromium.org/448683002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+3, -0 lines):
M src/deoptimizer.cc
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);
// The output frame must have room for all pushed register parameters
// and the standard stack frame slots. Include space for an argument
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.