Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: runtime/vm/flow_graph.h

Issue 1433243003: Background compilation work: (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: d Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698