| 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 bool IsCompiledForOsr() const { return graph_entry()->IsCompiledForOsr(); } | 272 bool IsCompiledForOsr() const { return graph_entry()->IsCompiledForOsr(); } |
| 273 | 273 |
| 274 static void AddToGuardedFields(ZoneGrowableArray<const Field*>* array, | 274 static void AddToGuardedFields(ZoneGrowableArray<const Field*>* array, |
| 275 const Field* field); | 275 const Field* field); |
| 276 void AddToDeferredPrefixes(ZoneGrowableArray<const LibraryPrefix*>* from); | 276 void AddToDeferredPrefixes(ZoneGrowableArray<const LibraryPrefix*>* from); |
| 277 | 277 |
| 278 ZoneGrowableArray<const Field*>* guarded_fields() const { | 278 ZoneGrowableArray<const Field*>* guarded_fields() const { |
| 279 return guarded_fields_; | 279 return guarded_fields_; |
| 280 } | 280 } |
| 281 | 281 |
| 282 GrowableArray<const Field*>& deoptimize_dependent_code() { |
| 283 return deoptimize_dependent_code_; |
| 284 } |
| 285 |
| 282 ZoneGrowableArray<const LibraryPrefix*>* deferred_prefixes() const { | 286 ZoneGrowableArray<const LibraryPrefix*>* deferred_prefixes() const { |
| 283 return deferred_prefixes_; | 287 return deferred_prefixes_; |
| 284 } | 288 } |
| 285 | 289 |
| 286 BitVector* captured_parameters() const { | 290 BitVector* captured_parameters() const { |
| 287 return captured_parameters_; | 291 return captured_parameters_; |
| 288 } | 292 } |
| 289 | 293 |
| 290 intptr_t inlining_id() const { return inlining_id_; } | 294 intptr_t inlining_id() const { return inlining_id_; } |
| 291 void set_inlining_id(intptr_t value) { inlining_id_ = value; } | 295 void set_inlining_id(intptr_t value) { inlining_id_ = value; } |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 ConstantInstr* constant_null_; | 360 ConstantInstr* constant_null_; |
| 357 ConstantInstr* constant_dead_; | 361 ConstantInstr* constant_dead_; |
| 358 ConstantInstr* constant_empty_context_; | 362 ConstantInstr* constant_empty_context_; |
| 359 | 363 |
| 360 BlockEffects* block_effects_; | 364 BlockEffects* block_effects_; |
| 361 bool licm_allowed_; | 365 bool licm_allowed_; |
| 362 | 366 |
| 363 ZoneGrowableArray<BlockEntryInstr*>* loop_headers_; | 367 ZoneGrowableArray<BlockEntryInstr*>* loop_headers_; |
| 364 ZoneGrowableArray<BitVector*>* loop_invariant_loads_; | 368 ZoneGrowableArray<BitVector*>* loop_invariant_loads_; |
| 365 ZoneGrowableArray<const Field*>* guarded_fields_; | 369 ZoneGrowableArray<const Field*>* guarded_fields_; |
| 370 GrowableArray<const Field*> deoptimize_dependent_code_; |
| 366 ZoneGrowableArray<const LibraryPrefix*>* deferred_prefixes_; | 371 ZoneGrowableArray<const LibraryPrefix*>* deferred_prefixes_; |
| 367 DirectChainedHashMap<ConstantPoolTrait> constant_instr_pool_; | 372 DirectChainedHashMap<ConstantPoolTrait> constant_instr_pool_; |
| 368 BitVector* captured_parameters_; | 373 BitVector* captured_parameters_; |
| 369 | 374 |
| 370 intptr_t inlining_id_; | 375 intptr_t inlining_id_; |
| 371 }; | 376 }; |
| 372 | 377 |
| 373 | 378 |
| 374 class LivenessAnalysis : public ValueObject { | 379 class LivenessAnalysis : public ValueObject { |
| 375 public: | 380 public: |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 | 521 |
| 517 private: | 522 private: |
| 518 GrowableArray<Definition*> defs_; | 523 GrowableArray<Definition*> defs_; |
| 519 BitVector* contains_vector_; | 524 BitVector* contains_vector_; |
| 520 }; | 525 }; |
| 521 | 526 |
| 522 | 527 |
| 523 } // namespace dart | 528 } // namespace dart |
| 524 | 529 |
| 525 #endif // VM_FLOW_GRAPH_H_ | 530 #endif // VM_FLOW_GRAPH_H_ |
| OLD | NEW |