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

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

Issue 1679373002: Disable reg-exp compilation in background via a flag (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: b Created 4 years, 10 months 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
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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 bool IsCompiledForOsr() const { return graph_entry()->IsCompiledForOsr(); } 278 bool IsCompiledForOsr() const { return graph_entry()->IsCompiledForOsr(); }
279 279
280 static void AddToGuardedFields(ZoneGrowableArray<const Field*>* array, 280 static void AddToGuardedFields(ZoneGrowableArray<const Field*>* array,
281 const Field* field); 281 const Field* field);
282 void AddToDeferredPrefixes(ZoneGrowableArray<const LibraryPrefix*>* from); 282 void AddToDeferredPrefixes(ZoneGrowableArray<const LibraryPrefix*>* from);
283 283
284 ZoneGrowableArray<const Field*>* guarded_fields() const { 284 ZoneGrowableArray<const Field*>* guarded_fields() const {
285 return guarded_fields_; 285 return guarded_fields_;
286 } 286 }
287 287
288 GrowableArray<const Field*>& deoptimize_dependent_code() {
289 return deoptimize_dependent_code_;
290 }
291
292 ZoneGrowableArray<const LibraryPrefix*>* deferred_prefixes() const { 288 ZoneGrowableArray<const LibraryPrefix*>* deferred_prefixes() const {
293 return deferred_prefixes_; 289 return deferred_prefixes_;
294 } 290 }
295 291
296 BitVector* captured_parameters() const { 292 BitVector* captured_parameters() const {
297 return captured_parameters_; 293 return captured_parameters_;
298 } 294 }
299 295
300 intptr_t inlining_id() const { return inlining_id_; } 296 intptr_t inlining_id() const { return inlining_id_; }
301 void set_inlining_id(intptr_t value) { inlining_id_ = value; } 297 void set_inlining_id(intptr_t value) { inlining_id_ = value; }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 ConstantInstr* constant_null_; 362 ConstantInstr* constant_null_;
367 ConstantInstr* constant_dead_; 363 ConstantInstr* constant_dead_;
368 ConstantInstr* constant_empty_context_; 364 ConstantInstr* constant_empty_context_;
369 365
370 BlockEffects* block_effects_; 366 BlockEffects* block_effects_;
371 bool licm_allowed_; 367 bool licm_allowed_;
372 368
373 ZoneGrowableArray<BlockEntryInstr*>* loop_headers_; 369 ZoneGrowableArray<BlockEntryInstr*>* loop_headers_;
374 ZoneGrowableArray<BitVector*>* loop_invariant_loads_; 370 ZoneGrowableArray<BitVector*>* loop_invariant_loads_;
375 ZoneGrowableArray<const Field*>* guarded_fields_; 371 ZoneGrowableArray<const Field*>* guarded_fields_;
376 GrowableArray<const Field*> deoptimize_dependent_code_;
377 ZoneGrowableArray<const LibraryPrefix*>* deferred_prefixes_; 372 ZoneGrowableArray<const LibraryPrefix*>* deferred_prefixes_;
378 DirectChainedHashMap<ConstantPoolTrait> constant_instr_pool_; 373 DirectChainedHashMap<ConstantPoolTrait> constant_instr_pool_;
379 BitVector* captured_parameters_; 374 BitVector* captured_parameters_;
380 375
381 intptr_t inlining_id_; 376 intptr_t inlining_id_;
382 }; 377 };
383 378
384 379
385 class LivenessAnalysis : public ValueObject { 380 class LivenessAnalysis : public ValueObject {
386 public: 381 public:
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 522
528 private: 523 private:
529 GrowableArray<Definition*> defs_; 524 GrowableArray<Definition*> defs_;
530 BitVector* contains_vector_; 525 BitVector* contains_vector_;
531 }; 526 };
532 527
533 528
534 } // namespace dart 529 } // namespace dart
535 530
536 #endif // VM_FLOW_GRAPH_H_ 531 #endif // VM_FLOW_GRAPH_H_
OLDNEW
« runtime/vm/compiler.cc ('K') | « 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