v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::MemoryController< Trait > Class Template Reference

#include <heap-controller.h>

Inheritance diagram for v8::internal::MemoryController< Trait >:
Collaboration diagram for v8::internal::MemoryController< Trait >:

Static Public Member Functions

static size_t MinimumAllocationLimitGrowingStep (Heap::HeapGrowingMode growing_mode)
 
static double GrowingFactor (Heap *heap, size_t max_heap_size, std::optional< double > gc_speed, double mutator_speed, Heap::HeapGrowingMode growing_mode)
 
static size_t BoundAllocationLimit (Heap *heap, size_t current_size, uint64_t limit, size_t min_size, size_t max_size, size_t new_space_capacity, Heap::HeapGrowingMode growing_mode)
 

Private Member Functions

 FRIEND_TEST (MemoryControllerTest, HeapGrowingFactor)
 
 FRIEND_TEST (MemoryControllerTest, MaxHeapGrowingFactor)
 

Static Private Member Functions

static double MaxGrowingFactor (size_t max_heap_size)
 
static double DynamicGrowingFactor (std::optional< double > gc_speed, double mutator_speed, double max_factor)
 

Detailed Description

template<typename Trait>
class v8::internal::MemoryController< Trait >

Definition at line 35 of file heap-controller.h.

Member Function Documentation

◆ BoundAllocationLimit()

template<typename Trait >
size_t v8::internal::MemoryController< Trait >::BoundAllocationLimit ( Heap * heap,
size_t current_size,
uint64_t limit,
size_t min_size,
size_t max_size,
size_t new_space_capacity,
Heap::HeapGrowingMode growing_mode )
static

Definition at line 140 of file heap-controller.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DynamicGrowingFactor()

template<typename Trait >
double v8::internal::MemoryController< Trait >::DynamicGrowingFactor ( std::optional< double > gc_speed,
double mutator_speed,
double max_factor )
staticprivate

Definition at line 109 of file heap-controller.cc.

◆ FRIEND_TEST() [1/2]

template<typename Trait >
v8::internal::MemoryController< Trait >::FRIEND_TEST ( MemoryControllerTest ,
HeapGrowingFactor  )
private

◆ FRIEND_TEST() [2/2]

template<typename Trait >
v8::internal::MemoryController< Trait >::FRIEND_TEST ( MemoryControllerTest ,
MaxHeapGrowingFactor  )
private

◆ GrowingFactor()

template<typename Trait >
double v8::internal::MemoryController< Trait >::GrowingFactor ( Heap * heap,
size_t max_heap_size,
std::optional< double > gc_speed,
double mutator_speed,
Heap::HeapGrowingMode growing_mode )
static

Definition at line 15 of file heap-controller.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MaxGrowingFactor()

template<typename Trait >
double v8::internal::MemoryController< Trait >::MaxGrowingFactor ( size_t max_heap_size)
staticprivate

Definition at line 46 of file heap-controller.cc.

◆ MinimumAllocationLimitGrowingStep()

template<typename Trait >
size_t v8::internal::MemoryController< Trait >::MinimumAllocationLimitGrowingStep ( Heap::HeapGrowingMode growing_mode)
static

Definition at line 129 of file heap-controller.cc.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: