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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 PrintICDataHelper(&f, ic_data); | 230 PrintICDataHelper(&f, ic_data); |
231 THR_Print("%s ", buffer); | 231 THR_Print("%s ", buffer); |
232 const Array& a = Array::Handle(ic_data.arguments_descriptor()); | 232 const Array& a = Array::Handle(ic_data.arguments_descriptor()); |
233 THR_Print(" arg-desc %" Pd "\n", a.Length()); | 233 THR_Print(" arg-desc %" Pd "\n", a.Length()); |
234 } | 234 } |
235 | 235 |
236 | 236 |
237 static void PrintUse(BufferFormatter* f, const Definition& definition) { | 237 static void PrintUse(BufferFormatter* f, const Definition& definition) { |
238 if (definition.HasSSATemp()) { | 238 if (definition.HasSSATemp()) { |
239 if (definition.HasPairRepresentation()) { | 239 if (definition.HasPairRepresentation()) { |
240 f->Print("v%" Pd ", v%" Pd "", definition.ssa_temp_index(), | 240 f->Print("(v%" Pd ", v%" Pd ")", definition.ssa_temp_index(), |
241 definition.ssa_temp_index() + 1); | 241 definition.ssa_temp_index() + 1); |
242 } else { | 242 } else { |
243 f->Print("v%" Pd "", definition.ssa_temp_index()); | 243 f->Print("v%" Pd "", definition.ssa_temp_index()); |
244 } | 244 } |
245 } else if (definition.HasTemp()) { | 245 } else if (definition.HasTemp()) { |
246 f->Print("t%" Pd "", definition.temp_index()); | 246 f->Print("t%" Pd "", definition.temp_index()); |
247 } | 247 } |
248 } | 248 } |
249 | 249 |
250 | 250 |
251 const char* Instruction::ToCString() const { | 251 const char* Instruction::ToCString() const { |
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1212 } | 1212 } |
1213 | 1213 |
1214 const char* Environment::ToCString() const { | 1214 const char* Environment::ToCString() const { |
1215 char buffer[1024]; | 1215 char buffer[1024]; |
1216 BufferFormatter bf(buffer, 1024); | 1216 BufferFormatter bf(buffer, 1024); |
1217 PrintTo(&bf); | 1217 PrintTo(&bf); |
1218 return Thread::Current()->zone()->MakeCopyOfString(buffer); | 1218 return Thread::Current()->zone()->MakeCopyOfString(buffer); |
1219 } | 1219 } |
1220 | 1220 |
1221 } // namespace dart | 1221 } // namespace dart |
OLD | NEW |