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 |
262 Heap* heap_; | 268 Heap* heap_; |
263 | 269 |
264 State state_; | 270 State state_; |
265 bool is_compacting_; | 271 bool is_compacting_; |
266 | 272 |
267 VirtualMemory* marking_deque_memory_; | 273 VirtualMemory* marking_deque_memory_; |
268 bool marking_deque_memory_committed_; | 274 bool marking_deque_memory_committed_; |
269 MarkingDeque marking_deque_; | 275 MarkingDeque marking_deque_; |
270 | 276 |
271 int steps_count_; | 277 int steps_count_; |
(...skipping 11 matching lines...) Expand all Loading... |
283 intptr_t write_barriers_invoked_since_last_step_; | 289 intptr_t write_barriers_invoked_since_last_step_; |
284 | 290 |
285 int no_marking_scope_depth_; | 291 int no_marking_scope_depth_; |
286 | 292 |
287 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 293 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
288 }; | 294 }; |
289 | 295 |
290 } } // namespace v8::internal | 296 } } // namespace v8::internal |
291 | 297 |
292 #endif // V8_INCREMENTAL_MARKING_H_ | 298 #endif // V8_INCREMENTAL_MARKING_H_ |
OLD | NEW |