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/incremental-marking-job.h" | 10 #include "src/heap/incremental-marking-job.h" |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 Code* value)); | 158 Code* value)); |
159 | 159 |
160 | 160 |
161 void RecordWriteSlow(HeapObject* obj, Object** slot, Object* value); | 161 void RecordWriteSlow(HeapObject* obj, Object** slot, Object* value); |
162 void RecordWriteIntoCodeSlow(HeapObject* obj, RelocInfo* rinfo, | 162 void RecordWriteIntoCodeSlow(HeapObject* obj, RelocInfo* rinfo, |
163 Object* value); | 163 Object* value); |
164 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value); | 164 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value); |
165 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value); | 165 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value); |
166 void RecordCodeTargetPatch(Address pc, HeapObject* value); | 166 void RecordCodeTargetPatch(Address pc, HeapObject* value); |
167 | 167 |
168 inline void RecordWrites(HeapObject* obj); | 168 void RecordWrites(HeapObject* obj); |
169 | 169 |
170 inline void BlackToGreyAndUnshift(HeapObject* obj, MarkBit mark_bit); | 170 void BlackToGreyAndUnshift(HeapObject* obj, MarkBit mark_bit); |
171 | 171 |
172 inline void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); | 172 void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); |
173 | 173 |
174 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { | 174 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { |
175 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); | 175 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); |
176 } | 176 } |
177 | 177 |
178 inline void SetNewSpacePageFlags(MemoryChunk* chunk) { | 178 inline void SetNewSpacePageFlags(MemoryChunk* chunk) { |
179 SetNewSpacePageFlags(chunk, IsMarking()); | 179 SetNewSpacePageFlags(chunk, IsMarking()); |
180 } | 180 } |
181 | 181 |
182 bool IsCompacting() { return IsMarking() && is_compacting_; } | 182 bool IsCompacting() { return IsMarking() && is_compacting_; } |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 GCRequestType request_type_; | 264 GCRequestType request_type_; |
265 | 265 |
266 IncrementalMarkingJob incremental_marking_job_; | 266 IncrementalMarkingJob incremental_marking_job_; |
267 | 267 |
268 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 268 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
269 }; | 269 }; |
270 } | 270 } |
271 } // namespace v8::internal | 271 } // namespace v8::internal |
272 | 272 |
273 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 273 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
OLD | NEW |