Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Unified Diff: runtime/vm/deopt_instructions.cc

Issue 12812026: Fix crash caused by eliminating goto-s in unoptimized code. Added asserts (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/deopt_instructions.cc
===================================================================
--- runtime/vm/deopt_instructions.cc (revision 20337)
+++ runtime/vm/deopt_instructions.cc (working copy)
@@ -817,6 +817,9 @@
void DeoptInfoBuilder::AddReturnAddressBefore(const Function& function,
intptr_t deopt_id,
intptr_t to_index) {
+ // Check that deopt_id exists.
+ ASSERT(Code::Handle(function.unoptimized_code()).
+ GetDeoptBeforePcAtDeoptId(deopt_id) != 0);
const intptr_t object_table_index = FindOrAddObjectInTable(function);
ASSERT(to_index == instructions_.length());
instructions_.Add(new DeoptRetBeforeAddressInstr(object_table_index,
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698