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 | 8 |
9 #include "src/execution.h" | 9 #include "src/execution.h" |
10 #include "src/heap/mark-compact.h" | 10 #include "src/heap/mark-compact.h" |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 void UncommitMarkingDeque(); | 160 void UncommitMarkingDeque(); |
161 | 161 |
162 void NotifyIncompleteScanOfObject(int unscanned_bytes) { | 162 void NotifyIncompleteScanOfObject(int unscanned_bytes) { |
163 unscanned_bytes_of_large_object_ = unscanned_bytes; | 163 unscanned_bytes_of_large_object_ = unscanned_bytes; |
164 } | 164 } |
165 | 165 |
166 private: | 166 private: |
167 int64_t SpaceLeftInOldSpace(); | 167 int64_t SpaceLeftInOldSpace(); |
168 | 168 |
| 169 void SpeedUp(); |
| 170 |
169 void ResetStepCounters(); | 171 void ResetStepCounters(); |
170 | 172 |
171 void StartMarking(CompactionFlag flag); | 173 void StartMarking(CompactionFlag flag); |
172 | 174 |
173 void ActivateIncrementalWriteBarrier(PagedSpace* space); | 175 void ActivateIncrementalWriteBarrier(PagedSpace* space); |
174 static void ActivateIncrementalWriteBarrier(NewSpace* space); | 176 static void ActivateIncrementalWriteBarrier(NewSpace* space); |
175 void ActivateIncrementalWriteBarrier(); | 177 void ActivateIncrementalWriteBarrier(); |
176 | 178 |
177 static void DeactivateIncrementalWriteBarrierForSpace(PagedSpace* space); | 179 static void DeactivateIncrementalWriteBarrierForSpace(PagedSpace* space); |
178 static void DeactivateIncrementalWriteBarrierForSpace(NewSpace* space); | 180 static void DeactivateIncrementalWriteBarrierForSpace(NewSpace* space); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 int no_marking_scope_depth_; | 215 int no_marking_scope_depth_; |
214 | 216 |
215 int unscanned_bytes_of_large_object_; | 217 int unscanned_bytes_of_large_object_; |
216 | 218 |
217 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 219 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
218 }; | 220 }; |
219 } | 221 } |
220 } // namespace v8::internal | 222 } // namespace v8::internal |
221 | 223 |
222 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 224 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
OLD | NEW |