| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/il_printer.h" | 5 #include "vm/il_printer.h" |
| 6 | 6 |
| 7 #include "vm/flow_graph_range_analysis.h" | 7 #include "vm/flow_graph_range_analysis.h" |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 #include "vm/os.h" | 9 #include "vm/os.h" |
| 10 #include "vm/parser.h" | 10 #include "vm/parser.h" |
| (...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 right()->PrintTo(f); | 860 right()->PrintTo(f); |
| 861 } | 861 } |
| 862 | 862 |
| 863 | 863 |
| 864 void UnaryDoubleOpInstr::PrintOperandsTo(BufferFormatter* f) const { | 864 void UnaryDoubleOpInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 865 f->Print("%s, ", Token::Str(op_kind())); | 865 f->Print("%s, ", Token::Str(op_kind())); |
| 866 value()->PrintTo(f); | 866 value()->PrintTo(f); |
| 867 } | 867 } |
| 868 | 868 |
| 869 | 869 |
| 870 void CheckClassIdInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 871 value()->PrintTo(f); |
| 872 |
| 873 const Class& cls = |
| 874 Class::Handle(Isolate::Current()->class_table()->At(cid())); |
| 875 f->Print(", %s", String::Handle(cls.PrettyName()).ToCString()); |
| 876 } |
| 877 |
| 878 |
| 870 void CheckClassInstr::PrintOperandsTo(BufferFormatter* f) const { | 879 void CheckClassInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 871 value()->PrintTo(f); | 880 value()->PrintTo(f); |
| 872 PrintICDataHelper(f, unary_checks()); | 881 PrintICDataHelper(f, unary_checks()); |
| 873 if (IsNullCheck()) { | 882 if (IsNullCheck()) { |
| 874 f->Print(" nullcheck"); | 883 f->Print(" nullcheck"); |
| 875 } | 884 } |
| 876 } | 885 } |
| 877 | 886 |
| 878 | 887 |
| 879 void InvokeMathCFunctionInstr::PrintOperandsTo(BufferFormatter* f) const { | 888 void InvokeMathCFunctionInstr::PrintOperandsTo(BufferFormatter* f) const { |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1110 } | 1119 } |
| 1111 | 1120 |
| 1112 const char* Environment::ToCString() const { | 1121 const char* Environment::ToCString() const { |
| 1113 char buffer[1024]; | 1122 char buffer[1024]; |
| 1114 BufferFormatter bf(buffer, 1024); | 1123 BufferFormatter bf(buffer, 1024); |
| 1115 PrintTo(&bf); | 1124 PrintTo(&bf); |
| 1116 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); | 1125 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); |
| 1117 } | 1126 } |
| 1118 | 1127 |
| 1119 } // namespace dart | 1128 } // namespace dart |
| OLD | NEW |