| 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 5455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5466 for (int i = 0; i < static_cast<int>(v8::Isolate::kUseCounterFeatureCount); | 5466 for (int i = 0; i < static_cast<int>(v8::Isolate::kUseCounterFeatureCount); |
| 5467 i++) { | 5467 i++) { |
| 5468 deferred_counters_[i] = 0; | 5468 deferred_counters_[i] = 0; |
| 5469 } | 5469 } |
| 5470 | 5470 |
| 5471 tracer_ = new GCTracer(this); | 5471 tracer_ = new GCTracer(this); |
| 5472 scavenge_collector_ = new Scavenger(this); | 5472 scavenge_collector_ = new Scavenger(this); |
| 5473 mark_compact_collector_ = new MarkCompactCollector(this); | 5473 mark_compact_collector_ = new MarkCompactCollector(this); |
| 5474 gc_idle_time_handler_ = new GCIdleTimeHandler(); | 5474 gc_idle_time_handler_ = new GCIdleTimeHandler(); |
| 5475 memory_reducer_ = new MemoryReducer(this); | 5475 memory_reducer_ = new MemoryReducer(this); |
| 5476 if (FLAG_track_gc_object_stats) { | 5476 if (V8_UNLIKELY(FLAG_gc_stats)) { |
| 5477 live_object_stats_ = new ObjectStats(this); | 5477 live_object_stats_ = new ObjectStats(this); |
| 5478 dead_object_stats_ = new ObjectStats(this); | 5478 dead_object_stats_ = new ObjectStats(this); |
| 5479 } | 5479 } |
| 5480 scavenge_job_ = new ScavengeJob(); | 5480 scavenge_job_ = new ScavengeJob(); |
| 5481 | 5481 |
| 5482 LOG(isolate_, IntPtrTEvent("heap-capacity", Capacity())); | 5482 LOG(isolate_, IntPtrTEvent("heap-capacity", Capacity())); |
| 5483 LOG(isolate_, IntPtrTEvent("heap-available", Available())); | 5483 LOG(isolate_, IntPtrTEvent("heap-available", Available())); |
| 5484 | 5484 |
| 5485 store_buffer()->SetUp(); | 5485 store_buffer()->SetUp(); |
| 5486 | 5486 |
| (...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6487 } | 6487 } |
| 6488 | 6488 |
| 6489 | 6489 |
| 6490 // static | 6490 // static |
| 6491 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6491 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6492 return StaticVisitorBase::GetVisitorId(map); | 6492 return StaticVisitorBase::GetVisitorId(map); |
| 6493 } | 6493 } |
| 6494 | 6494 |
| 6495 } // namespace internal | 6495 } // namespace internal |
| 6496 } // namespace v8 | 6496 } // namespace v8 |
| OLD | NEW |