| 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/bit_vector.h" | 8 #include "vm/bit_vector.h" |
| 9 #include "vm/growable_array.h" | 9 #include "vm/growable_array.h" |
| 10 #include "vm/hash_map.h" | 10 #include "vm/hash_map.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 } | 103 } |
| 104 intptr_t num_stack_locals() const { | 104 intptr_t num_stack_locals() const { |
| 105 return parsed_function().num_stack_locals(); | 105 return parsed_function().num_stack_locals(); |
| 106 } | 106 } |
| 107 intptr_t num_copied_params() const { | 107 intptr_t num_copied_params() const { |
| 108 return num_copied_params_; | 108 return num_copied_params_; |
| 109 } | 109 } |
| 110 intptr_t num_non_copied_params() const { | 110 intptr_t num_non_copied_params() const { |
| 111 return num_non_copied_params_; | 111 return num_non_copied_params_; |
| 112 } | 112 } |
| 113 bool IsIrregexpFunction() const { |
| 114 return parsed_function().function().IsIrregexpFunction(); |
| 115 } |
| 113 | 116 |
| 114 LocalVariable* CurrentContextVar() const { | 117 LocalVariable* CurrentContextVar() const { |
| 115 return parsed_function().current_context_var(); | 118 return parsed_function().current_context_var(); |
| 116 } | 119 } |
| 117 | 120 |
| 118 intptr_t CurrentContextEnvIndex() const { | 121 intptr_t CurrentContextEnvIndex() const { |
| 119 return parsed_function().current_context_var()->BitIndexIn( | 122 return parsed_function().current_context_var()->BitIndexIn( |
| 120 num_non_copied_params_); | 123 num_non_copied_params_); |
| 121 } | 124 } |
| 122 | 125 |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 | 508 |
| 506 private: | 509 private: |
| 507 GrowableArray<Definition*> defs_; | 510 GrowableArray<Definition*> defs_; |
| 508 BitVector* contains_vector_; | 511 BitVector* contains_vector_; |
| 509 }; | 512 }; |
| 510 | 513 |
| 511 | 514 |
| 512 } // namespace dart | 515 } // namespace dart |
| 513 | 516 |
| 514 #endif // VM_FLOW_GRAPH_H_ | 517 #endif // VM_FLOW_GRAPH_H_ |
| OLD | NEW |