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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 | 349 |
350 void InsertConversionsFor(Definition* def); | 350 void InsertConversionsFor(Definition* def); |
351 void ConvertUse(Value* use, Representation from); | 351 void ConvertUse(Value* use, Representation from); |
352 void ConvertEnvironmentUse(Value* use, Representation from); | 352 void ConvertEnvironmentUse(Value* use, Representation from); |
353 void InsertConversion(Representation from, | 353 void InsertConversion(Representation from, |
354 Representation to, | 354 Representation to, |
355 Value* use, | 355 Value* use, |
356 bool is_environment_use); | 356 bool is_environment_use); |
357 | 357 |
358 bool IsReceiver(Definition* def) const; | 358 bool IsReceiver(Definition* def) const; |
359 void ComputeIsReceiverRecursive(PhiInstr* phi, BitVector* processed) const; | 359 void ComputeIsReceiver(PhiInstr* phi) const; |
| 360 void ComputeIsReceiverRecursive(PhiInstr* phi, |
| 361 GrowableArray<PhiInstr*>* unmark) const; |
360 | 362 |
361 Thread* thread_; | 363 Thread* thread_; |
362 | 364 |
363 // DiscoverBlocks computes parent_ and assigned_vars_ which are then used | 365 // DiscoverBlocks computes parent_ and assigned_vars_ which are then used |
364 // if/when computing SSA. | 366 // if/when computing SSA. |
365 GrowableArray<intptr_t> parent_; | 367 GrowableArray<intptr_t> parent_; |
366 GrowableArray<BitVector*> assigned_vars_; | 368 GrowableArray<BitVector*> assigned_vars_; |
367 | 369 |
368 intptr_t current_ssa_temp_index_; | 370 intptr_t current_ssa_temp_index_; |
369 intptr_t max_block_id_; | 371 intptr_t max_block_id_; |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 | 541 |
540 private: | 542 private: |
541 GrowableArray<Definition*> defs_; | 543 GrowableArray<Definition*> defs_; |
542 BitVector* contains_vector_; | 544 BitVector* contains_vector_; |
543 }; | 545 }; |
544 | 546 |
545 | 547 |
546 } // namespace dart | 548 } // namespace dart |
547 | 549 |
548 #endif // VM_FLOW_GRAPH_H_ | 550 #endif // VM_FLOW_GRAPH_H_ |
OLD | NEW |