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

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

Issue 2329983002: Reland "[heap] Fix a formatting bug in --trace-incremental-marking. (patchset #2 id:20001 of https:… (Closed)
Patch Set: 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 5702 matching lines...) Expand 10 before | Expand all | Expand 10 after
6526 } 6528 }
6527 6529
6528 6530
6529 // static 6531 // static
6530 int Heap::GetStaticVisitorIdForMap(Map* map) { 6532 int Heap::GetStaticVisitorIdForMap(Map* map) {
6531 return StaticVisitorBase::GetVisitorId(map); 6533 return StaticVisitorBase::GetVisitorId(map);
6532 } 6534 }
6533 6535
6534 } // namespace internal 6536 } // namespace internal
6535 } // namespace v8 6537 } // 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