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

Side by Side Diff: src/heap/heap.cc

Issue 2888093003: [heap] Add GN flag for enabling concurrent marking. (Closed)
Patch Set: infer runtime flag from compile time flag Created 3 years, 7 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
« no previous file with comments | « src/heap/concurrent-marking.cc ('k') | src/heap/incremental-marking.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/heap/heap.h" 5 #include "src/heap/heap.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/assembler-inl.h" 9 #include "src/assembler-inl.h"
10 #include "src/ast/context-slot-cache.h" 10 #include "src/ast/context-slot-cache.h"
(...skipping 5633 matching lines...) Expand 10 before | Expand all | Expand 10 after
5644 for (int i = 0; i < static_cast<int>(v8::Isolate::kUseCounterFeatureCount); 5644 for (int i = 0; i < static_cast<int>(v8::Isolate::kUseCounterFeatureCount);
5645 i++) { 5645 i++) {
5646 deferred_counters_[i] = 0; 5646 deferred_counters_[i] = 0;
5647 } 5647 }
5648 5648
5649 tracer_ = new GCTracer(this); 5649 tracer_ = new GCTracer(this);
5650 scavenge_collector_ = new Scavenger(this); 5650 scavenge_collector_ = new Scavenger(this);
5651 mark_compact_collector_ = new MarkCompactCollector(this); 5651 mark_compact_collector_ = new MarkCompactCollector(this);
5652 incremental_marking_->set_marking_deque( 5652 incremental_marking_->set_marking_deque(
5653 mark_compact_collector_->marking_deque()); 5653 mark_compact_collector_->marking_deque());
5654 #if V8_CONCURRENT_MARKING 5654 #ifdef V8_CONCURRENT_MARKING
5655 concurrent_marking_ = 5655 concurrent_marking_ =
5656 new ConcurrentMarking(this, mark_compact_collector_->marking_deque()); 5656 new ConcurrentMarking(this, mark_compact_collector_->marking_deque());
5657 #else 5657 #else
5658 concurrent_marking_ = new ConcurrentMarking(this, nullptr); 5658 concurrent_marking_ = new ConcurrentMarking(this, nullptr);
5659 #endif 5659 #endif
5660 minor_mark_compact_collector_ = new MinorMarkCompactCollector(this); 5660 minor_mark_compact_collector_ = new MinorMarkCompactCollector(this);
5661 gc_idle_time_handler_ = new GCIdleTimeHandler(); 5661 gc_idle_time_handler_ = new GCIdleTimeHandler();
5662 memory_reducer_ = new MemoryReducer(this); 5662 memory_reducer_ = new MemoryReducer(this);
5663 if (V8_UNLIKELY(FLAG_gc_stats)) { 5663 if (V8_UNLIKELY(FLAG_gc_stats)) {
5664 live_object_stats_ = new ObjectStats(this); 5664 live_object_stats_ = new ObjectStats(this);
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
6528 case LO_SPACE: 6528 case LO_SPACE:
6529 return "LO_SPACE"; 6529 return "LO_SPACE";
6530 default: 6530 default:
6531 UNREACHABLE(); 6531 UNREACHABLE();
6532 } 6532 }
6533 return NULL; 6533 return NULL;
6534 } 6534 }
6535 6535
6536 } // namespace internal 6536 } // namespace internal
6537 } // namespace v8 6537 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/concurrent-marking.cc ('k') | src/heap/incremental-marking.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698