| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 } | 154 } |
| 155 | 155 |
| 156 bool IsInlining() const { return (exit_collector_ != NULL); } | 156 bool IsInlining() const { return (exit_collector_ != NULL); } |
| 157 InlineExitCollector* exit_collector() const { return exit_collector_; } | 157 InlineExitCollector* exit_collector() const { return exit_collector_; } |
| 158 | 158 |
| 159 ZoneGrowableArray<const Field*>* guarded_fields() const { | 159 ZoneGrowableArray<const Field*>* guarded_fields() const { |
| 160 return guarded_fields_; | 160 return guarded_fields_; |
| 161 } | 161 } |
| 162 | 162 |
| 163 intptr_t temp_count() const { return temp_count_; } | 163 intptr_t temp_count() const { return temp_count_; } |
| 164 intptr_t AllocateTemp() { return ++temp_count_; } | 164 intptr_t AllocateTemp() { return temp_count_++; } |
| 165 void DeallocateTemps(intptr_t count) { | 165 void DeallocateTemps(intptr_t count) { |
| 166 ASSERT(temp_count_ >= count); | 166 ASSERT(temp_count_ >= count); |
| 167 temp_count_ -= count; | 167 temp_count_ -= count; |
| 168 } | 168 } |
| 169 | 169 |
| 170 intptr_t args_pushed() const { return args_pushed_; } | 170 intptr_t args_pushed() const { return args_pushed_; } |
| 171 void add_args_pushed(intptr_t n) { args_pushed_ += n; } | 171 void add_args_pushed(intptr_t n) { args_pushed_ += n; } |
| 172 | 172 |
| 173 // When compiling for OSR, remove blocks that are not reachable from the | 173 // When compiling for OSR, remove blocks that are not reachable from the |
| 174 // OSR entry point. | 174 // OSR entry point. |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 // Output parameters. | 537 // Output parameters. |
| 538 GrowableArray<TargetEntryInstr**> true_successor_addresses_; | 538 GrowableArray<TargetEntryInstr**> true_successor_addresses_; |
| 539 GrowableArray<TargetEntryInstr**> false_successor_addresses_; | 539 GrowableArray<TargetEntryInstr**> false_successor_addresses_; |
| 540 | 540 |
| 541 intptr_t condition_token_pos_; | 541 intptr_t condition_token_pos_; |
| 542 }; | 542 }; |
| 543 | 543 |
| 544 } // namespace dart | 544 } // namespace dart |
| 545 | 545 |
| 546 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 546 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |