| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_H_ | 5 #ifndef VM_FLOW_GRAPH_H_ |
| 6 #define VM_FLOW_GRAPH_H_ | 6 #define VM_FLOW_GRAPH_H_ |
| 7 | 7 |
| 8 #include "vm/growable_array.h" | 8 #include "vm/growable_array.h" |
| 9 #include "vm/hash_map.h" | 9 #include "vm/hash_map.h" |
| 10 #include "vm/intermediate_language.h" | 10 #include "vm/intermediate_language.h" |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 } | 113 } |
| 114 intptr_t num_stack_locals() const { | 114 intptr_t num_stack_locals() const { |
| 115 return num_stack_locals_; | 115 return num_stack_locals_; |
| 116 } | 116 } |
| 117 intptr_t num_copied_params() const { | 117 intptr_t num_copied_params() const { |
| 118 return num_copied_params_; | 118 return num_copied_params_; |
| 119 } | 119 } |
| 120 intptr_t num_non_copied_params() const { | 120 intptr_t num_non_copied_params() const { |
| 121 return num_non_copied_params_; | 121 return num_non_copied_params_; |
| 122 } | 122 } |
| 123 bool IsIrregexpFunction() const { |
| 124 return parsed_function().function().IsIrregexpFunction(); |
| 125 } |
| 123 | 126 |
| 124 // Flow graph orders. | 127 // Flow graph orders. |
| 125 const GrowableArray<BlockEntryInstr*>& preorder() const { | 128 const GrowableArray<BlockEntryInstr*>& preorder() const { |
| 126 return preorder_; | 129 return preorder_; |
| 127 } | 130 } |
| 128 const GrowableArray<BlockEntryInstr*>& postorder() const { | 131 const GrowableArray<BlockEntryInstr*>& postorder() const { |
| 129 return postorder_; | 132 return postorder_; |
| 130 } | 133 } |
| 131 const GrowableArray<BlockEntryInstr*>& reverse_postorder() const { | 134 const GrowableArray<BlockEntryInstr*>& reverse_postorder() const { |
| 132 return reverse_postorder_; | 135 return reverse_postorder_; |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 // Per block sets of available blocks. Block A is available at the block B if | 453 // Per block sets of available blocks. Block A is available at the block B if |
| 451 // and only if A dominates B and all paths from A to B are free of side | 454 // and only if A dominates B and all paths from A to B are free of side |
| 452 // effects. | 455 // effects. |
| 453 GrowableArray<BitVector*> available_at_; | 456 GrowableArray<BitVector*> available_at_; |
| 454 }; | 457 }; |
| 455 | 458 |
| 456 | 459 |
| 457 } // namespace dart | 460 } // namespace dart |
| 458 | 461 |
| 459 #endif // VM_FLOW_GRAPH_H_ | 462 #endif // VM_FLOW_GRAPH_H_ |
| OLD | NEW |