| 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 | 358 |
| 359 | 359 |
| 360 void IncrementalMarking::SetNewSpacePageFlags(MemoryChunk* chunk, | 360 void IncrementalMarking::SetNewSpacePageFlags(MemoryChunk* chunk, |
| 361 bool is_marking) { | 361 bool is_marking) { |
| 362 chunk->SetFlag(MemoryChunk::POINTERS_TO_HERE_ARE_INTERESTING); | 362 chunk->SetFlag(MemoryChunk::POINTERS_TO_HERE_ARE_INTERESTING); |
| 363 if (is_marking) { | 363 if (is_marking) { |
| 364 chunk->SetFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING); | 364 chunk->SetFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING); |
| 365 } else { | 365 } else { |
| 366 chunk->ClearFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING); | 366 chunk->ClearFlag(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING); |
| 367 } | 367 } |
| 368 chunk->SetFlag(MemoryChunk::SCAN_ON_SCAVENGE); | |
| 369 } | 368 } |
| 370 | 369 |
| 371 | 370 |
| 372 void IncrementalMarking::DeactivateIncrementalWriteBarrierForSpace( | 371 void IncrementalMarking::DeactivateIncrementalWriteBarrierForSpace( |
| 373 PagedSpace* space) { | 372 PagedSpace* space) { |
| 374 PageIterator it(space); | 373 PageIterator it(space); |
| 375 while (it.has_next()) { | 374 while (it.has_next()) { |
| 376 Page* p = it.next(); | 375 Page* p = it.next(); |
| 377 SetOldSpacePageFlags(p, false, false); | 376 SetOldSpacePageFlags(p, false, false); |
| 378 } | 377 } |
| (...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1225 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { | 1224 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { |
| 1226 idle_marking_delay_counter_++; | 1225 idle_marking_delay_counter_++; |
| 1227 } | 1226 } |
| 1228 | 1227 |
| 1229 | 1228 |
| 1230 void IncrementalMarking::ClearIdleMarkingDelayCounter() { | 1229 void IncrementalMarking::ClearIdleMarkingDelayCounter() { |
| 1231 idle_marking_delay_counter_ = 0; | 1230 idle_marking_delay_counter_ = 0; |
| 1232 } | 1231 } |
| 1233 } // namespace internal | 1232 } // namespace internal |
| 1234 } // namespace v8 | 1233 } // namespace v8 |
| OLD | NEW |