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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // cannot be interpreted correctly if the underlying object does not survive | 167 // cannot be interpreted correctly if the underlying object does not survive |
168 // the incremental cycle (stays white). | 168 // the incremental cycle (stays white). |
169 INLINE(bool BaseRecordWrite(HeapObject* obj, Object* value)); | 169 INLINE(bool BaseRecordWrite(HeapObject* obj, Object* value)); |
170 INLINE(void RecordWrite(HeapObject* obj, Object** slot, Object* value)); | 170 INLINE(void RecordWrite(HeapObject* obj, Object** slot, Object* value)); |
171 INLINE(void RecordWriteIntoCode(Code* host, RelocInfo* rinfo, Object* value)); | 171 INLINE(void RecordWriteIntoCode(Code* host, RelocInfo* rinfo, Object* value)); |
172 INLINE(void RecordWriteOfCodeEntry(JSFunction* host, Object** slot, | 172 INLINE(void RecordWriteOfCodeEntry(JSFunction* host, Object** slot, |
173 Code* value)); | 173 Code* value)); |
174 | 174 |
175 | 175 |
176 void RecordWriteSlow(HeapObject* obj, Object** slot, Object* value); | 176 void RecordWriteSlow(HeapObject* obj, Object** slot, Object* value); |
| 177 void RecordWriteIntoCodeToNewSpaceSlow(Code* host, RelocInfo* rinfo, |
| 178 Object* value); |
177 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* value); | 179 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* value); |
178 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value); | 180 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value); |
179 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value); | 181 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value); |
180 void RecordCodeTargetPatch(Address pc, HeapObject* value); | 182 void RecordCodeTargetPatch(Address pc, HeapObject* value); |
181 | 183 |
182 void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); | 184 void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); |
183 | 185 |
184 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { | 186 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { |
185 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); | 187 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); |
186 } | 188 } |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 GCRequestType request_type_; | 305 GCRequestType request_type_; |
304 | 306 |
305 IncrementalMarkingJob incremental_marking_job_; | 307 IncrementalMarkingJob incremental_marking_job_; |
306 | 308 |
307 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 309 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
308 }; | 310 }; |
309 } // namespace internal | 311 } // namespace internal |
310 } // namespace v8 | 312 } // namespace v8 |
311 | 313 |
312 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 314 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
OLD | NEW |