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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 intptr_t catch_try_index() const { return catch_try_index_; } | 133 intptr_t catch_try_index() const { return catch_try_index_; } |
134 | 134 |
135 intptr_t next_await_counter() { return jump_count_++; } | 135 intptr_t next_await_counter() { return jump_count_++; } |
136 | 136 |
137 ZoneGrowableArray<JoinEntryInstr*>* await_joins() const { | 137 ZoneGrowableArray<JoinEntryInstr*>* await_joins() const { |
138 return await_joins_; | 138 return await_joins_; |
139 } | 139 } |
140 | 140 |
141 void AddCatchEntry(CatchBlockEntryInstr* entry); | 141 void AddCatchEntry(CatchBlockEntryInstr* entry); |
142 | 142 |
| 143 GraphEntryInstr* graph_entry() const { |
| 144 return graph_entry_; |
| 145 } |
| 146 |
143 intptr_t num_copied_params() const { | 147 intptr_t num_copied_params() const { |
144 return num_copied_params_; | 148 return num_copied_params_; |
145 } | 149 } |
146 intptr_t num_non_copied_params() const { | 150 intptr_t num_non_copied_params() const { |
147 return num_non_copied_params_; | 151 return num_non_copied_params_; |
148 } | 152 } |
149 intptr_t num_stack_locals() const { | 153 intptr_t num_stack_locals() const { |
150 return num_stack_locals_; | 154 return num_stack_locals_; |
151 } | 155 } |
152 | 156 |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 // Output parameters. | 579 // Output parameters. |
576 GrowableArray<TargetEntryInstr**> true_successor_addresses_; | 580 GrowableArray<TargetEntryInstr**> true_successor_addresses_; |
577 GrowableArray<TargetEntryInstr**> false_successor_addresses_; | 581 GrowableArray<TargetEntryInstr**> false_successor_addresses_; |
578 | 582 |
579 TokenPosition condition_token_pos_; | 583 TokenPosition condition_token_pos_; |
580 }; | 584 }; |
581 | 585 |
582 } // namespace dart | 586 } // namespace dart |
583 | 587 |
584 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 588 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
OLD | NEW |