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
ArrayConcatVisitor Class Reference

Public Member Functions

 ArrayConcatVisitor (Isolate *isolate, Handle< FixedArray > storage, bool fast_elements)
 
 ~ArrayConcatVisitor ()
 
void visit (uint32_t i, Handle< Object > elm)
 
void increase_index_offset (uint32_t delta)
 
Handle< JSArrayToArray ()
 

Detailed Description

A simple visitor visits every element of Array's. The backend storage can be a fixed array for fast elements case, or a dictionary for sparse array. Since Dictionary is a subtype of FixedArray, the class can be used by both fast and slow cases. The second parameter of the constructor, fast_elements, specifies whether the storage is a FixedArray or Dictionary.

An index limit is used to deal with the situation that a result array length overflows 32-bit non-negative integer.

Definition at line 9514 of file runtime.cc.

Constructor & Destructor Documentation

ArrayConcatVisitor ( Isolate isolate,
Handle< FixedArray storage,
bool  fast_elements 
)
inline

Definition at line 9516 of file runtime.cc.

~ArrayConcatVisitor ( )
inline

Definition at line 9525 of file runtime.cc.

Member Function Documentation

void increase_index_offset ( uint32_t  delta)
inline

Definition at line 9557 of file runtime.cc.

References JSObject::kMaxElementCount.

Referenced by v8::internal::RUNTIME_FUNCTION().


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