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

Unified Diff: runtime/vm/il_printer.cc

Issue 2423843002: Add DoubleTestOp instruction (Closed)
Patch Set: Address comments 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
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/il_printer.cc
diff --git a/runtime/vm/il_printer.cc b/runtime/vm/il_printer.cc
index d8d18f3bbfb1b69fd303d9fff5365b8157c83ba2..7a6874f71f620dd5d6f7bb9fce3945afb6cfdb7b 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::kDouble_getIsNaN:
+ f->Print("IsNaN ");
+ break;
+ case MethodRecognizer::kDouble_getIsInfinite:
+ 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);
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698