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

Unified Diff: runtime/vm/il_printer.cc

Issue 2423843002: Add DoubleTestOp instruction (Closed)
Patch Set: Cleanup Created 4 years, 2 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 d8d18f3bbfb1b69fd303d9fff5365b8157c83ba2..511c42042515acae65bde1aefe0cf7ddd05d2b3a 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -726,6 +726,21 @@ void BinaryDoubleOpInstr::PrintOperandsTo(BufferFormatter* f) const {
}
+void DoubleTestOpInstr::PrintOperandsTo(BufferFormatter* f) const {
+ switch (op_kind()) {
+ case MethodRecognizer::kDoubleIsNaN:
+ f->Print("IsNaN ");
+ break;
+ case MethodRecognizer::kDoubleIsInfinite:
+ f->Print("IsInfinite ");
+ break;
+ default:
+ UNREACHABLE();
+ }
+ value()->PrintTo(f);
+}
+
+
void BinaryFloat32x4OpInstr::PrintOperandsTo(BufferFormatter* f) const {
f->Print("%s, ", Token::Str(op_kind()));
left()->PrintTo(f);

Powered by Google App Engine
This is Rietveld 408576698