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

Unified Diff: runtime/vm/il_printer.cc

Issue 539153002: Port and integrate the irregexp engine from V8 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated to current version Created 6 years, 3 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
Index: runtime/vm/il_printer.cc
diff --git a/runtime/vm/il_printer.cc b/runtime/vm/il_printer.cc
index e9eea97c1bb91a3f9b0dd57c04f97c0c674475c2..54b6a349156c7c0b2defb1092141ad34a75b8fab 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -580,6 +580,18 @@ void MathUnaryInstr::PrintOperandsTo(BufferFormatter* f) const {
}
+void CaseInsensitiveCompareUC16Instr::PrintOperandsTo(
+ BufferFormatter* f) const {
+ str()->PrintTo(f);
+ f->Print(", ");
+ lhs_index()->PrintTo(f);
+ f->Print(", ");
+ rhs_index()->PrintTo(f);
+ f->Print(", ");
+ length()->PrintTo(f);
+}
+
+
void MergedMathInstr::PrintOperandsTo(BufferFormatter* f) const {
f->Print("'%s', ", MergedMathInstr::KindToCString(kind()));
Definition::PrintOperandsTo(f);
@@ -934,6 +946,34 @@ void JoinEntryInstr::PrintTo(BufferFormatter* f) const {
}
+void IndirectEntryInstr::PrintTo(BufferFormatter* f) const {
+ if (try_index() != CatchClauseNode::kInvalidTryIndex) {
+ f->Print("B%" Pd "[join indirect try_idx %" Pd "]:%" Pd " pred(",
+ block_id(), try_index(), GetDeoptId());
+ } else {
+ 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:
@@ -1076,6 +1116,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:(");
+ }
+ offset_from_start_->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