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

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

Issue 1393773004: Reland "[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') | no next file » | 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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 if (is_marking) { 381 if (is_marking) {
382 chunk->SetFlag(MemoryChunk::POINTERS_TO_HERE_ARE_INTERESTING); 382 chunk->SetFlag(MemoryChunk::POINTERS_TO_HERE_ARE_INTERESTING);
383 chunk->SetFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING); 383 chunk->SetFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING);
384 } else { 384 } else {
385 chunk->ClearFlag(MemoryChunk::POINTERS_TO_HERE_ARE_INTERESTING); 385 chunk->ClearFlag(MemoryChunk::POINTERS_TO_HERE_ARE_INTERESTING);
386 chunk->SetFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING); 386 chunk->SetFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING);
387 } 387 }
388 } 388 }
389 389
390 390
391 void IncrementalMarking::SetNewSpacePageFlags(NewSpacePage* chunk, 391 void IncrementalMarking::SetNewSpacePageFlags(MemoryChunk* chunk,
392 bool is_marking) { 392 bool is_marking) {
393 chunk->SetFlag(MemoryChunk::POINTERS_TO_HERE_ARE_INTERESTING); 393 chunk->SetFlag(MemoryChunk::POINTERS_TO_HERE_ARE_INTERESTING);
394 if (is_marking) { 394 if (is_marking) {
395 chunk->SetFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING); 395 chunk->SetFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING);
396 } else { 396 } else {
397 chunk->ClearFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING); 397 chunk->ClearFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING);
398 } 398 }
399 chunk->SetFlag(MemoryChunk::SCAN_ON_SCAVENGE); 399 chunk->SetFlag(MemoryChunk::SCAN_ON_SCAVENGE);
400 } 400 }
401 401
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { 1127 void IncrementalMarking::IncrementIdleMarkingDelayCounter() {
1128 idle_marking_delay_counter_++; 1128 idle_marking_delay_counter_++;
1129 } 1129 }
1130 1130
1131 1131
1132 void IncrementalMarking::ClearIdleMarkingDelayCounter() { 1132 void IncrementalMarking::ClearIdleMarkingDelayCounter() {
1133 idle_marking_delay_counter_ = 0; 1133 idle_marking_delay_counter_ = 0;
1134 } 1134 }
1135 } // namespace internal 1135 } // namespace internal
1136 } // namespace v8 1136 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/incremental-marking.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698