| 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 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 } | 803 } |
| 804 } | 804 } |
| 805 | 805 |
| 806 | 806 |
| 807 void Heap::ScheduleIdleScavengeIfNeeded(int bytes_allocated) { | 807 void Heap::ScheduleIdleScavengeIfNeeded(int bytes_allocated) { |
| 808 scavenge_job_->ScheduleIdleTaskIfNeeded(this, bytes_allocated); | 808 scavenge_job_->ScheduleIdleTaskIfNeeded(this, bytes_allocated); |
| 809 } | 809 } |
| 810 | 810 |
| 811 void Heap::FinalizeIncrementalMarking(GarbageCollectionReason gc_reason) { | 811 void Heap::FinalizeIncrementalMarking(GarbageCollectionReason gc_reason) { |
| 812 if (FLAG_trace_incremental_marking) { | 812 if (FLAG_trace_incremental_marking) { |
| 813 isolate()->PrintWithTimestamp( | 813 isolate()->PrintWithTimestamp("[IncrementalMarking] (%s).\n", gc_reason); |
| 814 "[IncrementalMarking] (%s).\n", | |
| 815 Heap::GarbageCollectionReasonToString(gc_reason)); | |
| 816 } | 814 } |
| 817 | 815 |
| 818 HistogramTimerScope incremental_marking_scope( | 816 HistogramTimerScope incremental_marking_scope( |
| 819 isolate()->counters()->gc_incremental_marking_finalize()); | 817 isolate()->counters()->gc_incremental_marking_finalize()); |
| 820 TRACE_EVENT0("v8", "V8.GCIncrementalMarkingFinalize"); | 818 TRACE_EVENT0("v8", "V8.GCIncrementalMarkingFinalize"); |
| 821 TRACE_GC(tracer(), GCTracer::Scope::MC_INCREMENTAL_FINALIZE); | 819 TRACE_GC(tracer(), GCTracer::Scope::MC_INCREMENTAL_FINALIZE); |
| 822 | 820 |
| 823 { | 821 { |
| 824 GCCallbacksScope scope(this); | 822 GCCallbacksScope scope(this); |
| 825 if (scope.CheckReenter()) { | 823 if (scope.CheckReenter()) { |
| (...skipping 5705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6531 } | 6529 } |
| 6532 | 6530 |
| 6533 | 6531 |
| 6534 // static | 6532 // static |
| 6535 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6533 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6536 return StaticVisitorBase::GetVisitorId(map); | 6534 return StaticVisitorBase::GetVisitorId(map); |
| 6537 } | 6535 } |
| 6538 | 6536 |
| 6539 } // namespace internal | 6537 } // namespace internal |
| 6540 } // namespace v8 | 6538 } // namespace v8 |
| OLD | NEW |