v8  3.14.5(node0.10.28)
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 2336 of file runtime.cc.

Constructor & Destructor Documentation

FixedArrayBuilder ( Isolate isolate,
int  initial_capacity 
)
inlineexplicit

Definition at line 2338 of file runtime.cc.

References ASSERT.

FixedArrayBuilder ( Handle< FixedArray backing_store)
inlineexplicit

Definition at line 2347 of file runtime.cc.

References ASSERT.

Member Function Documentation

void Add ( Object value)
inline

Definition at line 2377 of file runtime.cc.

References ASSERT, and FixedArrayBuilder::capacity().

Referenced by ReplacementStringBuilder::AddSubjectSlice().

void Add ( Smi value)
inline

Definition at line 2385 of file runtime.cc.

References ASSERT, and FixedArrayBuilder::capacity().

Handle<FixedArray> array ( )
inline

Definition at line 2392 of file runtime.cc.

Referenced by ReplacementStringBuilder::ToString().

int capacity ( )
inline

Definition at line 2400 of file runtime.cc.

Referenced by FixedArrayBuilder::Add().

void EnsureCapacity ( int  elements)
inline

Definition at line 2362 of file runtime.cc.

References FixedArrayBuilder::length().

Referenced by ReplacementStringBuilder::EnsureCapacity().

bool HasCapacity ( int  elements)
inline

Definition at line 2356 of file runtime.cc.

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

Definition at line 2404 of file runtime.cc.

References FACTORY, and Smi::FromInt().


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