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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 9706032: Add Throw and ReThrow nodes. Rethrow not yet tested (bailout with untested), since it needs the try… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.cc
===================================================================
--- runtime/vm/intermediate_language.cc (revision 5480)
+++ runtime/vm/intermediate_language.cc (working copy)
@@ -84,6 +84,7 @@
// ==== Postorder graph traversal.
void JoinEntryInstr::Postorder(GrowableArray<BlockEntryInstr*>* block_entries) {
flip_mark();
+ ASSERT(successor_ != NULL);
if (successor_->mark() != mark()) successor_->Postorder(block_entries);
block_entries->Add(this);
}
@@ -92,6 +93,7 @@
void TargetEntryInstr::Postorder(
GrowableArray<BlockEntryInstr*>* block_entries) {
flip_mark();
+ ASSERT(successor_ != NULL);
if (successor_->mark() != mark()) successor_->Postorder(block_entries);
block_entries->Add(this);
}
@@ -99,24 +101,28 @@
void PickTempInstr::Postorder(GrowableArray<BlockEntryInstr*>* block_entries) {
flip_mark();
+ ASSERT(successor_ != NULL);
if (successor_->mark() != mark()) successor_->Postorder(block_entries);
}
void TuckTempInstr::Postorder(GrowableArray<BlockEntryInstr*>* block_entries) {
flip_mark();
+ ASSERT(successor_ != NULL);
if (successor_->mark() != mark()) successor_->Postorder(block_entries);
}
void DoInstr::Postorder(GrowableArray<BlockEntryInstr*>* block_entries) {
flip_mark();
+ ASSERT(successor_ != NULL);
if (successor_->mark() != mark()) successor_->Postorder(block_entries);
}
void BindInstr::Postorder(GrowableArray<BlockEntryInstr*>* block_entries) {
flip_mark();
+ ASSERT(successor_ != NULL);
if (successor_->mark() != mark()) successor_->Postorder(block_entries);
}
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698