| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 211 |
| 212 static void DeactivateIncrementalWriteBarrierForSpace(PagedSpace* space); | 212 static void DeactivateIncrementalWriteBarrierForSpace(PagedSpace* space); |
| 213 static void DeactivateIncrementalWriteBarrierForSpace(NewSpace* space); | 213 static void DeactivateIncrementalWriteBarrierForSpace(NewSpace* space); |
| 214 void DeactivateIncrementalWriteBarrier(); | 214 void DeactivateIncrementalWriteBarrier(); |
| 215 | 215 |
| 216 static void SetOldSpacePageFlags(MemoryChunk* chunk, bool is_marking); | 216 static void SetOldSpacePageFlags(MemoryChunk* chunk, bool is_marking); |
| 217 static void SetNewSpacePageFlags(NewSpacePage* chunk, bool is_marking); | 217 static void SetNewSpacePageFlags(NewSpacePage* chunk, bool is_marking); |
| 218 | 218 |
| 219 void EnsureMarkingDequeIsCommitted(); | 219 void EnsureMarkingDequeIsCommitted(); |
| 220 | 220 |
| 221 void VisitGlobalContext(Context* ctx, ObjectVisitor* v); |
| 222 |
| 221 Heap* heap_; | 223 Heap* heap_; |
| 222 | 224 |
| 223 State state_; | 225 State state_; |
| 224 bool is_compacting_; | 226 bool is_compacting_; |
| 225 | 227 |
| 226 VirtualMemory* marking_deque_memory_; | 228 VirtualMemory* marking_deque_memory_; |
| 227 MarkingDeque marking_deque_; | 229 MarkingDeque marking_deque_; |
| 228 | 230 |
| 229 int steps_count_; | 231 int steps_count_; |
| 230 double steps_took_; | 232 double steps_took_; |
| 231 double longest_step_; | 233 double longest_step_; |
| 232 int64_t old_generation_space_available_at_start_of_incremental_; | 234 int64_t old_generation_space_available_at_start_of_incremental_; |
| 233 int64_t old_generation_space_used_at_start_of_incremental_; | 235 int64_t old_generation_space_used_at_start_of_incremental_; |
| 234 int steps_count_since_last_gc_; | 236 int steps_count_since_last_gc_; |
| 235 double steps_took_since_last_gc_; | 237 double steps_took_since_last_gc_; |
| 236 int64_t bytes_rescanned_; | 238 int64_t bytes_rescanned_; |
| 237 bool should_hurry_; | 239 bool should_hurry_; |
| 238 int allocation_marking_factor_; | 240 int allocation_marking_factor_; |
| 239 intptr_t allocated_; | 241 intptr_t allocated_; |
| 240 | 242 |
| 241 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 243 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
| 242 }; | 244 }; |
| 243 | 245 |
| 244 } } // namespace v8::internal | 246 } } // namespace v8::internal |
| 245 | 247 |
| 246 #endif // V8_INCREMENTAL_MARKING_H_ | 248 #endif // V8_INCREMENTAL_MARKING_H_ |
| OLD | NEW |