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

#include <string-builder.h>

Collaboration diagram for v8::internal::FixedArrayBuilder:

Public Member Functions

 FixedArrayBuilder (Isolate *isolate, int initial_capacity)
 
 FixedArrayBuilder (DirectHandle< FixedArray > backing_store)
 
bool HasCapacity (int elements)
 
void EnsureCapacity (Isolate *isolate, int elements)
 
void Add (Tagged< Object > value)
 
void Add (Tagged< Smi > value)
 
DirectHandle< FixedArrayarray ()
 
int length ()
 
int capacity ()
 

Static Public Member Functions

static FixedArrayBuilder Lazy (Isolate *isolate)
 

Private Member Functions

 FixedArrayBuilder (Isolate *isolate)
 

Private Attributes

DirectHandle< FixedArrayarray_
 
int length_
 
bool has_non_smi_elements_
 

Detailed Description

Definition at line 15 of file string-builder.h.

Constructor & Destructor Documentation

◆ FixedArrayBuilder() [1/3]

v8::internal::FixedArrayBuilder::FixedArrayBuilder ( Isolate * isolate,
int initial_capacity )
explicit

Definition at line 108 of file string-builder.cc.

Here is the caller graph for this function:

◆ FixedArrayBuilder() [2/3]

v8::internal::FixedArrayBuilder::FixedArrayBuilder ( DirectHandle< FixedArray > backing_store)
explicit

Definition at line 117 of file string-builder.cc.

◆ FixedArrayBuilder() [3/3]

v8::internal::FixedArrayBuilder::FixedArrayBuilder ( Isolate * isolate)
explicitprivate

Definition at line 124 of file string-builder.cc.

Member Function Documentation

◆ Add() [1/2]

void v8::internal::FixedArrayBuilder::Add ( Tagged< Object > value)

Definition at line 162 of file string-builder.cc.

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

◆ Add() [2/2]

void v8::internal::FixedArrayBuilder::Add ( Tagged< Smi > value)

Definition at line 169 of file string-builder.cc.

Here is the call graph for this function:

◆ array()

DirectHandle< FixedArray > v8::internal::FixedArrayBuilder::array ( )
inline

Definition at line 30 of file string-builder.h.

Here is the caller graph for this function:

◆ capacity()

int v8::internal::FixedArrayBuilder::capacity ( )

Definition at line 175 of file string-builder.cc.

◆ EnsureCapacity()

void v8::internal::FixedArrayBuilder::EnsureCapacity ( Isolate * isolate,
int elements )

Definition at line 140 of file string-builder.cc.

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

◆ HasCapacity()

bool v8::internal::FixedArrayBuilder::HasCapacity ( int elements)

Definition at line 134 of file string-builder.cc.

◆ Lazy()

FixedArrayBuilder v8::internal::FixedArrayBuilder::Lazy ( Isolate * isolate)
static

Definition at line 130 of file string-builder.cc.

Here is the call graph for this function:

◆ length()

int v8::internal::FixedArrayBuilder::length ( )
inline

Definition at line 32 of file string-builder.h.

Here is the caller graph for this function:

Member Data Documentation

◆ array_

DirectHandle<FixedArray> v8::internal::FixedArrayBuilder::array_
private

Definition at line 39 of file string-builder.h.

◆ has_non_smi_elements_

bool v8::internal::FixedArrayBuilder::has_non_smi_elements_
private

Definition at line 41 of file string-builder.h.

◆ length_

int v8::internal::FixedArrayBuilder::length_
private

Definition at line 40 of file string-builder.h.


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