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

Unified Diff: runtime/vm/il_printer.cc

Issue 2466643002: AOT: Enable branch merging for checked smi comparisons (Closed)
Patch Set: ported to all architectures Created 4 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 7a6874f71f620dd5d6f7bb9fce3945afb6cfdb7b..015156397584a9d68119bb29791248415ee555f5 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -704,6 +704,15 @@ void CheckedSmiOpInstr::PrintOperandsTo(BufferFormatter* f) const {
}
+void CheckedSmiComparisonInstr::PrintOperandsTo(BufferFormatter* f) const {
+ f->Print("%s", Token::Str(kind()));
+ f->Print(", ");
+ left()->PrintTo(f);
+ f->Print(", ");
+ right()->PrintTo(f);
+}
+
+
void BinaryIntegerOpInstr::PrintOperandsTo(BufferFormatter* f) const {
f->Print("%s", Token::Str(op_kind()));
if (is_truncating()) {

Powered by Google App Engine
This is Rietveld 408576698