v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FixedArrayBuilder Class Reference

Public Member Functions

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

Detailed Description

Definition at line 3317 of file runtime.cc.

Constructor & Destructor Documentation

FixedArrayBuilder ( Isolate isolate,
int  initial_capacity 
)
inlineexplicit

Definition at line 3319 of file runtime.cc.

References ASSERT.

FixedArrayBuilder ( Handle< FixedArray backing_store)
inlineexplicit

Definition at line 3328 of file runtime.cc.

References ASSERT.

Member Function Documentation

void Add ( Object value)
inline

Definition at line 3358 of file runtime.cc.

References ASSERT, and FixedArrayBuilder::capacity().

Referenced by ReplacementStringBuilder::AddSubjectSlice().

void Add ( Smi value)
inline

Definition at line 3366 of file runtime.cc.

References ASSERT, and FixedArrayBuilder::capacity().

Handle<FixedArray> array ( )
inline

Definition at line 3373 of file runtime.cc.

Referenced by ReplacementStringBuilder::ToString().

int capacity ( )
inline

Definition at line 3381 of file runtime.cc.

Referenced by FixedArrayBuilder::Add().

void EnsureCapacity ( int  elements)
inline

Definition at line 3343 of file runtime.cc.

References FixedArrayBuilder::length().

Referenced by ReplacementStringBuilder::EnsureCapacity().

bool HasCapacity ( int  elements)
inline

Definition at line 3337 of file runtime.cc.

int length ( )
inline
Handle<JSArray> ToJSArray ( Handle< JSArray target_array)
inline

Definition at line 3385 of file runtime.cc.

References Smi::FromInt(), and JSArray::SetContent().


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