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/ast/context-slot-cache.h" | 9 #include "src/ast/context-slot-cache.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 5452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5463 for (int i = 0; i < static_cast<int>(v8::Isolate::kUseCounterFeatureCount); | 5463 for (int i = 0; i < static_cast<int>(v8::Isolate::kUseCounterFeatureCount); |
5464 i++) { | 5464 i++) { |
5465 deferred_counters_[i] = 0; | 5465 deferred_counters_[i] = 0; |
5466 } | 5466 } |
5467 | 5467 |
5468 tracer_ = new GCTracer(this); | 5468 tracer_ = new GCTracer(this); |
5469 scavenge_collector_ = new Scavenger(this); | 5469 scavenge_collector_ = new Scavenger(this); |
5470 mark_compact_collector_ = new MarkCompactCollector(this); | 5470 mark_compact_collector_ = new MarkCompactCollector(this); |
5471 gc_idle_time_handler_ = new GCIdleTimeHandler(); | 5471 gc_idle_time_handler_ = new GCIdleTimeHandler(); |
5472 memory_reducer_ = new MemoryReducer(this); | 5472 memory_reducer_ = new MemoryReducer(this); |
5473 if (FLAG_track_gc_object_stats) { | 5473 if (V8_UNLIKELY(FLAG_gc_stats)) { |
5474 live_object_stats_ = new ObjectStats(this); | 5474 live_object_stats_ = new ObjectStats(this); |
5475 dead_object_stats_ = new ObjectStats(this); | 5475 dead_object_stats_ = new ObjectStats(this); |
5476 } | 5476 } |
5477 scavenge_job_ = new ScavengeJob(); | 5477 scavenge_job_ = new ScavengeJob(); |
5478 | 5478 |
5479 LOG(isolate_, IntPtrTEvent("heap-capacity", Capacity())); | 5479 LOG(isolate_, IntPtrTEvent("heap-capacity", Capacity())); |
5480 LOG(isolate_, IntPtrTEvent("heap-available", Available())); | 5480 LOG(isolate_, IntPtrTEvent("heap-available", Available())); |
5481 | 5481 |
5482 store_buffer()->SetUp(); | 5482 store_buffer()->SetUp(); |
5483 | 5483 |
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6480 } | 6480 } |
6481 | 6481 |
6482 | 6482 |
6483 // static | 6483 // static |
6484 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6484 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6485 return StaticVisitorBase::GetVisitorId(map); | 6485 return StaticVisitorBase::GetVisitorId(map); |
6486 } | 6486 } |
6487 | 6487 |
6488 } // namespace internal | 6488 } // namespace internal |
6489 } // namespace v8 | 6489 } // namespace v8 |
OLD | NEW |