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

Unified Diff: runtime/vm/il_printer.cc

Issue 683433003: Integrate the Irregexp Regular Expression Engine. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: byte-order assert & context-var Created 6 years, 1 month 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
Index: runtime/vm/il_printer.cc
diff --git a/runtime/vm/il_printer.cc b/runtime/vm/il_printer.cc
index df8c95cc9f2fb58089247f363b9dc98c8c5b7f32..25c25955b1017fde878267f58c783a5807adcaf9 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -924,6 +924,30 @@ void JoinEntryInstr::PrintTo(BufferFormatter* f) const {
}
+void IndirectEntryInstr::PrintTo(BufferFormatter* f) const {
+ ASSERT(try_index() == CatchClauseNode::kInvalidTryIndex);
+ f->Print("B%" Pd "[join indirect]:%" Pd " pred(", block_id(), GetDeoptId());
+ for (intptr_t i = 0; i < predecessors_.length(); ++i) {
+ if (i > 0) f->Print(", ");
+ f->Print("B%" Pd, predecessors_[i]->block_id());
+ }
+ f->Print(")");
+ if (phis_ != NULL) {
+ f->Print(" {");
+ for (intptr_t i = 0; i < phis_->length(); ++i) {
+ if ((*phis_)[i] == NULL) continue;
+ f->Print("\n ");
+ (*phis_)[i]->PrintTo(f);
+ }
+ f->Print("\n}");
+ }
+ if (HasParallelMove()) {
+ f->Print(" ");
+ parallel_move()->PrintTo(f);
+ }
+}
+
+
static const char *RepresentationToCString(Representation rep) {
switch (rep) {
case kTagged:
@@ -1066,6 +1090,17 @@ void GotoInstr::PrintTo(BufferFormatter* f) const {
}
+void IndirectGotoInstr::PrintTo(BufferFormatter* f) const {
+ if (GetDeoptId() != Isolate::kNoDeoptId) {
+ f->Print("igoto:%" Pd "(", GetDeoptId());
+ } else {
+ f->Print("igoto:(");
+ }
+ InputAt(0)->PrintTo(f);
+ f->Print(")");
+}
+
+
void BranchInstr::PrintTo(BufferFormatter* f) const {
f->Print("%s ", DebugName());
f->Print("if ");

Powered by Google App Engine
This is Rietveld 408576698