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 #ifndef V8_HEAP_INCREMENTAL_MARKING_H_ | 5 #ifndef V8_HEAP_INCREMENTAL_MARKING_H_ |
6 #define V8_HEAP_INCREMENTAL_MARKING_H_ | 6 #define V8_HEAP_INCREMENTAL_MARKING_H_ |
7 | 7 |
8 #include "src/cancelable-task.h" | 8 #include "src/cancelable-task.h" |
9 #include "src/execution.h" | 9 #include "src/execution.h" |
10 #include "src/heap/heap.h" | 10 #include "src/heap/heap.h" |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value); | 178 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value); |
179 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value); | 179 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value); |
180 void RecordCodeTargetPatch(Address pc, HeapObject* value); | 180 void RecordCodeTargetPatch(Address pc, HeapObject* value); |
181 | 181 |
182 void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); | 182 void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); |
183 | 183 |
184 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { | 184 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { |
185 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); | 185 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); |
186 } | 186 } |
187 | 187 |
188 inline void SetNewSpacePageFlags(MemoryChunk* chunk) { | 188 inline void SetNewSpacePageFlags(Page* chunk) { |
189 SetNewSpacePageFlags(chunk, IsMarking()); | 189 SetNewSpacePageFlags(chunk, IsMarking()); |
190 } | 190 } |
191 | 191 |
192 bool IsCompacting() { return IsMarking() && is_compacting_; } | 192 bool IsCompacting() { return IsMarking() && is_compacting_; } |
193 | 193 |
194 void ActivateGeneratedStub(Code* stub); | 194 void ActivateGeneratedStub(Code* stub); |
195 | 195 |
196 void NotifyOfHighPromotionRate(); | 196 void NotifyOfHighPromotionRate(); |
197 | 197 |
198 void NotifyIncompleteScanOfObject(int unscanned_bytes) { | 198 void NotifyIncompleteScanOfObject(int unscanned_bytes) { |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 GCRequestType request_type_; | 301 GCRequestType request_type_; |
302 | 302 |
303 IncrementalMarkingJob incremental_marking_job_; | 303 IncrementalMarkingJob incremental_marking_job_; |
304 | 304 |
305 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 305 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
306 }; | 306 }; |
307 } // namespace internal | 307 } // namespace internal |
308 } // namespace v8 | 308 } // namespace v8 |
309 | 309 |
310 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 310 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
OLD | NEW |