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

#include <aligned-slot-allocator.h>

Collaboration diagram for v8::internal::AlignedSlotAllocator:

Public Member Functions

 AlignedSlotAllocator ()=default
 
int Allocate (int n)
 
int NextSlot (int n) const
 
int AllocateUnaligned (int n)
 
int Align (int n)
 
int Size () const
 

Static Public Member Functions

static int NumSlotsForWidth (int bytes)
 

Static Public Attributes

static constexpr int kSlotSize = kSystemPointerSize
 

Static Private Member Functions

static bool IsValid (int slot)
 

Private Attributes

int next1_ = kInvalidSlot
 
int next2_ = kInvalidSlot
 
int next4_ = 0
 
int size_ = 0
 

Static Private Attributes

static constexpr int kInvalidSlot = -1
 

Detailed Description

Definition at line 20 of file aligned-slot-allocator.h.

Constructor & Destructor Documentation

◆ AlignedSlotAllocator()

v8::internal::AlignedSlotAllocator::AlignedSlotAllocator ( )
default

Member Function Documentation

◆ Align()

int v8::internal::AlignedSlotAllocator::Align ( int n)

Definition at line 113 of file aligned-slot-allocator.cc.

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

◆ Allocate()

int v8::internal::AlignedSlotAllocator::Allocate ( int n)

Definition at line 21 of file aligned-slot-allocator.cc.

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

◆ AllocateUnaligned()

int v8::internal::AlignedSlotAllocator::AllocateUnaligned ( int n)

Definition at line 75 of file aligned-slot-allocator.cc.

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

◆ IsValid()

static bool v8::internal::AlignedSlotAllocator::IsValid ( int slot)
inlinestaticprivate

Definition at line 58 of file aligned-slot-allocator.h.

Here is the caller graph for this function:

◆ NextSlot()

int v8::internal::AlignedSlotAllocator::NextSlot ( int n) const

Definition at line 13 of file aligned-slot-allocator.cc.

Here is the call graph for this function:

◆ NumSlotsForWidth()

static int v8::internal::AlignedSlotAllocator::NumSlotsForWidth ( int bytes)
inlinestatic

Definition at line 25 of file aligned-slot-allocator.h.

Here is the caller graph for this function:

◆ Size()

int v8::internal::AlignedSlotAllocator::Size ( ) const
inline

Definition at line 53 of file aligned-slot-allocator.h.

Here is the caller graph for this function:

Member Data Documentation

◆ kInvalidSlot

int v8::internal::AlignedSlotAllocator::kInvalidSlot = -1
staticconstexprprivate

Definition at line 56 of file aligned-slot-allocator.h.

◆ kSlotSize

int v8::internal::AlignedSlotAllocator::kSlotSize = kSystemPointerSize
staticconstexpr

Definition at line 23 of file aligned-slot-allocator.h.

◆ next1_

int v8::internal::AlignedSlotAllocator::next1_ = kInvalidSlot
private

Definition at line 60 of file aligned-slot-allocator.h.

◆ next2_

int v8::internal::AlignedSlotAllocator::next2_ = kInvalidSlot
private

Definition at line 61 of file aligned-slot-allocator.h.

◆ next4_

int v8::internal::AlignedSlotAllocator::next4_ = 0
private

Definition at line 62 of file aligned-slot-allocator.h.

◆ size_

int v8::internal::AlignedSlotAllocator::size_ = 0
private

Definition at line 63 of file aligned-slot-allocator.h.


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