| 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/intermediate_language.h" | 7 #include "vm/intermediate_language.h" |
| 8 #include "vm/os.h" | 8 #include "vm/os.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 OS::Print("ExtractConstructorTypeArguments(%s, ", type_args.ToCString()); | 290 OS::Print("ExtractConstructorTypeArguments(%s, ", type_args.ToCString()); |
| 291 comp->instantiator()->Accept(this); | 291 comp->instantiator()->Accept(this); |
| 292 OS::Print(")"); | 292 OS::Print(")"); |
| 293 } | 293 } |
| 294 | 294 |
| 295 | 295 |
| 296 void FlowGraphPrinter::VisitExtractConstructorInstantiator( | 296 void FlowGraphPrinter::VisitExtractConstructorInstantiator( |
| 297 ExtractConstructorInstantiatorComp* comp) { | 297 ExtractConstructorInstantiatorComp* comp) { |
| 298 OS::Print("ExtractConstructorInstantiator("); | 298 OS::Print("ExtractConstructorInstantiator("); |
| 299 comp->instantiator()->Accept(this); | 299 comp->instantiator()->Accept(this); |
| 300 OS::Print(", "); | |
| 301 comp->discard_value()->Accept(this); | |
| 302 OS::Print(")"); | 300 OS::Print(")"); |
| 303 } | 301 } |
| 304 | 302 |
| 305 | 303 |
| 306 void FlowGraphPrinter::VisitAllocateContext(AllocateContextComp* comp) { | 304 void FlowGraphPrinter::VisitAllocateContext(AllocateContextComp* comp) { |
| 307 OS::Print("AllocateContext(%d)", comp->num_context_variables()); | 305 OS::Print("AllocateContext(%d)", comp->num_context_variables()); |
| 308 } | 306 } |
| 309 | 307 |
| 310 | 308 |
| 311 void FlowGraphPrinter::VisitChainContext(ChainContextComp* comp) { | 309 void FlowGraphPrinter::VisitChainContext(ChainContextComp* comp) { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 void FlowGraphPrinter::VisitBranch(BranchInstr* instr) { | 390 void FlowGraphPrinter::VisitBranch(BranchInstr* instr) { |
| 393 OS::Print(" if "); | 391 OS::Print(" if "); |
| 394 instr->value()->Accept(this); | 392 instr->value()->Accept(this); |
| 395 OS::Print(" goto (%d, %d)", | 393 OS::Print(" goto (%d, %d)", |
| 396 reverse_index(instr->true_successor()->postorder_number()), | 394 reverse_index(instr->true_successor()->postorder_number()), |
| 397 reverse_index(instr->false_successor()->postorder_number())); | 395 reverse_index(instr->false_successor()->postorder_number())); |
| 398 } | 396 } |
| 399 | 397 |
| 400 | 398 |
| 401 } // namespace dart | 399 } // namespace dart |
| OLD | NEW |