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

#include <slot-set.h>

Inheritance diagram for v8::internal::TypedSlots:
Collaboration diagram for v8::internal::TypedSlots:

Classes

struct  Chunk
 
struct  TypedSlot
 

Public Member Functions

 TypedSlots ()=default
 
virtual ~TypedSlots ()
 
void Insert (SlotType type, uint32_t offset)
 
void Merge (TypedSlots *other)
 

Static Public Attributes

static const int kMaxOffset = 1 << 29
 

Protected Types

using OffsetField = base::BitField<int, 0, 29>
 
using TypeField = base::BitField<SlotType, 29, 3>
 

Protected Member Functions

ChunkEnsureChunk ()
 
ChunkNewChunk (Chunk *next, size_t capacity)
 

Static Protected Member Functions

static size_t NextCapacity (size_t capacity)
 

Protected Attributes

Chunkhead_ = nullptr
 
Chunktail_ = nullptr
 

Static Protected Attributes

static const size_t kInitialBufferSize = 100
 
static const size_t kMaxBufferSize = 16 * KB
 

Detailed Description

Definition at line 273 of file slot-set.h.

Member Typedef Documentation

◆ OffsetField

Definition at line 282 of file slot-set.h.

◆ TypeField

Definition at line 283 of file slot-set.h.

Constructor & Destructor Documentation

◆ TypedSlots()

v8::internal::TypedSlots::TypedSlots ( )
default

◆ ~TypedSlots()

v8::internal::TypedSlots::~TypedSlots ( )
virtual

Definition at line 13 of file slot-set.cc.

Member Function Documentation

◆ EnsureChunk()

TypedSlots::Chunk * v8::internal::TypedSlots::EnsureChunk ( )
protected

Definition at line 46 of file slot-set.cc.

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

◆ Insert()

void v8::internal::TypedSlots::Insert ( SlotType type,
uint32_t offset )

Definition at line 24 of file slot-set.cc.

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

◆ Merge()

void v8::internal::TypedSlots::Merge ( TypedSlots * other)

Definition at line 31 of file slot-set.cc.

Here is the caller graph for this function:

◆ NewChunk()

TypedSlots::Chunk * v8::internal::TypedSlots::NewChunk ( Chunk * next,
size_t capacity )
protected

Definition at line 56 of file slot-set.cc.

Here is the caller graph for this function:

◆ NextCapacity()

static size_t v8::internal::TypedSlots::NextCapacity ( size_t capacity)
inlinestaticprotected

Definition at line 293 of file slot-set.h.

Here is the caller graph for this function:

Member Data Documentation

◆ head_

Chunk* v8::internal::TypedSlots::head_ = nullptr
protected

Definition at line 298 of file slot-set.h.

◆ kInitialBufferSize

const size_t v8::internal::TypedSlots::kInitialBufferSize = 100
staticprotected

Definition at line 291 of file slot-set.h.

◆ kMaxBufferSize

const size_t v8::internal::TypedSlots::kMaxBufferSize = 16 * KB
staticprotected

Definition at line 292 of file slot-set.h.

◆ kMaxOffset

const int v8::internal::TypedSlots::kMaxOffset = 1 << 29
static

Definition at line 275 of file slot-set.h.

◆ tail_

Chunk* v8::internal::TypedSlots::tail_ = nullptr
protected

Definition at line 299 of file slot-set.h.


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