| 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 926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 937 bool ConfigureHeapDefault(); | 937 bool ConfigureHeapDefault(); |
| 938 | 938 |
| 939 // Prepares the heap, setting up memory areas that are needed in the isolate | 939 // Prepares the heap, setting up memory areas that are needed in the isolate |
| 940 // without actually creating any objects. | 940 // without actually creating any objects. |
| 941 bool SetUp(); | 941 bool SetUp(); |
| 942 | 942 |
| 943 // Bootstraps the object heap with the core set of objects required to run. | 943 // Bootstraps the object heap with the core set of objects required to run. |
| 944 // Returns whether it succeeded. | 944 // Returns whether it succeeded. |
| 945 bool CreateHeapObjects(); | 945 bool CreateHeapObjects(); |
| 946 | 946 |
| 947 // Create ObjectStats if live_object_stats_ or dead_object_stats_ are nullptr. | |
| 948 V8_INLINE void CreateObjectStats(); | |
| 949 | |
| 950 // Destroys all memory allocated by the heap. | 947 // Destroys all memory allocated by the heap. |
| 951 void TearDown(); | 948 void TearDown(); |
| 952 | 949 |
| 953 // Returns whether SetUp has been called. | 950 // Returns whether SetUp has been called. |
| 954 bool HasBeenSetUp(); | 951 bool HasBeenSetUp(); |
| 955 | 952 |
| 956 // =========================================================================== | 953 // =========================================================================== |
| 957 // Getters for spaces. ======================================================= | 954 // Getters for spaces. ======================================================= |
| 958 // =========================================================================== | 955 // =========================================================================== |
| 959 | 956 |
| (...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2628 friend class LargeObjectSpace; | 2625 friend class LargeObjectSpace; |
| 2629 friend class NewSpace; | 2626 friend class NewSpace; |
| 2630 friend class PagedSpace; | 2627 friend class PagedSpace; |
| 2631 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2628 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
| 2632 }; | 2629 }; |
| 2633 | 2630 |
| 2634 } // namespace internal | 2631 } // namespace internal |
| 2635 } // namespace v8 | 2632 } // namespace v8 |
| 2636 | 2633 |
| 2637 #endif // V8_HEAP_HEAP_H_ | 2634 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |