| 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 #ifndef VM_IL_PRINTER_H_ | 5 #ifndef VM_IL_PRINTER_H_ |
| 6 #define VM_IL_PRINTER_H_ | 6 #define VM_IL_PRINTER_H_ |
| 7 | 7 |
| 8 #include "vm/flow_graph.h" | 8 #include "vm/flow_graph.h" |
| 9 #include "vm/intermediate_language.h" | 9 #include "vm/intermediate_language.h" |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // another block and that block is not next in reverse postorder. | 46 // another block and that block is not next in reverse postorder. |
| 47 void PrintBlocks(); | 47 void PrintBlocks(); |
| 48 void PrintInstruction(Instruction* instr); | 48 void PrintInstruction(Instruction* instr); |
| 49 static void PrintOneInstruction(Instruction* instr, bool print_locations); | 49 static void PrintOneInstruction(Instruction* instr, bool print_locations); |
| 50 static void PrintTypeCheck(const ParsedFunction& parsed_function, | 50 static void PrintTypeCheck(const ParsedFunction& parsed_function, |
| 51 intptr_t token_pos, | 51 intptr_t token_pos, |
| 52 Value* value, | 52 Value* value, |
| 53 const AbstractType& dst_type, | 53 const AbstractType& dst_type, |
| 54 const String& dst_name, | 54 const String& dst_name, |
| 55 bool eliminated); | 55 bool eliminated); |
| 56 static void PrintBlock(BlockEntryInstr* block, bool print_locations); |
| 56 | 57 |
| 57 static void PrintGraph(const char* phase, FlowGraph* flow_graph); | 58 static void PrintGraph(const char* phase, FlowGraph* flow_graph); |
| 58 | 59 |
| 59 private: | 60 private: |
| 60 const Function& function_; | 61 const Function& function_; |
| 61 const GrowableArray<BlockEntryInstr*>& block_order_; | 62 const GrowableArray<BlockEntryInstr*>& block_order_; |
| 62 const bool print_locations_; | 63 const bool print_locations_; |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 } // namespace dart | 66 } // namespace dart |
| 66 | 67 |
| 67 #endif // VM_IL_PRINTER_H_ | 68 #endif // VM_IL_PRINTER_H_ |
| OLD | NEW |