|
| int | FindEntry (Handle< Object > key, int hash) |
| |
| int | FindEntry (Handle< Object > key) |
| |
| int | NumberOfElements () |
| |
| int | NumberOfDeletedElements () |
| |
| int | UsedCapacity () |
| |
| int | NumberOfBuckets () |
| |
| int | AddEntry (int hash) |
| |
| void | RemoveEntry (int entry) |
| |
| int | EntryToIndex (int entry) |
| |
| Object * | KeyAt (int entry) |
| |
| bool | IsObsolete () |
| |
| Derived * | NextTable () |
| |
| int | RemovedIndexAt (int index) |
| |
| 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_null (int index) |
| |
| void | set_the_hole (int index) |
| |
| Object ** | GetFirstElementAddress () |
| |
| bool | ContainsOnlySmisOrHoles () |
| |
| Object ** | data_start () |
| |
| void | FillWithHoles (int from, int to) |
| |
| void | Shrink (int length) |
| |
| void | CopyTo (int pos, FixedArray *dest, int dest_pos, int len) |
| |
| Object ** | RawFieldOfElementAt (int index) |
| |
| void | SwapPairs (FixedArray *numbers, int i, int j) |
| |
| void | SortPairs (FixedArray *numbers, uint32_t len) |
| |
| int | length () const |
| |
| void | set_length (int value) |
| |
| int | synchronized_length () const |
| |
| void | synchronized_set_length (int value) |
| |
| Map * | map () const |
| |
| void | set_map (Map *value) |
| |
| void | set_map_no_write_barrier (Map *value) |
| |
| Map * | synchronized_map () |
| |
| MapWord | synchronized_map_word () const |
| |
| void | synchronized_set_map (Map *value) |
| |
| void | synchronized_set_map_no_write_barrier (Map *value) |
| |
| void | synchronized_set_map_word (MapWord map_word) |
| |
| MapWord | map_word () const |
| |
| void | set_map_word (MapWord map_word) |
| |
| Heap * | GetHeap () const |
| |
| Isolate * | GetIsolate () const |
| |
| Address | address () |
| |
| void | Iterate (ObjectVisitor *v) |
| |
| void | IterateBody (InstanceType type, int object_size, ObjectVisitor *v) |
| |
| int | Size () |
| |
| bool | MayContainRawValues () |
| |
| int | SizeFromMap (Map *map) |
| |
| WriteBarrierMode | GetWriteBarrierMode (const DisallowHeapAllocation &promise) |
| |
| void | HeapObjectShortPrint (OStream &os) |
| |
| | STATIC_ASSERT (kMapOffset==Internals::kHeapObjectMapOffset) |
| |
| bool | IsObject () const |
| |
| | INLINE (bool IsFixedArrayBase() const) |
| |
| | INLINE (bool IsExternal() const) |
| |
| | INLINE (bool IsAccessorInfo() const) |
| |
| | INLINE (bool IsStruct() const) |
| |
| | INLINE (bool IsSpecObject()) const |
| |
| | INLINE (bool IsSpecFunction()) const |
| |
| | INLINE (bool IsTemplateInfo()) const |
| |
| | INLINE (bool IsNameDictionary() const) |
| |
| | INLINE (bool IsSeededNumberDictionary() const) |
| |
| | INLINE (bool IsUnseededNumberDictionary() const) |
| |
| | INLINE (bool IsOrderedHashSet() const) |
| |
| | INLINE (bool IsOrderedHashMap() const) |
| |
| bool | IsCallable () const |
| |
| | INLINE (bool IsUndefined() const) |
| |
| | INLINE (bool IsNull() const) |
| |
| | INLINE (bool IsTheHole() const) |
| |
| | INLINE (bool IsException() const) |
| |
| | INLINE (bool IsUninitialized() const) |
| |
| | INLINE (bool IsTrue() const) |
| |
| | INLINE (bool IsFalse() const) |
| |
| | INLINE (bool IsArgumentsMarker() const) |
| |
| | INLINE (bool IsFiller() const) |
| |
| double | Number () |
| |
| | INLINE (bool IsNaN() const) |
| |
| | INLINE (bool IsMinusZero() const) |
| |
| bool | ToInt32 (int32_t *value) |
| |
| bool | ToUint32 (uint32_t *value) |
| |
| Representation | OptimalRepresentation () |
| |
| bool | FitsRepresentation (Representation representation) |
| |
| Handle< HeapType > | OptimalType (Isolate *isolate, Representation representation) |
| |
| bool | HasValidElements () |
| |
| bool | HasSpecificClassOf (String *name) |
| |
| bool | BooleanValue () |
| |
| Object * | GetHash () |
| |
| bool | SameValue (Object *other) |
| |
| bool | SameValueZero (Object *other) |
| |
| bool | ToArrayIndex (uint32_t *index) |
| |
| bool | IsStringObjectWithCharacterAt (uint32_t index) |
| |
| void | VerifyApiCallResultType () |
| |
| void | ShortPrint (FILE *out=stdout) |
| |
| void | ShortPrint (StringStream *accumulator) |
| |
|
| static Handle< Derived > | Allocate (Isolate *isolate, int capacity, PretenureFlag pretenure=NOT_TENURED) |
| |
| static Handle< Derived > | EnsureGrowable (Handle< Derived > table) |
| |
| static Handle< Derived > | Shrink (Handle< Derived > table) |
| |
| static Handle< Derived > | Clear (Handle< Derived > table) |
| |
| static Handle< Derived > | Remove (Handle< Derived > table, Handle< Object > key, bool *was_present) |
| |
| static Handle< Object > | get (Handle< FixedArray > array, int index) |
| |
| static Handle< FixedArray > | CopySize (Handle< FixedArray > array, int new_length, PretenureFlag pretenure=NOT_TENURED) |
| |
| static MUST_USE_RESULT MaybeHandle< FixedArray > | AddKeysFromArrayLike (Handle< FixedArray > content, Handle< JSObject > array) |
| |
| static MUST_USE_RESULT MaybeHandle< FixedArray > | UnionOfKeys (Handle< FixedArray > first, Handle< FixedArray > second) |
| |
| static int | SizeFor (int length) |
| |
| static int | OffsetOfElementAt (int index) |
| |
| static HeapObject * | FromAddress (Address address) |
| |
| static Object ** | RawField (HeapObject *obj, int offset) |
| |
| static void | UpdateMapCodeCache (Handle< HeapObject > object, Handle< Name > name, Handle< Code > code) |
| |
| static Handle< Object > | NewStorageFor (Isolate *isolate, Handle< Object > object, Representation representation) |
| |
| static Handle< Object > | WrapForRead (Isolate *isolate, Handle< Object > object, Representation representation) |
| |
| static MaybeHandle< JSReceiver > | ToObject (Isolate *isolate, Handle< Object > object) |
| |
| static MaybeHandle< JSReceiver > | ToObject (Isolate *isolate, Handle< Object > object, Handle< Context > context) |
| |
| static MUST_USE_RESULT MaybeHandle< Smi > | ToSmi (Isolate *isolate, Handle< Object > object) |
| |
| static MUST_USE_RESULT MaybeHandle< Object > | GetProperty (LookupIterator *it) |
| |
| static MUST_USE_RESULT MaybeHandle< Object > | SetProperty (Handle< Object > object, Handle< Name > key, Handle< Object > value, StrictMode strict_mode, StoreFromKeyed store_mode=MAY_BE_STORE_FROM_KEYED) |
| |
| static MUST_USE_RESULT MaybeHandle< Object > | SetProperty (LookupIterator *it, Handle< Object > value, StrictMode strict_mode, StoreFromKeyed store_mode, StorePropertyMode data_store_mode=NORMAL_PROPERTY) |
| |
| static MUST_USE_RESULT MaybeHandle< Object > | WriteToReadOnlyProperty (LookupIterator *it, Handle< Object > value, StrictMode strict_mode) |
| |
| static Handle< Object > | SetDataProperty (LookupIterator *it, Handle< Object > value) |
| |
| static MUST_USE_RESULT MaybeHandle< Object > | AddDataProperty (LookupIterator *it, Handle< Object > value, PropertyAttributes attributes, StrictMode strict_mode, StoreFromKeyed store_mode) |
| |
| static MUST_USE_RESULT MaybeHandle< Object > | GetPropertyOrElement (Handle< Object > object, Handle< Name > key) |
| |
| static MUST_USE_RESULT MaybeHandle< Object > | GetProperty (Isolate *isolate, Handle< Object > object, const char *key) |
| |
| static MUST_USE_RESULT MaybeHandle< Object > | GetProperty (Handle< Object > object, Handle< Name > key) |
| |
| static MUST_USE_RESULT MaybeHandle< Object > | GetPropertyWithAccessor (Handle< Object > receiver, Handle< Name > name, Handle< JSObject > holder, Handle< Object > structure) |
| |
| static MUST_USE_RESULT MaybeHandle< Object > | SetPropertyWithAccessor (Handle< Object > receiver, Handle< Name > name, Handle< Object > value, Handle< JSObject > holder, Handle< Object > structure, StrictMode strict_mode) |
| |
| static MUST_USE_RESULT MaybeHandle< Object > | GetPropertyWithDefinedGetter (Handle< Object > receiver, Handle< JSReceiver > getter) |
| |
| static MUST_USE_RESULT MaybeHandle< Object > | SetPropertyWithDefinedSetter (Handle< Object > receiver, Handle< JSReceiver > setter, Handle< Object > value) |
| |
| static MUST_USE_RESULT MaybeHandle< Object > | GetElement (Isolate *isolate, Handle< Object > object, uint32_t index) |
| |
| static MUST_USE_RESULT MaybeHandle< Object > | GetElementWithReceiver (Isolate *isolate, Handle< Object > object, Handle< Object > receiver, uint32_t index) |
| |
| static Handle< Smi > | GetOrCreateHash (Isolate *isolate, Handle< Object > object) |
| |
template<class Derived, class Iterator, int entrysize>
class v8::internal::OrderedHashTable< Derived, Iterator, entrysize >
Definition at line 3834 of file objects.h.
template<class Derived , class Iterator , int entrysize>
Definition at line 15499 of file objects.cc.
15501 DCHECK(!table->IsObsolete());
15503 Handle<Derived> new_table =
15507 int nof = table->NumberOfElements();
15508 int nod = table->NumberOfDeletedElements();
15509 int new_buckets = new_table->NumberOfBuckets();
15511 int removed_holes_index = 0;
15513 for (
int old_entry = 0; old_entry < (nof + nod); ++old_entry) {
15514 Object* key = table->KeyAt(old_entry);
15515 if (key->IsTheHole()) {
15516 table->SetRemovedIndexAt(removed_holes_index++, old_entry);
15520 Object* hash = key->GetHash();
15521 int bucket = Smi::cast(hash)->value() & (new_buckets - 1);
15524 int new_index = new_table->EntryToIndex(new_entry);
15525 int old_index = table->EntryToIndex(old_entry);
15526 for (
int i = 0;
i < entrysize; ++
i) {
15527 Object* value = table->get(old_index +
i);
15528 new_table->set(new_index +
i, value);
15530 new_table->set(new_index +
kChainOffset, chain_entry);
15536 new_table->SetNumberOfElements(nof);
15537 table->SetNextTable(*new_table);
#define DCHECK_EQ(v1, v2)
References DCHECK, DCHECK_EQ, v8::internal::Smi::FromInt(), v8::internal::Object::GetHash(), v8::internal::NOT_TENURED, and v8::internal::TENURED.