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 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1198 void RegisterReservationsForBlackAllocation(Reservation* reservations); | 1198 void RegisterReservationsForBlackAllocation(Reservation* reservations); |
1199 | 1199 |
1200 IncrementalMarking* incremental_marking() { return incremental_marking_; } | 1200 IncrementalMarking* incremental_marking() { return incremental_marking_; } |
1201 | 1201 |
1202 // =========================================================================== | 1202 // =========================================================================== |
1203 // Embedder heap tracer support. ============================================= | 1203 // Embedder heap tracer support. ============================================= |
1204 // =========================================================================== | 1204 // =========================================================================== |
1205 | 1205 |
1206 void SetEmbedderHeapTracer(EmbedderHeapTracer* tracer); | 1206 void SetEmbedderHeapTracer(EmbedderHeapTracer* tracer); |
1207 | 1207 |
1208 bool UsingEmbedderHeapTracer() { return embedder_heap_tracer(); } | 1208 bool UsingEmbedderHeapTracer() { return embedder_heap_tracer() != nullptr; } |
1209 | 1209 |
1210 void TracePossibleWrapper(JSObject* js_object); | 1210 void TracePossibleWrapper(JSObject* js_object); |
1211 | 1211 |
1212 void RegisterExternallyReferencedObject(Object** object); | 1212 void RegisterExternallyReferencedObject(Object** object); |
1213 | 1213 |
1214 void RegisterWrappersWithEmbedderHeapTracer(); | 1214 void RegisterWrappersWithEmbedderHeapTracer(); |
1215 | 1215 |
1216 // In order to avoid running out of memory we force tracing wrappers if there | 1216 // In order to avoid running out of memory we force tracing wrappers if there |
1217 // are too many of them. | 1217 // are too many of them. |
1218 bool RequiresImmediateWrapperProcessing(); | 1218 bool RequiresImmediateWrapperProcessing(); |
(...skipping 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2638 } | 2638 } |
2639 | 2639 |
2640 private: | 2640 private: |
2641 Heap* heap_; | 2641 Heap* heap_; |
2642 }; | 2642 }; |
2643 | 2643 |
2644 } // namespace internal | 2644 } // namespace internal |
2645 } // namespace v8 | 2645 } // namespace v8 |
2646 | 2646 |
2647 #endif // V8_HEAP_HEAP_H_ | 2647 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |