| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // | 147 // |
| 148 // No slots in white objects should be recorded, as some slots are typed and | 148 // No slots in white objects should be recorded, as some slots are typed and |
| 149 // cannot be interpreted correctly if the underlying object does not survive | 149 // cannot be interpreted correctly if the underlying object does not survive |
| 150 // the incremental cycle (stays white). | 150 // the incremental cycle (stays white). |
| 151 INLINE(bool BaseRecordWrite(HeapObject* obj, Object* value)); | 151 INLINE(bool BaseRecordWrite(HeapObject* obj, Object* value)); |
| 152 INLINE(void RecordWrite(HeapObject* obj, Object** slot, Object* value)); | 152 INLINE(void RecordWrite(HeapObject* obj, Object** slot, Object* value)); |
| 153 INLINE(void RecordWriteIntoCode(Code* host, RelocInfo* rinfo, Object* value)); | 153 INLINE(void RecordWriteIntoCode(Code* host, RelocInfo* rinfo, Object* value)); |
| 154 INLINE(void RecordWriteOfCodeEntry(JSFunction* host, Object** slot, | 154 INLINE(void RecordWriteOfCodeEntry(JSFunction* host, Object** slot, |
| 155 Code* value)); | 155 Code* value)); |
| 156 | 156 |
| 157 V8_EXPORT_PRIVATE void RecordWriteSlow(HeapObject* obj, Object** slot, | 157 |
| 158 Object* value); | 158 void RecordWriteSlow(HeapObject* obj, Object** slot, Object* value); |
| 159 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* value); | 159 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* value); |
| 160 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value); | 160 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value); |
| 161 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value); | 161 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value); |
| 162 void RecordCodeTargetPatch(Address pc, HeapObject* value); | 162 void RecordCodeTargetPatch(Address pc, HeapObject* value); |
| 163 | 163 |
| 164 void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); | 164 void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); |
| 165 | 165 |
| 166 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { | 166 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { |
| 167 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); | 167 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); |
| 168 } | 168 } |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 GCRequestType request_type_; | 315 GCRequestType request_type_; |
| 316 | 316 |
| 317 IncrementalMarkingJob incremental_marking_job_; | 317 IncrementalMarkingJob incremental_marking_job_; |
| 318 | 318 |
| 319 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 319 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
| 320 }; | 320 }; |
| 321 } // namespace internal | 321 } // namespace internal |
| 322 } // namespace v8 | 322 } // namespace v8 |
| 323 | 323 |
| 324 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 324 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
| OLD | NEW |