| 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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(MemoryChunk* chunk, | 391 void IncrementalMarking::SetNewSpacePageFlags(NewSpacePage* 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 Loading... |
| 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 |
| OLD | NEW |