Index: src/runtime.cc |
=================================================================== |
--- src/runtime.cc (revision 2326) |
+++ src/runtime.cc (working copy) |
@@ -168,7 +168,7 @@ |
} |
} |
} else { |
- Dictionary* element_dictionary = copy->element_dictionary(); |
+ NumberDictionary* element_dictionary = copy->element_dictionary(); |
int capacity = element_dictionary->Capacity(); |
for (int i = 0; i < capacity; i++) { |
Object* k = element_dictionary->KeyAt(i); |
@@ -2610,9 +2610,9 @@ |
} |
} else { |
// Attempt dictionary lookup. |
- Dictionary* dictionary = receiver->property_dictionary(); |
- int entry = dictionary->FindStringEntry(key); |
- if ((entry != Dictionary::kNotFound) && |
+ StringDictionary* dictionary = receiver->property_dictionary(); |
+ int entry = dictionary->FindEntry(key); |
+ if ((entry != StringDictionary::kNotFound) && |
(dictionary->DetailsAt(entry).type() == NORMAL)) { |
Object* value = dictionary->ValueAt(entry); |
if (receiver->IsGlobalObject()) { |
@@ -5136,8 +5136,8 @@ |
storage_->set(index, *elm); |
} else { |
- Handle<Dictionary> dict = Handle<Dictionary>::cast(storage_); |
- Handle<Dictionary> result = |
+ Handle<NumberDictionary> dict = Handle<NumberDictionary>::cast(storage_); |
+ Handle<NumberDictionary> result = |
Factory::DictionaryAtNumberPut(dict, index, elm); |
if (!result.is_identical_to(dict)) |
storage_ = result; |
@@ -5185,7 +5185,7 @@ |
} |
} else { |
- Handle<Dictionary> dict(receiver->element_dictionary()); |
+ Handle<NumberDictionary> dict(receiver->element_dictionary()); |
uint32_t capacity = dict->Capacity(); |
for (uint32_t j = 0; j < capacity; j++) { |
Handle<Object> k(dict->KeyAt(j)); |
@@ -5339,7 +5339,7 @@ |
uint32_t at_least_space_for = estimate_nof_elements + |
(estimate_nof_elements >> 2); |
storage = Handle<FixedArray>::cast( |
- Factory::NewDictionary(at_least_space_for)); |
+ Factory::NewNumberDictionary(at_least_space_for)); |
} |
Handle<Object> len = Factory::NewNumber(static_cast<double>(result_length)); |
@@ -5402,7 +5402,7 @@ |
CONVERT_CHECKED(JSArray, array, args[0]); |
HeapObject* elements = array->elements(); |
if (elements->IsDictionary()) { |
- return Smi::FromInt(Dictionary::cast(elements)->NumberOfElements()); |
+ return Smi::FromInt(NumberDictionary::cast(elements)->NumberOfElements()); |
} else { |
return array->length(); |
} |