| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 } | 132 } |
| 133 if (print_locations && (instr->HasLocs())) { | 133 if (print_locations && (instr->HasLocs())) { |
| 134 instr->locs()->PrintTo(&f); | 134 instr->locs()->PrintTo(&f); |
| 135 } | 135 } |
| 136 if (instr->lifetime_position() != -1) { | 136 if (instr->lifetime_position() != -1) { |
| 137 ISL_Print("%3" Pd ": ", instr->lifetime_position()); | 137 ISL_Print("%3" Pd ": ", instr->lifetime_position()); |
| 138 } | 138 } |
| 139 if (!instr->IsBlockEntry()) ISL_Print(" "); | 139 if (!instr->IsBlockEntry()) ISL_Print(" "); |
| 140 ISL_Print("%s", str); | 140 ISL_Print("%s", str); |
| 141 if (FLAG_trace_inlining_intervals) { | 141 if (FLAG_trace_inlining_intervals) { |
| 142 ISL_Print(" iid: %"Pd"", instr->inlining_id()); | 142 ISL_Print(" iid: %" Pd "", instr->inlining_id()); |
| 143 } | 143 } |
| 144 } | 144 } |
| 145 | 145 |
| 146 | 146 |
| 147 void FlowGraphPrinter::PrintTypeCheck(const ParsedFunction& parsed_function, | 147 void FlowGraphPrinter::PrintTypeCheck(const ParsedFunction& parsed_function, |
| 148 intptr_t token_pos, | 148 intptr_t token_pos, |
| 149 Value* value, | 149 Value* value, |
| 150 const AbstractType& dst_type, | 150 const AbstractType& dst_type, |
| 151 const String& dst_name, | 151 const String& dst_name, |
| 152 bool eliminated) { | 152 bool eliminated) { |
| (...skipping 1059 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 |