| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 intptr_t num_non_copied_params() const { | 146 intptr_t num_non_copied_params() const { |
| 147 return num_non_copied_params_; | 147 return num_non_copied_params_; |
| 148 } | 148 } |
| 149 intptr_t num_stack_locals() const { | 149 intptr_t num_stack_locals() const { |
| 150 return num_stack_locals_; | 150 return num_stack_locals_; |
| 151 } | 151 } |
| 152 | 152 |
| 153 bool IsInlining() const { return (exit_collector_ != NULL); } | 153 bool IsInlining() const { return (exit_collector_ != NULL); } |
| 154 InlineExitCollector* exit_collector() const { return exit_collector_; } | 154 InlineExitCollector* exit_collector() const { return exit_collector_; } |
| 155 | 155 |
| 156 ZoneGrowableArray<const Field*>* guarded_fields() const { | |
| 157 return parsed_function_.guarded_fields(); | |
| 158 } | |
| 159 | |
| 160 ZoneGrowableArray<const LibraryPrefix*>* deferred_prefixes() const { | 156 ZoneGrowableArray<const LibraryPrefix*>* deferred_prefixes() const { |
| 161 return parsed_function_.deferred_prefixes(); | 157 return parsed_function_.deferred_prefixes(); |
| 162 } | 158 } |
| 163 | 159 |
| 164 intptr_t temp_count() const { return temp_count_; } | 160 intptr_t temp_count() const { return temp_count_; } |
| 165 intptr_t AllocateTemp() { return temp_count_++; } | 161 intptr_t AllocateTemp() { return temp_count_++; } |
| 166 void DeallocateTemps(intptr_t count) { | 162 void DeallocateTemps(intptr_t count) { |
| 167 ASSERT(temp_count_ >= count); | 163 ASSERT(temp_count_ >= count); |
| 168 temp_count_ -= count; | 164 temp_count_ -= count; |
| 169 } | 165 } |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 // Output parameters. | 575 // Output parameters. |
| 580 GrowableArray<TargetEntryInstr**> true_successor_addresses_; | 576 GrowableArray<TargetEntryInstr**> true_successor_addresses_; |
| 581 GrowableArray<TargetEntryInstr**> false_successor_addresses_; | 577 GrowableArray<TargetEntryInstr**> false_successor_addresses_; |
| 582 | 578 |
| 583 TokenPosition condition_token_pos_; | 579 TokenPosition condition_token_pos_; |
| 584 }; | 580 }; |
| 585 | 581 |
| 586 } // namespace dart | 582 } // namespace dart |
| 587 | 583 |
| 588 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 584 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |