Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: src/heap/heap.cc

Issue 2324623004: [heap] Fix a formatting bug in --trace-incremental-marking. (Closed)
Patch Set: add PRINTF_FORMAT Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/isolate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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("[IncrementalMarking] (%s).\n", gc_reason); 813 isolate()->PrintWithTimestamp(
814 "[IncrementalMarking] (%s).\n",
815 Heap::GarbageCollectionReasonToString(gc_reason));
814 } 816 }
815 817
816 HistogramTimerScope incremental_marking_scope( 818 HistogramTimerScope incremental_marking_scope(
817 isolate()->counters()->gc_incremental_marking_finalize()); 819 isolate()->counters()->gc_incremental_marking_finalize());
818 TRACE_EVENT0("v8", "V8.GCIncrementalMarkingFinalize"); 820 TRACE_EVENT0("v8", "V8.GCIncrementalMarkingFinalize");
819 TRACE_GC(tracer(), GCTracer::Scope::MC_INCREMENTAL_FINALIZE); 821 TRACE_GC(tracer(), GCTracer::Scope::MC_INCREMENTAL_FINALIZE);
820 822
821 { 823 {
822 GCCallbacksScope scope(this); 824 GCCallbacksScope scope(this);
823 if (scope.CheckReenter()) { 825 if (scope.CheckReenter()) {
(...skipping 5705 matching lines...) Expand 10 before | Expand all | Expand 10 after
6529 } 6531 }
6530 6532
6531 6533
6532 // static 6534 // static
6533 int Heap::GetStaticVisitorIdForMap(Map* map) { 6535 int Heap::GetStaticVisitorIdForMap(Map* map) {
6534 return StaticVisitorBase::GetVisitorId(map); 6536 return StaticVisitorBase::GetVisitorId(map);
6535 } 6537 }
6536 6538
6537 } // namespace internal 6539 } // namespace internal
6538 } // namespace v8 6540 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698