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 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 bool ConfigureHeapDefault(); | 938 bool ConfigureHeapDefault(); |
939 | 939 |
940 // Prepares the heap, setting up memory areas that are needed in the isolate | 940 // Prepares the heap, setting up memory areas that are needed in the isolate |
941 // without actually creating any objects. | 941 // without actually creating any objects. |
942 bool SetUp(); | 942 bool SetUp(); |
943 | 943 |
944 // Bootstraps the object heap with the core set of objects required to run. | 944 // Bootstraps the object heap with the core set of objects required to run. |
945 // Returns whether it succeeded. | 945 // Returns whether it succeeded. |
946 bool CreateHeapObjects(); | 946 bool CreateHeapObjects(); |
947 | 947 |
| 948 // Create ObjectStats if live_object_stats_ or dead_object_stats_ are nullptr. |
| 949 V8_INLINE void CreateObjectStats(); |
| 950 |
948 // Destroys all memory allocated by the heap. | 951 // Destroys all memory allocated by the heap. |
949 void TearDown(); | 952 void TearDown(); |
950 | 953 |
951 // Returns whether SetUp has been called. | 954 // Returns whether SetUp has been called. |
952 bool HasBeenSetUp(); | 955 bool HasBeenSetUp(); |
953 | 956 |
954 // =========================================================================== | 957 // =========================================================================== |
955 // Getters for spaces. ======================================================= | 958 // Getters for spaces. ======================================================= |
956 // =========================================================================== | 959 // =========================================================================== |
957 | 960 |
(...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2643 } | 2646 } |
2644 | 2647 |
2645 private: | 2648 private: |
2646 Heap* heap_; | 2649 Heap* heap_; |
2647 }; | 2650 }; |
2648 | 2651 |
2649 } // namespace internal | 2652 } // namespace internal |
2650 } // namespace v8 | 2653 } // namespace v8 |
2651 | 2654 |
2652 #endif // V8_HEAP_HEAP_H_ | 2655 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |