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

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

Issue 2862533003: [heap] Fix condition for usage of concurrent marking deque. (Closed)
Patch Set: 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 | « no previous file | src/heap/mark-compact.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 5487 matching lines...) Expand 10 before | Expand all | Expand 10 after
5498 for (int i = 0; i < static_cast<int>(v8::Isolate::kUseCounterFeatureCount); 5498 for (int i = 0; i < static_cast<int>(v8::Isolate::kUseCounterFeatureCount);
5499 i++) { 5499 i++) {
5500 deferred_counters_[i] = 0; 5500 deferred_counters_[i] = 0;
5501 } 5501 }
5502 5502
5503 tracer_ = new GCTracer(this); 5503 tracer_ = new GCTracer(this);
5504 scavenge_collector_ = new Scavenger(this); 5504 scavenge_collector_ = new Scavenger(this);
5505 mark_compact_collector_ = new MarkCompactCollector(this); 5505 mark_compact_collector_ = new MarkCompactCollector(this);
5506 incremental_marking_->set_marking_deque( 5506 incremental_marking_->set_marking_deque(
5507 mark_compact_collector_->marking_deque()); 5507 mark_compact_collector_->marking_deque());
5508 #if V8_CONCURRENT_MARKING
5508 concurrent_marking_ = 5509 concurrent_marking_ =
5509 new ConcurrentMarking(this, mark_compact_collector_->marking_deque()); 5510 new ConcurrentMarking(this, mark_compact_collector_->marking_deque());
5511 #else
5512 concurrent_marking_ = new ConcurrentMarking(this, nullptr);
5513 #endif
5510 if (FLAG_minor_mc) 5514 if (FLAG_minor_mc)
5511 minor_mark_compact_collector_ = new MinorMarkCompactCollector(this); 5515 minor_mark_compact_collector_ = new MinorMarkCompactCollector(this);
5512 gc_idle_time_handler_ = new GCIdleTimeHandler(); 5516 gc_idle_time_handler_ = new GCIdleTimeHandler();
5513 memory_reducer_ = new MemoryReducer(this); 5517 memory_reducer_ = new MemoryReducer(this);
5514 if (V8_UNLIKELY(FLAG_gc_stats)) { 5518 if (V8_UNLIKELY(FLAG_gc_stats)) {
5515 live_object_stats_ = new ObjectStats(this); 5519 live_object_stats_ = new ObjectStats(this);
5516 dead_object_stats_ = new ObjectStats(this); 5520 dead_object_stats_ = new ObjectStats(this);
5517 } 5521 }
5518 scavenge_job_ = new ScavengeJob(); 5522 scavenge_job_ = new ScavengeJob();
5519 local_embedder_heap_tracer_ = new LocalEmbedderHeapTracer(); 5523 local_embedder_heap_tracer_ = new LocalEmbedderHeapTracer();
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
6379 case LO_SPACE: 6383 case LO_SPACE:
6380 return "LO_SPACE"; 6384 return "LO_SPACE";
6381 default: 6385 default:
6382 UNREACHABLE(); 6386 UNREACHABLE();
6383 } 6387 }
6384 return NULL; 6388 return NULL;
6385 } 6389 }
6386 6390
6387 } // namespace internal 6391 } // namespace internal
6388 } // namespace v8 6392 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/heap/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698