| 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 5501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5512 scavenge_collector_ = new Scavenger(this); | 5512 scavenge_collector_ = new Scavenger(this); |
| 5513 mark_compact_collector_ = new MarkCompactCollector(this); | 5513 mark_compact_collector_ = new MarkCompactCollector(this); |
| 5514 incremental_marking_->set_marking_deque( | 5514 incremental_marking_->set_marking_deque( |
| 5515 mark_compact_collector_->marking_deque()); | 5515 mark_compact_collector_->marking_deque()); |
| 5516 #if V8_CONCURRENT_MARKING | 5516 #if V8_CONCURRENT_MARKING |
| 5517 concurrent_marking_ = | 5517 concurrent_marking_ = |
| 5518 new ConcurrentMarking(this, mark_compact_collector_->marking_deque()); | 5518 new ConcurrentMarking(this, mark_compact_collector_->marking_deque()); |
| 5519 #else | 5519 #else |
| 5520 concurrent_marking_ = new ConcurrentMarking(this, nullptr); | 5520 concurrent_marking_ = new ConcurrentMarking(this, nullptr); |
| 5521 #endif | 5521 #endif |
| 5522 if (FLAG_minor_mc) | 5522 minor_mark_compact_collector_ = new MinorMarkCompactCollector(this); |
| 5523 minor_mark_compact_collector_ = new MinorMarkCompactCollector(this); | |
| 5524 gc_idle_time_handler_ = new GCIdleTimeHandler(); | 5523 gc_idle_time_handler_ = new GCIdleTimeHandler(); |
| 5525 memory_reducer_ = new MemoryReducer(this); | 5524 memory_reducer_ = new MemoryReducer(this); |
| 5526 if (V8_UNLIKELY(FLAG_gc_stats)) { | 5525 if (V8_UNLIKELY(FLAG_gc_stats)) { |
| 5527 live_object_stats_ = new ObjectStats(this); | 5526 live_object_stats_ = new ObjectStats(this); |
| 5528 dead_object_stats_ = new ObjectStats(this); | 5527 dead_object_stats_ = new ObjectStats(this); |
| 5529 } | 5528 } |
| 5530 scavenge_job_ = new ScavengeJob(); | 5529 scavenge_job_ = new ScavengeJob(); |
| 5531 local_embedder_heap_tracer_ = new LocalEmbedderHeapTracer(); | 5530 local_embedder_heap_tracer_ = new LocalEmbedderHeapTracer(); |
| 5532 | 5531 |
| 5533 LOG(isolate_, IntPtrTEvent("heap-capacity", Capacity())); | 5532 LOG(isolate_, IntPtrTEvent("heap-capacity", Capacity())); |
| (...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6391 case LO_SPACE: | 6390 case LO_SPACE: |
| 6392 return "LO_SPACE"; | 6391 return "LO_SPACE"; |
| 6393 default: | 6392 default: |
| 6394 UNREACHABLE(); | 6393 UNREACHABLE(); |
| 6395 } | 6394 } |
| 6396 return NULL; | 6395 return NULL; |
| 6397 } | 6396 } |
| 6398 | 6397 |
| 6399 } // namespace internal | 6398 } // namespace internal |
| 6400 } // namespace v8 | 6399 } // namespace v8 |
| OLD | NEW |