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_INCREMENTAL_MARKING_H_ | 5 #ifndef V8_INCREMENTAL_MARKING_H_ |
6 #define V8_INCREMENTAL_MARKING_H_ | 6 #define V8_INCREMENTAL_MARKING_H_ |
7 | 7 |
8 | 8 |
9 #include "src/execution.h" | 9 #include "src/execution.h" |
10 #include "src/mark-compact.h" | 10 #include "src/mark-compact.h" |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value); | 129 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value); |
130 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value); | 130 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value); |
131 void RecordCodeTargetPatch(Address pc, HeapObject* value); | 131 void RecordCodeTargetPatch(Address pc, HeapObject* value); |
132 | 132 |
133 inline void RecordWrites(HeapObject* obj); | 133 inline void RecordWrites(HeapObject* obj); |
134 | 134 |
135 inline void BlackToGreyAndUnshift(HeapObject* obj, MarkBit mark_bit); | 135 inline void BlackToGreyAndUnshift(HeapObject* obj, MarkBit mark_bit); |
136 | 136 |
137 inline void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); | 137 inline void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); |
138 | 138 |
139 inline int steps_count() { return steps_count_; } | |
140 | |
141 inline double steps_took() { return steps_took_; } | |
142 | |
143 inline double longest_step() { return longest_step_; } | |
144 | |
145 inline int steps_count_since_last_gc() { return steps_count_since_last_gc_; } | |
146 | |
147 inline double steps_took_since_last_gc() { return steps_took_since_last_gc_; } | |
148 | |
149 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { | 139 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { |
150 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); | 140 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); |
151 } | 141 } |
152 | 142 |
153 inline void SetNewSpacePageFlags(NewSpacePage* chunk) { | 143 inline void SetNewSpacePageFlags(NewSpacePage* chunk) { |
154 SetNewSpacePageFlags(chunk, IsMarking()); | 144 SetNewSpacePageFlags(chunk, IsMarking()); |
155 } | 145 } |
156 | 146 |
157 MarkingDeque* marking_deque() { return &marking_deque_; } | 147 MarkingDeque* marking_deque() { return &marking_deque_; } |
158 | 148 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 Heap* heap_; | 209 Heap* heap_; |
220 | 210 |
221 State state_; | 211 State state_; |
222 bool is_compacting_; | 212 bool is_compacting_; |
223 | 213 |
224 base::VirtualMemory* marking_deque_memory_; | 214 base::VirtualMemory* marking_deque_memory_; |
225 bool marking_deque_memory_committed_; | 215 bool marking_deque_memory_committed_; |
226 MarkingDeque marking_deque_; | 216 MarkingDeque marking_deque_; |
227 | 217 |
228 int steps_count_; | 218 int steps_count_; |
229 double steps_took_; | |
230 double longest_step_; | |
231 int64_t old_generation_space_available_at_start_of_incremental_; | 219 int64_t old_generation_space_available_at_start_of_incremental_; |
232 int64_t old_generation_space_used_at_start_of_incremental_; | 220 int64_t old_generation_space_used_at_start_of_incremental_; |
233 int steps_count_since_last_gc_; | |
234 double steps_took_since_last_gc_; | |
235 int64_t bytes_rescanned_; | 221 int64_t bytes_rescanned_; |
236 bool should_hurry_; | 222 bool should_hurry_; |
237 int marking_speed_; | 223 int marking_speed_; |
238 intptr_t bytes_scanned_; | 224 intptr_t bytes_scanned_; |
239 intptr_t allocated_; | 225 intptr_t allocated_; |
240 intptr_t write_barriers_invoked_since_last_step_; | 226 intptr_t write_barriers_invoked_since_last_step_; |
241 | 227 |
242 int no_marking_scope_depth_; | 228 int no_marking_scope_depth_; |
243 | 229 |
244 int unscanned_bytes_of_large_object_; | 230 int unscanned_bytes_of_large_object_; |
245 | 231 |
246 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 232 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
247 }; | 233 }; |
248 | 234 |
249 } } // namespace v8::internal | 235 } } // namespace v8::internal |
250 | 236 |
251 #endif // V8_INCREMENTAL_MARKING_H_ | 237 #endif // V8_INCREMENTAL_MARKING_H_ |
OLD | NEW |