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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 192 |
193 bool IsInlining() const { return (exit_collector_ != NULL); } | 193 bool IsInlining() const { return (exit_collector_ != NULL); } |
194 InlineExitCollector* exit_collector() const { return exit_collector_; } | 194 InlineExitCollector* exit_collector() const { return exit_collector_; } |
195 | 195 |
196 bool is_optimizing() const { return is_optimizing_; } | 196 bool is_optimizing() const { return is_optimizing_; } |
197 | 197 |
198 ZoneGrowableArray<const Field*>* guarded_fields() const { | 198 ZoneGrowableArray<const Field*>* guarded_fields() const { |
199 return guarded_fields_; | 199 return guarded_fields_; |
200 } | 200 } |
201 | 201 |
| 202 ZoneGrowableArray<const LibraryPrefix*>* deferred_prefixes() const { |
| 203 return parsed_function_->deferred_prefixes(); |
| 204 } |
| 205 |
202 intptr_t temp_count() const { return temp_count_; } | 206 intptr_t temp_count() const { return temp_count_; } |
203 intptr_t AllocateTemp() { return temp_count_++; } | 207 intptr_t AllocateTemp() { return temp_count_++; } |
204 void DeallocateTemps(intptr_t count) { | 208 void DeallocateTemps(intptr_t count) { |
205 ASSERT(temp_count_ >= count); | 209 ASSERT(temp_count_ >= count); |
206 temp_count_ -= count; | 210 temp_count_ -= count; |
207 } | 211 } |
208 | 212 |
209 intptr_t args_pushed() const { return args_pushed_; } | 213 intptr_t args_pushed() const { return args_pushed_; } |
210 void add_args_pushed(intptr_t n) { args_pushed_ += n; } | 214 void add_args_pushed(intptr_t n) { args_pushed_ += n; } |
211 | 215 |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 // Output parameters. | 586 // Output parameters. |
583 GrowableArray<TargetEntryInstr**> true_successor_addresses_; | 587 GrowableArray<TargetEntryInstr**> true_successor_addresses_; |
584 GrowableArray<TargetEntryInstr**> false_successor_addresses_; | 588 GrowableArray<TargetEntryInstr**> false_successor_addresses_; |
585 | 589 |
586 intptr_t condition_token_pos_; | 590 intptr_t condition_token_pos_; |
587 }; | 591 }; |
588 | 592 |
589 } // namespace dart | 593 } // namespace dart |
590 | 594 |
591 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 595 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
OLD | NEW |