OLD | NEW |
---|---|
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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
359 | 359 |
360 | 360 |
361 void IncrementalMarking::SetNewSpacePageFlags(MemoryChunk* chunk, | 361 void IncrementalMarking::SetNewSpacePageFlags(MemoryChunk* chunk, |
362 bool is_marking) { | 362 bool is_marking) { |
363 chunk->SetFlag(MemoryChunk::POINTERS_TO_HERE_ARE_INTERESTING); | 363 chunk->SetFlag(MemoryChunk::POINTERS_TO_HERE_ARE_INTERESTING); |
364 if (is_marking) { | 364 if (is_marking) { |
365 chunk->SetFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING); | 365 chunk->SetFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING); |
366 } else { | 366 } else { |
367 chunk->ClearFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING); | 367 chunk->ClearFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING); |
368 } | 368 } |
369 chunk->SetFlag(MemoryChunk::SCAN_ON_SCAVENGE); | |
Hannes Payer (out of office)
2016/01/20 19:43:00
Nice!
| |
370 } | 369 } |
371 | 370 |
372 | 371 |
373 void IncrementalMarking::DeactivateIncrementalWriteBarrierForSpace( | 372 void IncrementalMarking::DeactivateIncrementalWriteBarrierForSpace( |
374 PagedSpace* space) { | 373 PagedSpace* space) { |
375 PageIterator it(space); | 374 PageIterator it(space); |
376 while (it.has_next()) { | 375 while (it.has_next()) { |
377 Page* p = it.next(); | 376 Page* p = it.next(); |
378 SetOldSpacePageFlags(p, false, false); | 377 SetOldSpacePageFlags(p, false, false); |
379 } | 378 } |
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1246 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { | 1245 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { |
1247 idle_marking_delay_counter_++; | 1246 idle_marking_delay_counter_++; |
1248 } | 1247 } |
1249 | 1248 |
1250 | 1249 |
1251 void IncrementalMarking::ClearIdleMarkingDelayCounter() { | 1250 void IncrementalMarking::ClearIdleMarkingDelayCounter() { |
1252 idle_marking_delay_counter_ = 0; | 1251 idle_marking_delay_counter_ = 0; |
1253 } | 1252 } |
1254 } // namespace internal | 1253 } // namespace internal |
1255 } // namespace v8 | 1254 } // namespace v8 |
OLD | NEW |