v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <transitions.h>
Public Member Functions | |
String * | GetKey (int transition_number) |
void | SetKey (int transition_number, String *value) |
Object ** | GetKeySlot (int transition_number) |
int | GetSortedKeyIndex (int transition_number) |
String * | GetSortedKey (int transition_number) |
Map * | GetTarget (int transition_number) |
void | SetTarget (int transition_number, Map *target) |
PropertyDetails | GetTargetDetails (int transition_number) |
Map * | elements_transition () |
void | set_elements_transition (Map *target, WriteBarrierMode mode=UPDATE_WRITE_BARRIER) |
bool | HasElementsTransition () |
void | ClearElementsTransition () |
Object * | back_pointer_storage () |
void | set_back_pointer_storage (Object *back_pointer, WriteBarrierMode mode=UPDATE_WRITE_BARRIER) |
FixedArray * | GetPrototypeTransitions () |
void | SetPrototypeTransitions (FixedArray *prototype_transitions, WriteBarrierMode mode=UPDATE_WRITE_BARRIER) |
Object ** | GetPrototypeTransitionsSlot () |
bool | HasPrototypeTransitions () |
HeapObject * | UncheckedPrototypeTransitions () |
int | number_of_transitions () |
int | number_of_entries () |
MUST_USE_RESULT MaybeObject * | ExtendToFullTransitionArray () |
MUST_USE_RESULT MaybeObject * | CopyInsert (String *name, Map *target) |
void | NoIncrementalWriteBarrierCopyFrom (TransitionArray *origin, int origin_transition, int target_transition) |
int | Search (String *name) |
bool | IsSimpleTransition () |
bool | IsFullTransitionArray () |
STATIC_ASSERT (kSimpleTransitionIndex!=kNotFound) | |
Public Member Functions inherited from FixedArray | |
Object * | get (int index) |
void | set (int index, Object *value) |
bool | is_the_hole (int index) |
void | set (int index, Smi *value) |
void | set (int index, Object *value, WriteBarrierMode mode) |
void | set_undefined (int index) |
void | set_undefined (Heap *heap, int index) |
void | set_null (int index) |
void | set_null (Heap *heap, int index) |
void | set_the_hole (int index) |
void | set_unchecked (int index, Smi *value) |
void | set_null_unchecked (Heap *heap, int index) |
void | set_unchecked (Heap *heap, int index, Object *value, WriteBarrierMode mode) |
Object ** | data_start () |
Object ** | GetFirstElementAddress () |
bool | ContainsOnlySmisOrHoles () |
MUST_USE_RESULT MaybeObject * | Copy () |
MUST_USE_RESULT MaybeObject * | CopySize (int new_length) |
MUST_USE_RESULT MaybeObject * | AddKeysFromJSArray (JSArray *array) |
MUST_USE_RESULT MaybeObject * | UnionOfKeys (FixedArray *other) |
void | CopyTo (int pos, FixedArray *dest, int dest_pos, int len) |
void | SwapPairs (FixedArray *numbers, int i, int j) |
void | SortPairs (FixedArray *numbers, uint32_t len) |
Public Member Functions inherited from FixedArrayBase | |
int | length () |
void | set_length (int value) |
Public Member Functions inherited from HeapObject | |
Map * | map () |
void | set_map (Map *value) |
void | set_map_no_write_barrier (Map *value) |
MapWord | map_word () |
void | set_map_word (MapWord map_word) |
Heap * | GetHeap () |
Isolate * | GetIsolate () |
Address | address () |
void | Iterate (ObjectVisitor *v) |
void | IterateBody (InstanceType type, int object_size, ObjectVisitor *v) |
int | Size () |
int | SizeFromMap (Map *map) |
WriteBarrierMode | GetWriteBarrierMode (const AssertNoAllocation &) |
void | HeapObjectShortPrint (StringStream *accumulator) |
STATIC_CHECK (kMapOffset==Internals::kHeapObjectMapOffset) | |
Public Member Functions inherited from Object | |
bool | IsObject () |
bool | IsFixedArrayBase () |
bool | IsInstanceOf (FunctionTemplateInfo *type) |
bool | IsStruct () |
INLINE (bool IsSpecObject()) | |
INLINE (bool IsSpecFunction()) | |
INLINE (bool IsUndefined()) | |
INLINE (bool IsNull()) | |
INLINE (bool IsTheHole()) | |
INLINE (bool IsTrue()) | |
INLINE (bool IsFalse()) | |
bool | IsArgumentsMarker () |
bool | NonFailureIsHeapObject () |
bool | IsFiller () |
double | Number () |
bool | IsNaN () |
bool | HasValidElements () |
bool | HasSpecificClassOf (String *name) |
MUST_USE_RESULT MaybeObject * | ToObject () |
Object * | ToBoolean () |
MUST_USE_RESULT MaybeObject * | ToObject (Context *native_context) |
MUST_USE_RESULT MaybeObject * | ToSmi () |
void | Lookup (String *name, LookupResult *result) |
MUST_USE_RESULT MaybeObject * | GetProperty (String *key) |
MUST_USE_RESULT MaybeObject * | GetProperty (String *key, PropertyAttributes *attributes) |
MUST_USE_RESULT MaybeObject * | GetPropertyWithReceiver (Object *receiver, String *key, PropertyAttributes *attributes) |
MUST_USE_RESULT MaybeObject * | GetProperty (Object *receiver, LookupResult *result, String *key, PropertyAttributes *attributes) |
MUST_USE_RESULT MaybeObject * | GetPropertyWithDefinedGetter (Object *receiver, JSReceiver *getter) |
MUST_USE_RESULT MaybeObject * | GetElement (uint32_t index) |
Object * | GetElementNoExceptionThrown (uint32_t index) |
MUST_USE_RESULT MaybeObject * | GetElementWithReceiver (Object *receiver, uint32_t index) |
Object * | GetPrototype () |
MUST_USE_RESULT MaybeObject * | GetHash (CreationFlag flag) |
bool | SameValue (Object *other) |
bool | ToArrayIndex (uint32_t *index) |
bool | IsStringObjectWithCharacterAt (uint32_t index) |
void | VerifyApiCallResultType () |
void | ShortPrint () |
void | ShortPrint (FILE *out) |
void | ShortPrint (StringStream *accumulator) |
Static Public Member Functions | |
static MUST_USE_RESULT MaybeObject * | NewWith (SimpleTransitionFlag flag, String *key, Map *target, Object *back_pointer) |
static MUST_USE_RESULT MaybeObject * | Allocate (int number_of_transitions) |
static TransitionArray * | cast (Object *obj) |
Static Public Member Functions inherited from FixedArray | |
static int | SizeFor (int length) |
static int | OffsetOfElementAt (int index) |
static FixedArray * | cast (Object *obj) |
Static Public Member Functions inherited from FixedArrayBase | |
static FixedArrayBase * | cast (Object *object) |
Static Public Member Functions inherited from HeapObject | |
static HeapObject * | FromAddress (Address address) |
static Object ** | RawField (HeapObject *obj, int offset) |
static HeapObject * | cast (Object *obj) |
Static Public Member Functions inherited from Object | |
static Handle< Object > | GetProperty (Handle< Object > object, Handle< Object > receiver, LookupResult *result, Handle< String > key, PropertyAttributes *attributes) |
static Handle< Object > | GetElement (Handle< Object > object, uint32_t index) |
static Object * | cast (Object *value) |
Static Public Attributes | |
static const int | kNotFound = -1 |
static const int | kBackPointerStorageIndex = 0 |
static const int | kElementsTransitionIndex = 1 |
static const int | kPrototypeTransitionsIndex = 2 |
static const int | kFirstIndex = 3 |
static const int | kSimpleTransitionTarget = 1 |
static const int | kSimpleTransitionSize = 2 |
static const int | kSimpleTransitionIndex = 0 |
static const int | kBackPointerStorageOffset = FixedArray::kHeaderSize |
static const int | kElementsTransitionOffset |
static const int | kPrototypeTransitionsOffset |
static const int | kTransitionKey = 0 |
static const int | kTransitionTarget = 1 |
static const int | kTransitionSize = 2 |
static const int | kMaxNumberOfTransitions = 1024 + 512 |
Static Public Attributes inherited from FixedArray | |
static const int | kMaxSize = 128 * MB * kPointerSize |
static const int | kMaxLength = (kMaxSize - kHeaderSize) / kPointerSize |
Static Public Attributes inherited from FixedArrayBase | |
static const int | kLengthOffset = HeapObject::kHeaderSize |
static const int | kHeaderSize = kLengthOffset + kPointerSize |
Static Public Attributes inherited from HeapObject | |
static const int | kMapOffset = Object::kHeaderSize |
static const int | kHeaderSize = kMapOffset + kPointerSize |
Static Public Attributes inherited from Object | |
static const int | kHeaderSize = 0 |
Additional Inherited Members | |
Protected Member Functions inherited from HeapObject | |
void | IteratePointers (ObjectVisitor *v, int start, int end) |
void | IteratePointer (ObjectVisitor *v, int offset) |
Static Protected Member Functions inherited from FixedArray | |
static void | NoWriteBarrierSet (FixedArray *array, int index, Object *value) |
static void | NoIncrementalWriteBarrierSet (FixedArray *array, int index, Object *value) |
Definition at line 59 of file transitions.h.
|
static |
Definition at line 49 of file transitions.cc.
References Smi::FromInt(), TransitionArray::kElementsTransitionIndex, TransitionArray::kPrototypeTransitionsIndex, and FixedArray::set().
Referenced by TransitionArray::CopyInsert(), TransitionArray::ExtendToFullTransitionArray(), and TransitionArray::NewWith().
|
inline |
Definition at line 87 of file transitions-inl.h.
References TransitionArray::kBackPointerStorageIndex.
Referenced by TransitionArray::CopyInsert(), TransitionArray::ExtendToFullTransitionArray(), and Map::GetBackPointer().
|
inlinestatic |
Definition at line 54 of file transitions-inl.h.
References ASSERT.
Referenced by Map::GetBackPointer(), and Map::SetBackPointer().
|
inline |
Definition at line 66 of file transitions-inl.h.
References Smi::FromInt(), TransitionArray::kElementsTransitionOffset, and WRITE_FIELD.
Referenced by Map::ClearNonLiveTransitions().
Definition at line 110 of file transitions.cc.
References TransitionArray::Allocate(), TransitionArray::back_pointer_storage(), TransitionArray::elements_transition(), TransitionArray::GetKey(), TransitionArray::GetPrototypeTransitions(), TransitionArray::HasElementsTransition(), TransitionArray::HasPrototypeTransitions(), TransitionArray::kNotFound, TransitionArray::NoIncrementalWriteBarrierCopyFrom(), TransitionArray::number_of_transitions(), TransitionArray::Search(), TransitionArray::set_back_pointer_storage(), TransitionArray::set_elements_transition(), and TransitionArray::SetPrototypeTransitions().
|
inline |
Definition at line 60 of file transitions-inl.h.
References Map::cast(), and TransitionArray::kElementsTransitionIndex.
Referenced by Map::ClearNonLiveTransitions(), and TransitionArray::CopyInsert().
MaybeObject * ExtendToFullTransitionArray | ( | ) |
Definition at line 94 of file transitions.cc.
References TransitionArray::Allocate(), ASSERT, TransitionArray::back_pointer_storage(), TransitionArray::IsFullTransitionArray(), TransitionArray::kSimpleTransitionIndex, TransitionArray::NoIncrementalWriteBarrierCopyFrom(), TransitionArray::number_of_transitions(), and TransitionArray::set_back_pointer_storage().
|
inline |
Definition at line 146 of file transitions-inl.h.
References ASSERT, String::cast(), TransitionArray::GetTarget(), TransitionArray::IsSimpleTransition(), TransitionArray::kSimpleTransitionIndex, Map::LastAdded(), and TransitionArray::number_of_transitions().
Referenced by Map::ClearNonLiveTransitions(), TransitionArray::CopyInsert(), TransitionArray::GetSortedKey(), TransitionArray::NoIncrementalWriteBarrierCopyFrom(), and TransitionArray::Search().
|
inline |
Definition at line 137 of file transitions-inl.h.
References ASSERT, TransitionArray::IsSimpleTransition(), TransitionArray::number_of_transitions(), FixedArray::OffsetOfElementAt(), and HeapObject::RawField().
Referenced by Map::ClearNonLiveTransitions(), and StaticMarkingVisitor< StaticVisitor >::MarkTransitionArray().
|
inline |
Definition at line 107 of file transitions-inl.h.
References ASSERT, FixedArray::cast(), TransitionArray::IsFullTransitionArray(), and TransitionArray::kPrototypeTransitionsIndex.
Referenced by TransitionArray::CopyInsert().
|
inline |
Definition at line 131 of file transitions-inl.h.
References TransitionArray::kPrototypeTransitionsOffset, and HeapObject::RawField().
Referenced by StaticMarkingVisitor< StaticVisitor >::MarkTransitionArray().
|
inline |
Definition at line 67 of file transitions.h.
References TransitionArray::GetKey().
|
inline |
Definition at line 65 of file transitions.h.
|
inline |
Definition at line 165 of file transitions-inl.h.
References ASSERT, Map::cast(), TransitionArray::IsSimpleTransition(), TransitionArray::kSimpleTransitionIndex, TransitionArray::kSimpleTransitionTarget, and TransitionArray::number_of_transitions().
Referenced by Map::ClearNonLiveTransitions(), TransitionArray::GetKey(), TransitionArray::GetTargetDetails(), BASE_EMBEDDED< Visitor >::GetTransitionTarget(), and TransitionArray::NoIncrementalWriteBarrierCopyFrom().
|
inline |
Definition at line 185 of file transitions-inl.h.
References DescriptorArray::GetDetails(), TransitionArray::GetTarget(), Map::LastAdded(), and HeapObject::map().
Referenced by BASE_EMBEDDED< Visitor >::GetTransitionDetails().
|
inline |
Definition at line 71 of file transitions-inl.h.
References Smi::FromInt(), TransitionArray::IsFullTransitionArray(), and TransitionArray::kElementsTransitionIndex.
Referenced by Map::ClearNonLiveTransitions(), and TransitionArray::CopyInsert().
|
inline |
Definition at line 101 of file transitions-inl.h.
References Smi::FromInt(), TransitionArray::IsFullTransitionArray(), and TransitionArray::kPrototypeTransitionsIndex.
Referenced by TraversableMap::ChildIteratorNext(), TransitionArray::CopyInsert(), StaticMarkingVisitor< StaticVisitor >::MarkTransitionArray(), and TransitionArray::UncheckedPrototypeTransitions().
|
inline |
Definition at line 131 of file transitions.h.
References TransitionArray::kFirstIndex, and FixedArrayBase::length().
Referenced by TransitionArray::ExtendToFullTransitionArray(), TransitionArray::GetPrototypeTransitions(), TransitionArray::HasElementsTransition(), TransitionArray::HasPrototypeTransitions(), TransitionArray::set_elements_transition(), and TransitionArray::SetPrototypeTransitions().
|
inline |
Definition at line 130 of file transitions.h.
References TransitionArray::kSimpleTransitionSize, and FixedArrayBase::length().
Referenced by Map::ClearNonLiveTransitions(), TransitionArray::GetKey(), TransitionArray::GetKeySlot(), TransitionArray::GetTarget(), StaticMarkingVisitor< StaticVisitor >::MarkTransitionArray(), TransitionArray::number_of_transitions(), TransitionArray::Search(), TransitionArray::SetKey(), and TransitionArray::SetTarget().
|
static |
Definition at line 73 of file transitions.cc.
References TransitionArray::Allocate(), TransitionArray::kSimpleTransitionSize, TransitionArray::kSimpleTransitionTarget, FixedArray::set(), TransitionArray::set_back_pointer_storage(), and v8::internal::SIMPLE_TRANSITION.
Referenced by Map::AddTransition().
|
inline |
Definition at line 59 of file transitions.cc.
References TransitionArray::GetKey(), and TransitionArray::GetTarget().
Referenced by TransitionArray::CopyInsert(), and TransitionArray::ExtendToFullTransitionArray().
|
inline |
Definition at line 103 of file transitions.h.
References TransitionArray::number_of_transitions().
|
inline |
Definition at line 97 of file transitions.h.
References TransitionArray::IsSimpleTransition(), TransitionArray::kFirstIndex, TransitionArray::kTransitionSize, and FixedArrayBase::length().
Referenced by Map::ClearNonLiveTransitions(), TransitionArray::CopyInsert(), TransitionArray::ExtendToFullTransitionArray(), TransitionArray::GetKey(), TransitionArray::GetKeySlot(), TransitionArray::GetTarget(), StaticMarkingVisitor< StaticVisitor >::MarkTransitionArray(), TransitionArray::number_of_entries(), TransitionArray::SetKey(), and TransitionArray::SetTarget().
|
inline |
Definition at line 193 of file transitions-inl.h.
References String::Equals(), TransitionArray::GetKey(), TransitionArray::IsSimpleTransition(), TransitionArray::kNotFound, and TransitionArray::kSimpleTransitionIndex.
Referenced by TransitionArray::CopyInsert(), and Map::LookupTransition().
|
inline |
Definition at line 92 of file transitions-inl.h.
References CONDITIONAL_WRITE_BARRIER, HeapObject::GetHeap(), TransitionArray::kBackPointerStorageOffset, and WRITE_FIELD.
Referenced by TransitionArray::CopyInsert(), TransitionArray::ExtendToFullTransitionArray(), TransitionArray::NewWith(), and Map::SetBackPointer().
|
inline |
Definition at line 77 of file transitions-inl.h.
References ASSERT, CONDITIONAL_WRITE_BARRIER, HeapObject::GetHeap(), TransitionArray::IsFullTransitionArray(), TransitionArray::kElementsTransitionOffset, and WRITE_FIELD.
Referenced by TransitionArray::CopyInsert().
|
inline |
Definition at line 158 of file transitions-inl.h.
References ASSERT, TransitionArray::IsSimpleTransition(), TransitionArray::number_of_transitions(), and FixedArray::set().
Referenced by Map::ClearNonLiveTransitions().
|
inline |
Definition at line 120 of file transitions-inl.h.
References ASSERT, CONDITIONAL_WRITE_BARRIER, HeapObject::GetHeap(), TransitionArray::IsFullTransitionArray(), TransitionArray::kPrototypeTransitionsOffset, and WRITE_FIELD.
Referenced by TransitionArray::CopyInsert().
|
inline |
Definition at line 175 of file transitions-inl.h.
References ASSERT, TransitionArray::IsSimpleTransition(), TransitionArray::kSimpleTransitionIndex, TransitionArray::kSimpleTransitionTarget, TransitionArray::number_of_transitions(), and FixedArray::set().
Referenced by Map::ClearNonLiveTransitions().
STATIC_ASSERT | ( | kSimpleTransitionIndex! | = kNotFound | ) |
|
inline |
Definition at line 114 of file transitions-inl.h.
References ASSERT, TransitionArray::HasPrototypeTransitions(), and TransitionArray::kPrototypeTransitionsIndex.
Referenced by TraversableMap::ChildIteratorNext().
|
static |
Definition at line 139 of file transitions.h.
Referenced by TransitionArray::back_pointer_storage().
|
static |
Definition at line 152 of file transitions.h.
Referenced by TransitionArray::set_back_pointer_storage().
|
static |
Definition at line 142 of file transitions.h.
Referenced by TransitionArray::Allocate(), TransitionArray::elements_transition(), and TransitionArray::HasElementsTransition().
|
static |
Definition at line 155 of file transitions.h.
Referenced by TransitionArray::ClearElementsTransition(), and TransitionArray::set_elements_transition().
|
static |
Definition at line 144 of file transitions.h.
Referenced by TransitionArray::IsFullTransitionArray(), and TransitionArray::number_of_transitions().
|
static |
Definition at line 181 of file transitions.h.
|
static |
Definition at line 137 of file transitions.h.
Referenced by TransitionArray::CopyInsert(), Map::LookupTransition(), TransitionArray::Search(), and JSObject::TryTransitionToField().
|
static |
Definition at line 143 of file transitions.h.
Referenced by TransitionArray::Allocate(), TransitionArray::GetPrototypeTransitions(), TransitionArray::HasPrototypeTransitions(), and TransitionArray::UncheckedPrototypeTransitions().
|
static |
Definition at line 157 of file transitions.h.
Referenced by TransitionArray::GetPrototypeTransitionsSlot(), and TransitionArray::SetPrototypeTransitions().
|
static |
Definition at line 149 of file transitions.h.
Referenced by TransitionArray::ExtendToFullTransitionArray(), TransitionArray::GetKey(), TransitionArray::GetTarget(), TransitionArray::Search(), and TransitionArray::SetTarget().
|
static |
Definition at line 148 of file transitions.h.
Referenced by TransitionArray::IsSimpleTransition(), and TransitionArray::NewWith().
|
static |
Definition at line 147 of file transitions.h.
Referenced by TransitionArray::GetTarget(), TransitionArray::NewWith(), and TransitionArray::SetTarget().
|
static |
Definition at line 161 of file transitions.h.
|
static |
Definition at line 163 of file transitions.h.
Referenced by Map::CanHaveMoreTransitions(), Map::ClearNonLiveTransitions(), and TransitionArray::number_of_transitions().
|
static |
Definition at line 162 of file transitions.h.