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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 INLINE(void RecordWriteOfCodeEntry(JSFunction* host, Object** slot, | 151 INLINE(void RecordWriteOfCodeEntry(JSFunction* host, Object** slot, |
152 Code* value)); | 152 Code* value)); |
153 | 153 |
154 V8_EXPORT_PRIVATE void RecordWriteSlow(HeapObject* obj, Object** slot, | 154 V8_EXPORT_PRIVATE void RecordWriteSlow(HeapObject* obj, Object** slot, |
155 Object* value); | 155 Object* value); |
156 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* value); | 156 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* value); |
157 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value); | 157 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value); |
158 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value); | 158 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value); |
159 void RecordCodeTargetPatch(Address pc, HeapObject* value); | 159 void RecordCodeTargetPatch(Address pc, HeapObject* value); |
160 | 160 |
161 void WhiteToGreyAndPush(HeapObject* obj); | 161 void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); |
162 | 162 |
163 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { | 163 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { |
164 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); | 164 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); |
165 } | 165 } |
166 | 166 |
167 inline void SetNewSpacePageFlags(Page* chunk) { | 167 inline void SetNewSpacePageFlags(Page* chunk) { |
168 SetNewSpacePageFlags(chunk, IsMarking()); | 168 SetNewSpacePageFlags(chunk, IsMarking()); |
169 } | 169 } |
170 | 170 |
171 bool IsCompacting() { return IsMarking() && is_compacting_; } | 171 bool IsCompacting() { return IsMarking() && is_compacting_; } |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 IncrementalMarkingJob incremental_marking_job_; | 305 IncrementalMarkingJob incremental_marking_job_; |
306 Observer new_generation_observer_; | 306 Observer new_generation_observer_; |
307 Observer old_generation_observer_; | 307 Observer old_generation_observer_; |
308 | 308 |
309 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 309 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
310 }; | 310 }; |
311 } // namespace internal | 311 } // namespace internal |
312 } // namespace v8 | 312 } // namespace v8 |
313 | 313 |
314 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 314 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
OLD | NEW |