| 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 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 } | 42 } |
| 43 DescriptorList* pc_descriptors_list() const { | 43 DescriptorList* pc_descriptors_list() const { |
| 44 return pc_descriptors_list_; | 44 return pc_descriptors_list_; |
| 45 } | 45 } |
| 46 BlockEntryInstr* current_block() const { return current_block_; } | 46 BlockEntryInstr* current_block() const { return current_block_; } |
| 47 void set_current_block(BlockEntryInstr* value) { | 47 void set_current_block(BlockEntryInstr* value) { |
| 48 current_block_ = value; | 48 current_block_ = value; |
| 49 } | 49 } |
| 50 static bool CanOptimize(); | 50 static bool CanOptimize(); |
| 51 bool is_optimizing() const { return is_optimizing_; } | 51 bool is_optimizing() const { return is_optimizing_; } |
| 52 |
| 53 bool is_ssa() const { return is_ssa_; } |
| 54 |
| 52 const GrowableArray<BlockInfo*>& block_info() const { return block_info_; } | 55 const GrowableArray<BlockInfo*>& block_info() const { return block_info_; } |
| 53 | 56 |
| 54 // Constructor is lighweight, major initialization work should occur here. | 57 // Constructor is lighweight, major initialization work should occur here. |
| 55 // This makes it easier to measure time spent in the compiler. | 58 // This makes it easier to measure time spent in the compiler. |
| 56 void InitCompiler(); | 59 void InitCompiler(); |
| 57 | 60 |
| 58 void CompileGraph(); | 61 void CompileGraph(); |
| 59 | 62 |
| 60 void VisitBlocks(); | 63 void VisitBlocks(); |
| 61 | 64 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 // that should be used when deoptimizing we store it in this variable. | 310 // that should be used when deoptimizing we store it in this variable. |
| 308 // In future AddDeoptStub should be moved out of the instruction template. | 311 // In future AddDeoptStub should be moved out of the instruction template. |
| 309 Environment* pending_deoptimization_env_; | 312 Environment* pending_deoptimization_env_; |
| 310 | 313 |
| 311 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 314 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 312 }; | 315 }; |
| 313 | 316 |
| 314 } // namespace dart | 317 } // namespace dart |
| 315 | 318 |
| 316 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ | 319 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ |
| OLD | NEW |