| 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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 return block_order_.length() - index - 1; | 564 return block_order_.length() - index - 1; |
| 565 } | 565 } |
| 566 | 566 |
| 567 void CompactBlock(BlockEntryInstr* block); | 567 void CompactBlock(BlockEntryInstr* block); |
| 568 void CompactBlocks(); | 568 void CompactBlocks(); |
| 569 | 569 |
| 570 bool IsListClass(const Class& cls) const { | 570 bool IsListClass(const Class& cls) const { |
| 571 return cls.raw() == list_class_.raw(); | 571 return cls.raw() == list_class_.raw(); |
| 572 } | 572 } |
| 573 | 573 |
| 574 void EmitSourceLine(Instruction* instr); |
| 575 |
| 574 class Assembler* assembler_; | 576 class Assembler* assembler_; |
| 575 const ParsedFunction& parsed_function_; | 577 const ParsedFunction& parsed_function_; |
| 576 const FlowGraph& flow_graph_; | 578 const FlowGraph& flow_graph_; |
| 577 const GrowableArray<BlockEntryInstr*>& block_order_; | 579 const GrowableArray<BlockEntryInstr*>& block_order_; |
| 578 | 580 |
| 579 // Compiler specific per-block state. Indexed by postorder block number | 581 // Compiler specific per-block state. Indexed by postorder block number |
| 580 // for convenience. This is not the block's index in the block order, | 582 // for convenience. This is not the block's index in the block order, |
| 581 // which is reverse postorder. | 583 // which is reverse postorder. |
| 582 BlockEntryInstr* current_block_; | 584 BlockEntryInstr* current_block_; |
| 583 ExceptionHandlerList* exception_handlers_list_; | 585 ExceptionHandlerList* exception_handlers_list_; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 605 // that should be used when deoptimizing we store it in this variable. | 607 // that should be used when deoptimizing we store it in this variable. |
| 606 // In future AddDeoptStub should be moved out of the instruction template. | 608 // In future AddDeoptStub should be moved out of the instruction template. |
| 607 Environment* pending_deoptimization_env_; | 609 Environment* pending_deoptimization_env_; |
| 608 | 610 |
| 609 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 611 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 610 }; | 612 }; |
| 611 | 613 |
| 612 } // namespace dart | 614 } // namespace dart |
| 613 | 615 |
| 614 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 616 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |