| 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_FLOW_GRAPH_COMPILER_X64_H_ | 5 #ifndef VM_FLOW_GRAPH_COMPILER_X64_H_ |
| 6 #define VM_FLOW_GRAPH_COMPILER_X64_H_ | 6 #define VM_FLOW_GRAPH_COMPILER_X64_H_ |
| 7 | 7 |
| 8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ | 8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ |
| 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_x64.h. | 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_x64.h. |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 #include "vm/assembler.h" | 12 #include "vm/assembler.h" |
| 13 #include "vm/code_descriptors.h" |
| 13 #include "vm/code_generator.h" | 14 #include "vm/code_generator.h" |
| 14 #include "vm/intermediate_language.h" | 15 #include "vm/intermediate_language.h" |
| 15 | 16 |
| 16 namespace dart { | 17 namespace dart { |
| 17 | 18 |
| 18 class Code; | 19 class Code; |
| 19 template <typename T> class GrowableArray; | 20 template <typename T> class GrowableArray; |
| 20 class ParsedFunction; | 21 class ParsedFunction; |
| 21 | 22 |
| 22 class FlowGraphCompiler : public FlowGraphVisitor { | 23 class FlowGraphCompiler : public FlowGraphVisitor { |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 Assembler* assembler_; | 105 Assembler* assembler_; |
| 105 const ParsedFunction& parsed_function_; | 106 const ParsedFunction& parsed_function_; |
| 106 const GrowableArray<BlockEntryInstr*>* blocks_; | 107 const GrowableArray<BlockEntryInstr*>* blocks_; |
| 107 | 108 |
| 108 // Compiler specific per-block state. Indexed by block number, so not | 109 // Compiler specific per-block state. Indexed by block number, so not |
| 109 // necessarily the same order as the array of blocks. | 110 // necessarily the same order as the array of blocks. |
| 110 GrowableArray<BlockInfo*> block_info_; | 111 GrowableArray<BlockInfo*> block_info_; |
| 111 | 112 |
| 112 BlockEntryInstr* current_block_; | 113 BlockEntryInstr* current_block_; |
| 113 | 114 |
| 114 CodeGenerator::DescriptorList* pc_descriptors_list_; | 115 DescriptorList* pc_descriptors_list_; |
| 115 | 116 |
| 116 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 117 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 } // namespace dart | 120 } // namespace dart |
| 120 | 121 |
| 121 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ | 122 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ |
| OLD | NEW |