Rename seeded_number_dictionary_map.

Now that we only have the seeded variant, let's call it
number_dictionary_map. It's cleaner.

R=mstarzinger@chromium.org

Change-Id: I3e36ecb15140b5def835ca8ebe50ab829a21892d
Reviewed-on: https://chromium-review.googlesource.com/756749
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49183}
This commit is contained in:
Yang Guo 2017-11-07 12:51:23 +01:00 committed by Commit Bot
parent a0d1e58fdd
commit 84294418f4
3 changed files with 4 additions and 4 deletions

View File

@ -106,7 +106,7 @@ using v8::MemoryPressureLevel;
V(Map, ordered_hash_table_map, OrderedHashTableMap) \
V(Map, name_dictionary_map, NameDictionaryMap) \
V(Map, global_dictionary_map, GlobalDictionaryMap) \
V(Map, seeded_number_dictionary_map, NumberDictionaryMap) \
V(Map, number_dictionary_map, NumberDictionaryMap) \
V(Map, sloppy_arguments_elements_map, SloppyArgumentsElementsMap) \
V(Map, small_ordered_hash_map_map, SmallOrderedHashMapMap) \
V(Map, small_ordered_hash_set_map, SmallOrderedHashSetMap) \

View File

@ -290,7 +290,7 @@ bool Heap::CreateInitialMaps() {
ALLOCATE_VARSIZE_MAP(HASH_TABLE_TYPE, ordered_hash_table)
ALLOCATE_VARSIZE_MAP(HASH_TABLE_TYPE, name_dictionary)
ALLOCATE_VARSIZE_MAP(HASH_TABLE_TYPE, global_dictionary)
ALLOCATE_VARSIZE_MAP(HASH_TABLE_TYPE, seeded_number_dictionary)
ALLOCATE_VARSIZE_MAP(HASH_TABLE_TYPE, number_dictionary)
ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, function_context)
ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, catch_context)

View File

@ -433,7 +433,7 @@ bool HeapObject::IsNameDictionary() const {
}
bool HeapObject::IsNumberDictionary() const {
return map() == GetHeap()->seeded_number_dictionary_map();
return map() == GetHeap()->number_dictionary_map();
}
bool HeapObject::IsStringTable() const { return IsHashTable(); }
@ -4845,7 +4845,7 @@ uint32_t NumberDictionaryShape::HashForObject(Isolate* isolate, Object* other) {
}
Map* NumberDictionaryShape::GetMap(Isolate* isolate) {
return isolate->heap()->seeded_number_dictionary_map();
return isolate->heap()->number_dictionary_map();
}
Handle<Object> NumberDictionaryShape::AsHandle(Isolate* isolate, uint32_t key) {