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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 9454012: Add type testing and casting support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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
« runtime/vm/intermediate_language.h ('K') | « 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
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
index 7bb66206027d56466472a5a1916deec3f579cacf..f59246ad7360843078d3539287d6c8484c2d5247 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -84,14 +84,14 @@ Instruction* ReturnInstr::Print() const {
Instruction* BranchInstr::Print() const {
OS::Print(" if ");
value_->Print();
- OS::Print(" goto(%d, %d)", true_successor_->GetBlockNumber(),
- false_successor_->GetBlockNumber());
+ OS::Print(" goto(%d, %d)", true_successor_->block_number(),
+ false_successor_->block_number());
return NULL;
}
Instruction* JoinEntryInstr::Print() const {
- OS::Print("%2d: [join]", block_number_);
+ OS::Print("%2d: [join]", block_number());
return successor_;
}
@@ -102,24 +102,24 @@ Instruction* TargetEntryInstr::Print() const {
}
-void DoInstr::Postorder(GrowableArray<Instruction*>* block_entries) {
+void DoInstr::Postorder(GrowableArray<BlockEntryInstr*>* block_entries) {
flip_mark();
if (successor_->mark() != mark()) successor_->Postorder(block_entries);
}
-void BindInstr::Postorder(GrowableArray<Instruction*>* block_entries) {
+void BindInstr::Postorder(GrowableArray<BlockEntryInstr*>* block_entries) {
flip_mark();
if (successor_->mark() != mark()) successor_->Postorder(block_entries);
}
-void ReturnInstr::Postorder(GrowableArray<Instruction*>* block_entries) {
+void ReturnInstr::Postorder(GrowableArray<BlockEntryInstr*>* block_entries) {
flip_mark();
}
-void BranchInstr::Postorder(GrowableArray<Instruction*>* block_entries) {
+void BranchInstr::Postorder(GrowableArray<BlockEntryInstr*>* block_entries) {
flip_mark();
// Visit the false successor before the true successor so they appear in
// true/false order in reverse postorder.
@@ -132,14 +132,15 @@ void BranchInstr::Postorder(GrowableArray<Instruction*>* block_entries) {
}
-void JoinEntryInstr::Postorder(GrowableArray<Instruction*>* block_entries) {
+void JoinEntryInstr::Postorder(GrowableArray<BlockEntryInstr*>* block_entries) {
flip_mark();
if (successor_->mark() != mark()) successor_->Postorder(block_entries);
block_entries->Add(this);
}
-void TargetEntryInstr::Postorder(GrowableArray<Instruction*>* block_entries) {
+void TargetEntryInstr::Postorder(
+ GrowableArray<BlockEntryInstr*>* block_entries) {
flip_mark();
if (successor_->mark() != mark()) successor_->Postorder(block_entries);
block_entries->Add(this);
« runtime/vm/intermediate_language.h ('K') | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698