OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 void DeactivateIncrementalWriteBarrier(); | 252 void DeactivateIncrementalWriteBarrier(); |
253 | 253 |
254 static void SetOldSpacePageFlags(MemoryChunk* chunk, | 254 static void SetOldSpacePageFlags(MemoryChunk* chunk, |
255 bool is_marking, | 255 bool is_marking, |
256 bool is_compacting); | 256 bool is_compacting); |
257 | 257 |
258 static void SetNewSpacePageFlags(NewSpacePage* chunk, bool is_marking); | 258 static void SetNewSpacePageFlags(NewSpacePage* chunk, bool is_marking); |
259 | 259 |
260 void EnsureMarkingDequeIsCommitted(); | 260 void EnsureMarkingDequeIsCommitted(); |
261 | 261 |
262 INLINE(void ProcessMarkingDeque()); | |
263 | |
264 INLINE(void ProcessMarkingDeque(intptr_t bytes_to_process)); | |
265 | |
266 INLINE(void VisitObject(Map* map, HeapObject* obj, int size)); | |
267 | |
268 Heap* heap_; | 262 Heap* heap_; |
269 | 263 |
270 State state_; | 264 State state_; |
271 bool is_compacting_; | 265 bool is_compacting_; |
272 | 266 |
273 VirtualMemory* marking_deque_memory_; | 267 VirtualMemory* marking_deque_memory_; |
274 bool marking_deque_memory_committed_; | 268 bool marking_deque_memory_committed_; |
275 MarkingDeque marking_deque_; | 269 MarkingDeque marking_deque_; |
276 | 270 |
277 int steps_count_; | 271 int steps_count_; |
(...skipping 11 matching lines...) Expand all Loading... |
289 intptr_t write_barriers_invoked_since_last_step_; | 283 intptr_t write_barriers_invoked_since_last_step_; |
290 | 284 |
291 int no_marking_scope_depth_; | 285 int no_marking_scope_depth_; |
292 | 286 |
293 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 287 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
294 }; | 288 }; |
295 | 289 |
296 } } // namespace v8::internal | 290 } } // namespace v8::internal |
297 | 291 |
298 #endif // V8_INCREMENTAL_MARKING_H_ | 292 #endif // V8_INCREMENTAL_MARKING_H_ |
OLD | NEW |