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 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1217 | 1217 |
1218 void RegisterWrappersWithEmbedderHeapTracer(); | 1218 void RegisterWrappersWithEmbedderHeapTracer(); |
1219 | 1219 |
1220 // In order to avoid running out of memory we force tracing wrappers if there | 1220 // In order to avoid running out of memory we force tracing wrappers if there |
1221 // are too many of them. | 1221 // are too many of them. |
1222 bool RequiresImmediateWrapperProcessing(); | 1222 bool RequiresImmediateWrapperProcessing(); |
1223 | 1223 |
1224 EmbedderHeapTracer* embedder_heap_tracer() { return embedder_heap_tracer_; } | 1224 EmbedderHeapTracer* embedder_heap_tracer() { return embedder_heap_tracer_; } |
1225 | 1225 |
1226 size_t wrappers_to_trace() { return wrappers_to_trace_.size(); } | 1226 size_t wrappers_to_trace() { return wrappers_to_trace_.size(); } |
| 1227 void clear_wrappers_to_trace() { wrappers_to_trace_.clear(); } |
1227 | 1228 |
1228 // =========================================================================== | 1229 // =========================================================================== |
1229 // External string table API. ================================================ | 1230 // External string table API. ================================================ |
1230 // =========================================================================== | 1231 // =========================================================================== |
1231 | 1232 |
1232 // Registers an external string. | 1233 // Registers an external string. |
1233 inline void RegisterExternalString(String* string); | 1234 inline void RegisterExternalString(String* string); |
1234 | 1235 |
1235 // Finalizes an external string by deleting the associated external | 1236 // Finalizes an external string by deleting the associated external |
1236 // data and clearing the resource pointer. | 1237 // data and clearing the resource pointer. |
(...skipping 1410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2647 friend class LargeObjectSpace; | 2648 friend class LargeObjectSpace; |
2648 friend class NewSpace; | 2649 friend class NewSpace; |
2649 friend class PagedSpace; | 2650 friend class PagedSpace; |
2650 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2651 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2651 }; | 2652 }; |
2652 | 2653 |
2653 } // namespace internal | 2654 } // namespace internal |
2654 } // namespace v8 | 2655 } // namespace v8 |
2655 | 2656 |
2656 #endif // V8_HEAP_HEAP_H_ | 2657 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |