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

Side by Side Diff: src/heap/incremental-marking.cc

Issue 2440683002: [heap] Move typed slot filtering logic into sweeper. (Closed)
Patch Set: fix test Created 4 years, 2 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 | « BUILD.gn ('k') | src/heap/mark-compact.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/incremental-marking.h" 5 #include "src/heap/incremental-marking.h"
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/compilation-cache.h" 8 #include "src/compilation-cache.h"
9 #include "src/conversions.h" 9 #include "src/conversions.h"
10 #include "src/heap/gc-idle-time-handler.h" 10 #include "src/heap/gc-idle-time-handler.h"
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 if (black_allocation_) { 580 if (black_allocation_) {
581 black_allocation_ = false; 581 black_allocation_ = false;
582 if (FLAG_trace_incremental_marking) { 582 if (FLAG_trace_incremental_marking) {
583 heap()->isolate()->PrintWithTimestamp( 583 heap()->isolate()->PrintWithTimestamp(
584 "[IncrementalMarking] Black allocation finished\n"); 584 "[IncrementalMarking] Black allocation finished\n");
585 } 585 }
586 } 586 }
587 } 587 }
588 588
589 void IncrementalMarking::AbortBlackAllocation() { 589 void IncrementalMarking::AbortBlackAllocation() {
590 for (Page* page : *heap()->old_space()) {
591 page->ReleaseBlackAreaEndMarkerMap();
592 }
593 if (FLAG_trace_incremental_marking) { 590 if (FLAG_trace_incremental_marking) {
594 heap()->isolate()->PrintWithTimestamp( 591 heap()->isolate()->PrintWithTimestamp(
595 "[IncrementalMarking] Black allocation aborted\n"); 592 "[IncrementalMarking] Black allocation aborted\n");
596 } 593 }
597 } 594 }
598 595
599 void IncrementalMarking::MarkRoots() { 596 void IncrementalMarking::MarkRoots() {
600 DCHECK(!finalize_marking_completed_); 597 DCHECK(!finalize_marking_completed_);
601 DCHECK(IsMarking()); 598 DCHECK(IsMarking());
602 599
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 idle_marking_delay_counter_++; 1193 idle_marking_delay_counter_++;
1197 } 1194 }
1198 1195
1199 1196
1200 void IncrementalMarking::ClearIdleMarkingDelayCounter() { 1197 void IncrementalMarking::ClearIdleMarkingDelayCounter() {
1201 idle_marking_delay_counter_ = 0; 1198 idle_marking_delay_counter_ = 0;
1202 } 1199 }
1203 1200
1204 } // namespace internal 1201 } // namespace internal
1205 } // namespace v8 1202 } // namespace v8
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/heap/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698