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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 INLINE(void RecordWriteOfCodeEntry(JSFunction* host, Object** slot, | 169 INLINE(void RecordWriteOfCodeEntry(JSFunction* host, Object** slot, |
170 Code* value)); | 170 Code* value)); |
171 | 171 |
172 | 172 |
173 void RecordWriteSlow(HeapObject* obj, Object** slot, Object* value); | 173 void RecordWriteSlow(HeapObject* obj, Object** slot, Object* value); |
174 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* value); | 174 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* value); |
175 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value); | 175 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value); |
176 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value); | 176 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value); |
177 void RecordCodeTargetPatch(Address pc, HeapObject* value); | 177 void RecordCodeTargetPatch(Address pc, HeapObject* value); |
178 | 178 |
179 void RecordWrites(HeapObject* obj); | |
180 | |
181 void BlackToGreyAndUnshift(HeapObject* obj, MarkBit mark_bit); | |
182 | |
183 void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); | 179 void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); |
184 | 180 |
185 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { | 181 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { |
186 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); | 182 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); |
187 } | 183 } |
188 | 184 |
189 inline void SetNewSpacePageFlags(MemoryChunk* chunk) { | 185 inline void SetNewSpacePageFlags(MemoryChunk* chunk) { |
190 SetNewSpacePageFlags(chunk, IsMarking()); | 186 SetNewSpacePageFlags(chunk, IsMarking()); |
191 } | 187 } |
192 | 188 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 GCRequestType request_type_; | 304 GCRequestType request_type_; |
309 | 305 |
310 IncrementalMarkingJob incremental_marking_job_; | 306 IncrementalMarkingJob incremental_marking_job_; |
311 | 307 |
312 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 308 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
313 }; | 309 }; |
314 } // namespace internal | 310 } // namespace internal |
315 } // namespace v8 | 311 } // namespace v8 |
316 | 312 |
317 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 313 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
OLD | NEW |