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 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1036 f->Print(" %s", RepresentationToCString(representation())); | 1036 f->Print(" %s", RepresentationToCString(representation())); |
1037 } | 1037 } |
1038 | 1038 |
1039 if (type_ != NULL) { | 1039 if (type_ != NULL) { |
1040 f->Print(" "); | 1040 f->Print(" "); |
1041 type_->PrintTo(f); | 1041 type_->PrintTo(f); |
1042 } | 1042 } |
1043 } | 1043 } |
1044 | 1044 |
1045 | 1045 |
| 1046 void UnboxIntNInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 1047 if (is_truncating()) { |
| 1048 f->Print("[tr], "); |
| 1049 } |
| 1050 Definition::PrintOperandsTo(f); |
| 1051 } |
| 1052 |
| 1053 |
1046 void UnboxedIntConverterInstr::PrintOperandsTo(BufferFormatter* f) const { | 1054 void UnboxedIntConverterInstr::PrintOperandsTo(BufferFormatter* f) const { |
1047 f->Print("%s->%s, ", | 1055 f->Print("%s->%s%s, ", |
1048 RepresentationToCString(from()), | 1056 RepresentationToCString(from()), |
1049 RepresentationToCString(to())); | 1057 RepresentationToCString(to()), |
| 1058 is_truncating() ? "[tr]" : ""); |
1050 Definition::PrintOperandsTo(f); | 1059 Definition::PrintOperandsTo(f); |
1051 } | 1060 } |
1052 | 1061 |
1053 | 1062 |
1054 void ParameterInstr::PrintOperandsTo(BufferFormatter* f) const { | 1063 void ParameterInstr::PrintOperandsTo(BufferFormatter* f) const { |
1055 f->Print("%" Pd, index()); | 1064 f->Print("%" Pd, index()); |
1056 } | 1065 } |
1057 | 1066 |
1058 | 1067 |
1059 void CheckStackOverflowInstr::PrintOperandsTo(BufferFormatter* f) const { | 1068 void CheckStackOverflowInstr::PrintOperandsTo(BufferFormatter* f) const { |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1157 } | 1166 } |
1158 | 1167 |
1159 const char* Environment::ToCString() const { | 1168 const char* Environment::ToCString() const { |
1160 char buffer[1024]; | 1169 char buffer[1024]; |
1161 BufferFormatter bf(buffer, 1024); | 1170 BufferFormatter bf(buffer, 1024); |
1162 PrintTo(&bf); | 1171 PrintTo(&bf); |
1163 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); | 1172 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); |
1164 } | 1173 } |
1165 | 1174 |
1166 } // namespace dart | 1175 } // namespace dart |
OLD | NEW |