OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |