v8  3.11.10(node0.8.26)
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< JSArrayToJSArray (Handle< JSArray > target_array)
 

Detailed Description

Definition at line 2302 of file runtime.cc.

Constructor & Destructor Documentation

FixedArrayBuilder ( Isolate isolate,
int  initial_capacity 
)
inlineexplicit

Definition at line 2304 of file runtime.cc.

References ASSERT.

FixedArrayBuilder ( Handle< FixedArray backing_store)
inlineexplicit

Definition at line 2313 of file runtime.cc.

References ASSERT.

Member Function Documentation

void Add ( Object value)
inline

Definition at line 2343 of file runtime.cc.

References ASSERT, and FixedArrayBuilder::capacity().

Referenced by ReplacementStringBuilder::AddSubjectSlice().

void Add ( Smi value)
inline

Definition at line 2351 of file runtime.cc.

References ASSERT, and FixedArrayBuilder::capacity().

Handle<FixedArray> array ( )
inline

Definition at line 2358 of file runtime.cc.

Referenced by ReplacementStringBuilder::ToString().

int capacity ( )
inline

Definition at line 2366 of file runtime.cc.

Referenced by FixedArrayBuilder::Add().

void EnsureCapacity ( int  elements)
inline

Definition at line 2328 of file runtime.cc.

References FixedArrayBuilder::length().

Referenced by ReplacementStringBuilder::EnsureCapacity().

bool HasCapacity ( int  elements)
inline

Definition at line 2322 of file runtime.cc.

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

Definition at line 2370 of file runtime.cc.

References FACTORY, and Smi::FromInt().

Referenced by ReplacementStringBuilder::GetParts(), and v8::internal::RUNTIME_FUNCTION().

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

Definition at line 2376 of file runtime.cc.

References FACTORY, and Smi::FromInt().


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