| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 200 |
| 201 intptr_t args_pushed() const { return args_pushed_; } | 201 intptr_t args_pushed() const { return args_pushed_; } |
| 202 void add_args_pushed(intptr_t n) { args_pushed_ += n; } | 202 void add_args_pushed(intptr_t n) { args_pushed_ += n; } |
| 203 | 203 |
| 204 NestedStatement* nesting_stack() const { return nesting_stack_; } | 204 NestedStatement* nesting_stack() const { return nesting_stack_; } |
| 205 | 205 |
| 206 // When compiling for OSR, remove blocks that are not reachable from the | 206 // When compiling for OSR, remove blocks that are not reachable from the |
| 207 // OSR entry point. | 207 // OSR entry point. |
| 208 void PruneUnreachable(); | 208 void PruneUnreachable(); |
| 209 | 209 |
| 210 // Returns address where the constant 'value' is stored or 0 if not found. |
| 211 static uword FindDoubleConstant(double value); |
| 212 |
| 210 private: | 213 private: |
| 211 friend class NestedStatement; // Explicit access to nesting_stack_. | 214 friend class NestedStatement; // Explicit access to nesting_stack_. |
| 212 | 215 |
| 213 intptr_t parameter_count() const { | 216 intptr_t parameter_count() const { |
| 214 return num_copied_params_ + num_non_copied_params_; | 217 return num_copied_params_ + num_non_copied_params_; |
| 215 } | 218 } |
| 216 intptr_t variable_count() const { | 219 intptr_t variable_count() const { |
| 217 return parameter_count() + num_stack_locals_; | 220 return parameter_count() + num_stack_locals_; |
| 218 } | 221 } |
| 219 | 222 |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 // Output parameters. | 567 // Output parameters. |
| 565 GrowableArray<TargetEntryInstr**> true_successor_addresses_; | 568 GrowableArray<TargetEntryInstr**> true_successor_addresses_; |
| 566 GrowableArray<TargetEntryInstr**> false_successor_addresses_; | 569 GrowableArray<TargetEntryInstr**> false_successor_addresses_; |
| 567 | 570 |
| 568 intptr_t condition_token_pos_; | 571 intptr_t condition_token_pos_; |
| 569 }; | 572 }; |
| 570 | 573 |
| 571 } // namespace dart | 574 } // namespace dart |
| 572 | 575 |
| 573 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 576 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |