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 #include "src/cancelable-task.h" | 8 #include "src/cancelable-task.h" |
9 #include "src/execution.h" | 9 #include "src/execution.h" |
10 #include "src/heap/incremental-marking-job.h" | 10 #include "src/heap/incremental-marking-job.h" |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 return &incremental_marking_job_; | 214 return &incremental_marking_job_; |
215 } | 215 } |
216 | 216 |
217 private: | 217 private: |
218 class Observer : public InlineAllocationObserver { | 218 class Observer : public InlineAllocationObserver { |
219 public: | 219 public: |
220 Observer(IncrementalMarking& incremental_marking, intptr_t step_size) | 220 Observer(IncrementalMarking& incremental_marking, intptr_t step_size) |
221 : InlineAllocationObserver(step_size), | 221 : InlineAllocationObserver(step_size), |
222 incremental_marking_(incremental_marking) {} | 222 incremental_marking_(incremental_marking) {} |
223 | 223 |
224 virtual void Step(int bytes_allocated) { | 224 void Step(int bytes_allocated, Address, size_t) override { |
225 incremental_marking_.Step(bytes_allocated, | 225 incremental_marking_.Step(bytes_allocated, |
226 IncrementalMarking::GC_VIA_STACK_GUARD); | 226 IncrementalMarking::GC_VIA_STACK_GUARD); |
227 } | 227 } |
228 | 228 |
229 private: | 229 private: |
230 IncrementalMarking& incremental_marking_; | 230 IncrementalMarking& incremental_marking_; |
231 }; | 231 }; |
232 | 232 |
233 int64_t SpaceLeftInOldSpace(); | 233 int64_t SpaceLeftInOldSpace(); |
234 | 234 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 GCRequestType request_type_; | 293 GCRequestType request_type_; |
294 | 294 |
295 IncrementalMarkingJob incremental_marking_job_; | 295 IncrementalMarkingJob incremental_marking_job_; |
296 | 296 |
297 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 297 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
298 }; | 298 }; |
299 } // namespace internal | 299 } // namespace internal |
300 } // namespace v8 | 300 } // namespace v8 |
301 | 301 |
302 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 302 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
OLD | NEW |