![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <free-list.h>
Protected Member Functions | |
FreeListCategoryType | SelectFreeListCategoryType (size_t size_in_bytes) override |
FRIEND_TEST (SpacesTest, FreeListManySelectFreeListCategoryType) | |
FRIEND_TEST (SpacesTest, FreeListManyGuaranteedAllocatable) | |
![]() | |
void | VerifyAvailable () |
Tagged< FreeSpace > | TryFindNodeIn (FreeListCategoryType type, size_t minimum_size, size_t *node_size) |
Tagged< FreeSpace > | SearchForNodeInList (FreeListCategoryType type, size_t minimum_size, size_t *node_size) |
FreeListCategory * | top (FreeListCategoryType type) const |
PageMetadata * | GetPageForCategoryType (FreeListCategoryType type) |
Static Protected Attributes | |
static constexpr size_t | kMinBlockSize = 3 * kTaggedSize |
static constexpr size_t | kMaxBlockSize = MutablePageMetadata::kPageSize |
static constexpr size_t | kPreciseCategoryMaxSize = 256 |
static constexpr int | kNumberOfCategories = 24 |
static constexpr unsigned int | categories_min [kNumberOfCategories] |
Additional Inherited Members | |
![]() | |
static V8_EXPORT_PRIVATE std::unique_ptr< FreeList > | CreateFreeList () |
static V8_EXPORT_PRIVATE std::unique_ptr< FreeList > | CreateFreeListForNewSpace () |
![]() | |
const int | number_of_categories_ = 0 |
const FreeListCategoryType | last_category_ = 0 |
size_t | min_block_size_ = 0 |
FreeListCategory ** | categories_ = nullptr |
size_t | available_ = 0 |
std::atomic< size_t > | wasted_bytes_ = 0 |
Definition at line 295 of file free-list.h.
v8::internal::FreeListMany::FreeListMany | ( | ) |
|
override |
Definition at line 207 of file free-list.cc.
|
overridevirtual |
Implements v8::internal::FreeList.
Reimplemented in v8::internal::FreeListManyCached, v8::internal::FreeListManyCachedFastPathBase, and v8::internal::FreeListManyCachedOrigin.
Definition at line 223 of file free-list.cc.
|
protected |
|
protected |
|
overridevirtual |
Implements v8::internal::FreeList.
Definition at line 209 of file free-list.cc.
|
inlineoverrideprotectedvirtual |
Implements v8::internal::FreeList.
Definition at line 330 of file free-list.h.
|
staticconstexprprotected |
Definition at line 325 of file free-list.h.
|
staticconstexprprotected |
Definition at line 311 of file free-list.h.
|
staticconstexprprotected |
Definition at line 307 of file free-list.h.
|
staticconstexprprotected |
Definition at line 324 of file free-list.h.
|
staticconstexprprotected |
Definition at line 314 of file free-list.h.