| 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_H_ | 5 #ifndef VM_FLOW_GRAPH_COMPILER_H_ |
| 6 #define VM_FLOW_GRAPH_COMPILER_H_ | 6 #define VM_FLOW_GRAPH_COMPILER_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/code_descriptors.h" | 10 #include "vm/code_descriptors.h" |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 // Returns 'sorted' array in decreasing count order. | 545 // Returns 'sorted' array in decreasing count order. |
| 546 // The expected number of elements to sort is less than 10. | 546 // The expected number of elements to sort is less than 10. |
| 547 static void SortICDataByCount(const ICData& ic_data, | 547 static void SortICDataByCount(const ICData& ic_data, |
| 548 GrowableArray<CidTarget>* sorted); | 548 GrowableArray<CidTarget>* sorted); |
| 549 | 549 |
| 550 void CompactBlock(BlockEntryInstr* block); | 550 void CompactBlock(BlockEntryInstr* block); |
| 551 void CompactBlocks(); | 551 void CompactBlocks(); |
| 552 | 552 |
| 553 class Assembler* assembler_; | 553 class Assembler* assembler_; |
| 554 const ParsedFunction& parsed_function_; | 554 const ParsedFunction& parsed_function_; |
| 555 const FlowGraph& flow_graph_; |
| 555 const GrowableArray<BlockEntryInstr*>& block_order_; | 556 const GrowableArray<BlockEntryInstr*>& block_order_; |
| 556 | 557 |
| 557 // Compiler specific per-block state. Indexed by postorder block number | 558 // Compiler specific per-block state. Indexed by postorder block number |
| 558 // for convenience. This is not the block's index in the block order, | 559 // for convenience. This is not the block's index in the block order, |
| 559 // which is reverse postorder. | 560 // which is reverse postorder. |
| 560 BlockEntryInstr* current_block_; | 561 BlockEntryInstr* current_block_; |
| 561 ExceptionHandlerList* exception_handlers_list_; | 562 ExceptionHandlerList* exception_handlers_list_; |
| 562 DescriptorList* pc_descriptors_list_; | 563 DescriptorList* pc_descriptors_list_; |
| 563 StackmapTableBuilder* stackmap_table_builder_; | 564 StackmapTableBuilder* stackmap_table_builder_; |
| 564 GrowableArray<BlockInfo*> block_info_; | 565 GrowableArray<BlockInfo*> block_info_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 580 // that should be used when deoptimizing we store it in this variable. | 581 // that should be used when deoptimizing we store it in this variable. |
| 581 // In future AddDeoptStub should be moved out of the instruction template. | 582 // In future AddDeoptStub should be moved out of the instruction template. |
| 582 Environment* pending_deoptimization_env_; | 583 Environment* pending_deoptimization_env_; |
| 583 | 584 |
| 584 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 585 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 585 }; | 586 }; |
| 586 | 587 |
| 587 } // namespace dart | 588 } // namespace dart |
| 588 | 589 |
| 589 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 590 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |