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

#include <stacks.h>

Collaboration diagram for v8::internal::wasm::StackPool:

Public Member Functions

std::unique_ptr< StackMemoryGetOrAllocate ()
 
void Add (std::unique_ptr< StackMemory > stack)
 
void ReleaseFinishedStacks ()
 
size_t Size () const
 

Private Attributes

std::vector< std::unique_ptr< StackMemory > > freelist_
 
size_t size_ = 0
 

Static Private Attributes

static constexpr int kMaxSize = 4 * MB
 

Detailed Description

Definition at line 217 of file stacks.h.

Member Function Documentation

◆ Add()

void v8::internal::wasm::StackPool::Add ( std::unique_ptr< StackMemory > stack)

Definition at line 170 of file stacks.cc.

◆ GetOrAllocate()

std::unique_ptr< StackMemory > v8::internal::wasm::StackPool::GetOrAllocate ( )

Definition at line 150 of file stacks.cc.

Here is the call graph for this function:

◆ ReleaseFinishedStacks()

void v8::internal::wasm::StackPool::ReleaseFinishedStacks ( )

Definition at line 179 of file stacks.cc.

◆ Size()

size_t v8::internal::wasm::StackPool::Size ( ) const

Definition at line 184 of file stacks.cc.

Here is the call graph for this function:

Member Data Documentation

◆ freelist_

std::vector<std::unique_ptr<StackMemory> > v8::internal::wasm::StackPool::freelist_
private

Definition at line 228 of file stacks.h.

◆ kMaxSize

int v8::internal::wasm::StackPool::kMaxSize = 4 * MB
staticconstexprprivate

Definition at line 232 of file stacks.h.

◆ size_

size_t v8::internal::wasm::StackPool::size_ = 0
private

Definition at line 229 of file stacks.h.


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