Home | History | Annotate | Download | only in src

Lines Matching refs:Dictionary

401   StringDictionary* dictionary = property_dictionary();
402 int entry = dictionary->FindEntry(name);
406 PropertyDetails details = dictionary->DetailsAt(entry);
418 JSGlobalPropertyCell::cast(dictionary->ValueAt(entry));
420 dictionary->DetailsAtPut(entry, details.AsDeleted());
422 return dictionary->DeleteProperty(entry, mode);
1423 StringDictionary* dictionary = property_dictionary();
1424 int old_index = dictionary->FindEntry(name);
1428 ASSERT(!dictionary->DetailsAt(old_index).IsTransition());
1429 new_enumeration_index = dictionary->DetailsAt(old_index).index();
1668 NumberDictionary* dictionary = JSObject::cast(pt)->element_dictionary();
1669 int entry = dictionary->FindEntry(index);
1671 Object* element = dictionary->ValueAt(entry);
1672 PropertyDetails details = dictionary->DetailsAt(entry);
1736 // found in the dictionary-mode objects.
1823 // dictionary. We make these short keys into symbols to avoid constantly
2123 StringDictionary* dictionary = StringDictionary::cast(obj);
2133 Object* result = dictionary->Add(descs->GetKey(i), value, d);
2135 dictionary = StringDictionary::cast(result);
2142 Object* result = dictionary->Add(descs->GetKey(i), value, d);
2144 dictionary = StringDictionary::cast(result);
2151 Object* result = dictionary->Add(descs->GetKey(i), value, d);
2153 dictionary = StringDictionary::cast(result);
2168 dictionary->SetNextEnumerationIndex(index);
2192 set_properties(dictionary);
2227 NumberDictionary* dictionary = NumberDictionary::cast(obj);
2233 Object* result = dictionary->AddNumberEntry(i, array->get(i), details);
2235 dictionary = NumberDictionary::cast(result);
2238 // Switch to using the dictionary as the backing storage for elements.
2239 set_elements(dictionary);
2312 NumberDictionary* dictionary = element_dictionary();
2313 int entry = dictionary->FindEntry(index);
2315 return dictionary->DeleteProperty(entry, mode);
2403 NumberDictionary* dictionary = element_dictionary();
2404 int entry = dictionary->FindEntry(index);
2406 return dictionary->DeleteProperty(entry, mode);
2743 NumberDictionary* dictionary = element_dictionary();
2744 int entry = dictionary->FindEntry(index);
2746 Object* result = dictionary->ValueAt(entry);
2747 PropertyDetails details = dictionary->DetailsAt(entry);
2793 // Update the dictionary with the new CALLBACKS property.
2801 // Set the potential new dictionary on the object.
2816 // Update the dictionary with the new CALLBACKS property.
2869 NumberDictionary* dictionary = js_object->element_dictionary();
2870 int entry = dictionary->FindEntry(index);
2872 Object* element = dictionary->ValueAt(entry);
2873 PropertyDetails details = dictionary->DetailsAt(entry);
5144 NumberDictionary* dictionary = NumberDictionary::cast(elements());
5145 for (int i = 0; i < dictionary->Capacity(); i++) {
5146 Object* key = dictionary->KeyAt(i);
5149 elems->set(entry, dictionary->ValueAt(i), mode);
5723 // Insert element in the dictionary.
5725 NumberDictionary* dictionary = NumberDictionary::cast(elms);
5727 int entry = dictionary->FindEntry(index);
5729 Object* element = dictionary->ValueAt(entry);
5730 PropertyDetails details = dictionary->DetailsAt(entry);
5745 dictionary->UpdateMaxNumberKey(index);
5746 dictionary->ValueAtPut(entry, value);
5757 Object* result = dictionary->AtNumberPut(index, value);
5851 NumberDictionary* dictionary = element_dictionary();
5852 int entry = dictionary->FindEntry(index);
5854 Object* element = dictionary->ValueAt(entry);
5855 PropertyDetails details = dictionary->DetailsAt(entry);
6008 NumberDictionary* dictionary = element_dictionary();
6009 int entry = dictionary->FindEntry(index);
6011 Object* element = dictionary->ValueAt(entry);
6012 PropertyDetails details = dictionary->DetailsAt(entry);
6061 NumberDictionary* dictionary = NumberDictionary::cast(elements());
6062 capacity = dictionary->Capacity();
6063 number_of_elements = dictionary->NumberOfElements();
6088 NumberDictionary* dictionary = NumberDictionary::cast(elements());
6092 // dictionary, we cannot go back to fast case.
6093 if (dictionary->requires_slow_elements()) return false;
6097 // If the dictionary backing storage takes up roughly half as much
6104 length = dictionary->max_number_key();
6106 return static_cast<uint32_t>(dictionary->Capacity()) >=
6118 void Dictionary<Shape, Key>::Print() {
6139 void Dictionary<Shape, Key>::CopyValuesTo(FixedArray* elements) {
6145 Object* k = Dictionary<Shape, Key>::KeyAt(i);
6146 if (Dictionary<Shape, Key>::IsKey(k)) {
6941 template class Dictionary<StringDictionaryShape, String*>;
6943 template class Dictionary<NumberDictionaryShape, uint32_t>;
6945 template Object* Dictionary<NumberDictionaryShape, uint32_t>::Allocate(
6948 template Object* Dictionary<StringDictionaryShape, String*>::Allocate(
6951 template Object* Dictionary<NumberDictionaryShape, uint32_t>::AtPut(
6954 template Object* Dictionary<NumberDictionaryShape, uint32_t>::SlowReverseLookup(
6957 template Object* Dictionary<StringDictionaryShape, String*>::SlowReverseLookup(
6960 template void Dictionary<NumberDictionaryShape, uint32_t>::CopyKeysTo(
6963 template Object* Dictionary<StringDictionaryShape, String*>::DeleteProperty(
6966 template Object* Dictionary<NumberDictionaryShape, uint32_t>::DeleteProperty(
6969 template void Dictionary<StringDictionaryShape, String*>::CopyKeysTo(
6973 Dictionary<StringDictionaryShape, String*>::NumberOfElementsFilterAttributes(
6976 template Object* Dictionary<StringDictionaryShape, String*>::Add(
6980 Dictionary<StringDictionaryShape, String*>::GenerateNewEnumerationIndices();
6983 Dictionary<NumberDictionaryShape, uint32_t>::NumberOfElementsFilterAttributes(
6986 template Object* Dictionary<NumberDictionaryShape, uint32_t>::Add(
6989 template Object* Dictionary<NumberDictionaryShape, uint32_t>::EnsureCapacity(
6992 template Object* Dictionary<StringDictionaryShape, String*>::EnsureCapacity(
6995 template Object* Dictionary<NumberDictionaryShape, uint32_t>::AddEntry(
6998 template Object* Dictionary<StringDictionaryShape, String*>::AddEntry(
7002 int Dictionary<NumberDictionaryShape, uint32_t>::NumberOfEnumElements();
7005 int Dictionary<StringDictionaryShape, String*>::NumberOfEnumElements();
7012 // zero of the elements. The object stays in Dictionary mode.
7015 // Must stay in dictionary mode, either because of requires_slow_elements,
7085 // If the object is in dictionary mode, it is converted to fast elements
7329 Object* dictionary = property_dictionary()->Add(name, cell, details);
7330 if (dictionary->IsFailure()) return dictionary;
7331 set_properties(StringDictionary::cast(dictionary));
7612 Object* Dictionary<Shape, Key>::Allocate(int at_least_space_for) {
7616 Dictionary<Shape, Key>::cast(obj)->
7624 Object* Dictionary<Shape, Key>::GenerateNewEnumerationIndices() {
7644 if (Dictionary<Shape, Key>::IsKey(Dictionary<Shape, Key>::KeyAt(i))) {
7659 // Update the dictionary with new indices.
7663 if (Dictionary<Shape, Key>::IsKey(Dictionary<Shape, Key>::KeyAt(i))) {
7678 Object* Dictionary<Shape, Key>::EnsureCapacity(int n, Key key) {
7714 Object* Dictionary<Shape, Key>::DeleteProperty(int entry,
7728 Object* Dictionary<Shape, Key>::AtPut(Key key, Object* value) {
7732 if (entry != Dictionary<Shape, Key>::kNotFound) {
7737 // Check whether the dictionary should be extended.
7744 return Dictionary<Shape, Key>::cast(obj)->
7750 Object* Dictionary<Shape, Key>::Add(Key key,
7754 SLOW_ASSERT((FindEntry(key) == Dictionary<Shape, Key>::kNotFound));
7755 // Check whether the dictionary should be extended.
7758 return Dictionary<Shape, Key>::cast(obj)->
7763 // Add a key, value pair to the dictionary.
7765 Object* Dictionary<Shape, Key>::AddEntry(Key key,
7773 uint32_t entry = Dictionary<Shape, Key>::FindInsertionEntry(hash);
7783 ASSERT((Dictionary<Shape, Key>::KeyAt(entry)->IsNumber()
7784 || Dictionary<Shape, Key>::KeyAt(entry)->IsString()));
7791 // If the dictionary requires slow elements an element has already
7840 int Dictionary<Shape, Key>::NumberOfElementsFilterAttributes(
7858 int Dictionary<Shape, Key>::NumberOfEnumElements() {
7865 void Dictionary<Shape, Key>::CopyKeysTo(FixedArray* storage,
7905 void Dictionary<Shape, Key>::CopyKeysTo(FixedArray* storage) {
7924 Object* Dictionary<Shape, Key>::SlowReverseLookup(Object* value) {
7928 if (Dictionary<Shape, Key>::IsKey(k)) {
7942 // Make sure we preserve dictionary representation if there are too many