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

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

Issue 1366183003: [heap] No leakage of mark-compact.h outside of heap. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 | « src/heap/incremental-marking.h ('k') | src/heap/incremental-marking-inl.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-tracer.h" 10 #include "src/heap/gc-tracer.h"
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 if (is_marking) { 298 if (is_marking) {
299 chunk->SetFlag(MemoryChunk::POINTERS_TO_HERE_ARE_INTERESTING); 299 chunk->SetFlag(MemoryChunk::POINTERS_TO_HERE_ARE_INTERESTING);
300 chunk->SetFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING); 300 chunk->SetFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING);
301 } else { 301 } else {
302 chunk->ClearFlag(MemoryChunk::POINTERS_TO_HERE_ARE_INTERESTING); 302 chunk->ClearFlag(MemoryChunk::POINTERS_TO_HERE_ARE_INTERESTING);
303 chunk->SetFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING); 303 chunk->SetFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING);
304 } 304 }
305 } 305 }
306 306
307 307
308 void IncrementalMarking::SetNewSpacePageFlags(NewSpacePage* chunk, 308 void IncrementalMarking::SetNewSpacePageFlags(MemoryChunk* chunk,
309 bool is_marking) { 309 bool is_marking) {
310 chunk->SetFlag(MemoryChunk::POINTERS_TO_HERE_ARE_INTERESTING); 310 chunk->SetFlag(MemoryChunk::POINTERS_TO_HERE_ARE_INTERESTING);
311 if (is_marking) { 311 if (is_marking) {
312 chunk->SetFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING); 312 chunk->SetFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING);
313 } else { 313 } else {
314 chunk->ClearFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING); 314 chunk->ClearFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING);
315 } 315 }
316 chunk->SetFlag(MemoryChunk::SCAN_ON_SCAVENGE); 316 chunk->SetFlag(MemoryChunk::SCAN_ON_SCAVENGE);
317 } 317 }
318 318
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { 1016 void IncrementalMarking::IncrementIdleMarkingDelayCounter() {
1017 idle_marking_delay_counter_++; 1017 idle_marking_delay_counter_++;
1018 } 1018 }
1019 1019
1020 1020
1021 void IncrementalMarking::ClearIdleMarkingDelayCounter() { 1021 void IncrementalMarking::ClearIdleMarkingDelayCounter() {
1022 idle_marking_delay_counter_ = 0; 1022 idle_marking_delay_counter_ = 0;
1023 } 1023 }
1024 } // namespace internal 1024 } // namespace internal
1025 } // namespace v8 1025 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/incremental-marking.h ('k') | src/heap/incremental-marking-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698