v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
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< JSArray > | ToArray () |
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 9210 of file runtime.cc.
|
inline |
Definition at line 9212 of file runtime.cc.
|
inline |
Definition at line 9221 of file runtime.cc.
|
inline |
Definition at line 9253 of file runtime.cc.
References JSObject::kMaxElementCount.
Referenced by v8::internal::RUNTIME_FUNCTION().
Definition at line 9261 of file runtime.cc.
References v8::internal::DICTIONARY_ELEMENTS, Isolate::factory(), v8::internal::FAST_HOLEY_ELEMENTS, Factory::GetElementsTransitionMap(), Factory::NewJSArray(), and Factory::NewNumber().
Referenced by v8::internal::RUNTIME_FUNCTION().
Definition at line 9225 of file runtime.cc.
References ASSERT, SeededNumberDictionary::cast(), Factory::DictionaryAtNumberPut(), Isolate::factory(), Handle< T >::is_identical_to(), and JSObject::kMaxElementCount.
Referenced by v8::internal::RUNTIME_FUNCTION().