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_HEAP_H_ | 5 #ifndef V8_HEAP_HEAP_H_ |
6 #define V8_HEAP_HEAP_H_ | 6 #define V8_HEAP_HEAP_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 2299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2310 | 2310 |
2311 // The depth of HeapIterator nestings. | 2311 // The depth of HeapIterator nestings. |
2312 int heap_iterator_depth_; | 2312 int heap_iterator_depth_; |
2313 | 2313 |
2314 EmbedderHeapTracer* embedder_heap_tracer_; | 2314 EmbedderHeapTracer* embedder_heap_tracer_; |
2315 EmbedderReachableReferenceReporter* embedder_reference_reporter_; | 2315 EmbedderReachableReferenceReporter* embedder_reference_reporter_; |
2316 std::vector<std::pair<void*, void*>> wrappers_to_trace_; | 2316 std::vector<std::pair<void*, void*>> wrappers_to_trace_; |
2317 | 2317 |
2318 // Used for testing purposes. | 2318 // Used for testing purposes. |
2319 bool force_oom_; | 2319 bool force_oom_; |
| 2320 bool delay_sweeper_tasks_for_testing_; |
2320 | 2321 |
2321 // Classes in "heap" can be friends. | 2322 // Classes in "heap" can be friends. |
2322 friend class AlwaysAllocateScope; | 2323 friend class AlwaysAllocateScope; |
2323 friend class GCCallbacksScope; | 2324 friend class GCCallbacksScope; |
2324 friend class GCTracer; | 2325 friend class GCTracer; |
2325 friend class HeapIterator; | 2326 friend class HeapIterator; |
2326 friend class IdleScavengeObserver; | 2327 friend class IdleScavengeObserver; |
2327 friend class IncrementalMarking; | 2328 friend class IncrementalMarking; |
2328 friend class IncrementalMarkingJob; | 2329 friend class IncrementalMarkingJob; |
2329 friend class IteratePromotedObjectsVisitor; | 2330 friend class IteratePromotedObjectsVisitor; |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2644 } | 2645 } |
2645 | 2646 |
2646 private: | 2647 private: |
2647 Heap* heap_; | 2648 Heap* heap_; |
2648 }; | 2649 }; |
2649 | 2650 |
2650 } // namespace internal | 2651 } // namespace internal |
2651 } // namespace v8 | 2652 } // namespace v8 |
2652 | 2653 |
2653 #endif // V8_HEAP_HEAP_H_ | 2654 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |