| 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 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 const GrowableArray<BlockEntryInstr*>& block_order() const { | 39 const GrowableArray<BlockEntryInstr*>& block_order() const { |
| 40 return block_order_; | 40 return block_order_; |
| 41 } | 41 } |
| 42 DescriptorList* pc_descriptors_list() const { | 42 DescriptorList* pc_descriptors_list() const { |
| 43 return pc_descriptors_list_; | 43 return pc_descriptors_list_; |
| 44 } | 44 } |
| 45 BlockEntryInstr* current_block() const { return current_block_; } | 45 BlockEntryInstr* current_block() const { return current_block_; } |
| 46 void set_current_block(BlockEntryInstr* value) { | 46 void set_current_block(BlockEntryInstr* value) { |
| 47 current_block_ = value; | 47 current_block_ = value; |
| 48 } | 48 } |
| 49 static bool CanOptimize(); |
| 49 bool is_optimizing() const { return is_optimizing_; } | 50 bool is_optimizing() const { return is_optimizing_; } |
| 50 const GrowableArray<BlockInfo*>& block_info() const { return block_info_; } | 51 const GrowableArray<BlockInfo*>& block_info() const { return block_info_; } |
| 51 | 52 |
| 52 // Constructor is lighweight, major initialization work should occur here. | 53 // Constructor is lighweight, major initialization work should occur here. |
| 53 // This makes it easier to measure time spent in the compiler. | 54 // This makes it easier to measure time spent in the compiler. |
| 54 void InitCompiler(); | 55 void InitCompiler(); |
| 55 | 56 |
| 56 void CompileGraph(); | 57 void CompileGraph(); |
| 57 | 58 |
| 58 void VisitBlocks(); | 59 void VisitBlocks(); |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 const DeoptReasonId reason_; | 320 const DeoptReasonId reason_; |
| 320 GrowableArray<Register> registers_; | 321 GrowableArray<Register> registers_; |
| 321 Label entry_label_; | 322 Label entry_label_; |
| 322 | 323 |
| 323 DISALLOW_COPY_AND_ASSIGN(DeoptimizationStub); | 324 DISALLOW_COPY_AND_ASSIGN(DeoptimizationStub); |
| 324 }; | 325 }; |
| 325 | 326 |
| 326 } // namespace dart | 327 } // namespace dart |
| 327 | 328 |
| 328 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ | 329 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ |
| OLD | NEW |