| 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_IA32_H_ | 5 #ifndef VM_FLOW_GRAPH_COMPILER_IA32_H_ |
| 6 #define VM_FLOW_GRAPH_COMPILER_IA32_H_ | 6 #define VM_FLOW_GRAPH_COMPILER_IA32_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_ia32.h. | 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h. |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 namespace dart { | 12 namespace dart { |
| 13 | 13 |
| 14 class Code; | 14 class Code; |
| 15 class DeoptimizationStub; | 15 class DeoptimizationStub; |
| 16 class FlowGraph; |
| 16 template <typename T> class GrowableArray; | 17 template <typename T> class GrowableArray; |
| 17 class ParsedFunction; | 18 class ParsedFunction; |
| 18 | 19 |
| 19 class FlowGraphCompiler : public ValueObject { | 20 class FlowGraphCompiler : public ValueObject { |
| 20 private: | 21 private: |
| 21 struct BlockInfo : public ZoneAllocated { | 22 struct BlockInfo : public ZoneAllocated { |
| 22 public: | 23 public: |
| 23 BlockInfo() : label() { } | 24 BlockInfo() : label() { } |
| 24 Label label; | 25 Label label; |
| 25 }; | 26 }; |
| 26 | 27 |
| 27 public: | 28 public: |
| 28 FlowGraphCompiler(Assembler* assembler, | 29 FlowGraphCompiler(Assembler* assembler, |
| 29 const ParsedFunction& parsed_function, | 30 const FlowGraph& flow_graph, |
| 30 const GrowableArray<BlockEntryInstr*>& block_order, | |
| 31 bool is_optimizing, | 31 bool is_optimizing, |
| 32 bool is_ssa, | 32 bool is_ssa, |
| 33 bool is_leaf); | 33 bool is_leaf); |
| 34 | 34 |
| 35 ~FlowGraphCompiler(); | 35 ~FlowGraphCompiler(); |
| 36 | 36 |
| 37 // Accessors. | 37 // Accessors. |
| 38 Assembler* assembler() const { return assembler_; } | 38 Assembler* assembler() const { return assembler_; } |
| 39 const ParsedFunction& parsed_function() const { return parsed_function_; } | 39 const ParsedFunction& parsed_function() const { return parsed_function_; } |
| 40 const GrowableArray<BlockEntryInstr*>& block_order() const { | 40 const GrowableArray<BlockEntryInstr*>& block_order() const { |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 // that should be used when deoptimizing we store it in this variable. | 328 // that should be used when deoptimizing we store it in this variable. |
| 329 // In future AddDeoptStub should be moved out of the instruction template. | 329 // In future AddDeoptStub should be moved out of the instruction template. |
| 330 Environment* pending_deoptimization_env_; | 330 Environment* pending_deoptimization_env_; |
| 331 | 331 |
| 332 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 332 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 333 }; | 333 }; |
| 334 | 334 |
| 335 } // namespace dart | 335 } // namespace dart |
| 336 | 336 |
| 337 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ | 337 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ |
| OLD | NEW |