| 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_BUILDER_H_ | 5 #ifndef VM_FLOW_GRAPH_BUILDER_H_ |
| 6 #define VM_FLOW_GRAPH_BUILDER_H_ | 6 #define VM_FLOW_GRAPH_BUILDER_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "platform/globals.h" | 9 #include "platform/globals.h" |
| 10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 } | 120 } |
| 121 | 121 |
| 122 ReturnInstr* ReturnAt(intptr_t i) const { | 122 ReturnInstr* ReturnAt(intptr_t i) const { |
| 123 return exits_[i].exit_return; | 123 return exits_[i].exit_return; |
| 124 } | 124 } |
| 125 | 125 |
| 126 static int LowestBlockIdFirst(const Data* a, const Data* b); | 126 static int LowestBlockIdFirst(const Data* a, const Data* b); |
| 127 void SortExits(); | 127 void SortExits(); |
| 128 | 128 |
| 129 Definition* JoinReturns(BlockEntryInstr** exit_block, | 129 Definition* JoinReturns(BlockEntryInstr** exit_block, |
| 130 Instruction** last_instruction); | 130 Instruction** last_instruction, |
| 131 intptr_t try_index); |
| 131 | 132 |
| 132 Isolate* isolate() const { return caller_graph_->isolate(); } | 133 Isolate* isolate() const { return caller_graph_->isolate(); } |
| 133 | 134 |
| 134 FlowGraph* caller_graph_; | 135 FlowGraph* caller_graph_; |
| 135 Definition* call_; | 136 Definition* call_; |
| 136 GrowableArray<Data> exits_; | 137 GrowableArray<Data> exits_; |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 | 140 |
| 140 // Build a flow graph from a parsed function's AST. | 141 // Build a flow graph from a parsed function's AST. |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 // Output parameters. | 603 // Output parameters. |
| 603 GrowableArray<TargetEntryInstr**> true_successor_addresses_; | 604 GrowableArray<TargetEntryInstr**> true_successor_addresses_; |
| 604 GrowableArray<TargetEntryInstr**> false_successor_addresses_; | 605 GrowableArray<TargetEntryInstr**> false_successor_addresses_; |
| 605 | 606 |
| 606 intptr_t condition_token_pos_; | 607 intptr_t condition_token_pos_; |
| 607 }; | 608 }; |
| 608 | 609 |
| 609 } // namespace dart | 610 } // namespace dart |
| 610 | 611 |
| 611 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 612 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |