Home | History | Annotate | Download | only in src

Lines Matching full:descriptors

1539   // Allocate new instance descriptors with (name, index) added
1574 // Allocate new instance descriptors for the old map with map transition.
1616 // Allocate new instance descriptors with (name, function) added
1632 DescriptorArray* descriptors = DescriptorArray::cast(new_descriptors);
1633 Map::cast(new_map)->set_instance_descriptors(descriptors);
1738 // Normalize the object to prevent very large instance descriptors.
2155 DescriptorArray* descriptors = map()->instance_descriptors();
2156 int number = descriptors->SearchWithCache(name);
2158 result->DescriptorResult(this, descriptors->GetDetails(number), number);
2168 DescriptorArray* descriptors = instance_descriptors();
2171 int number = cache->Lookup(descriptors, name);
2173 number = descriptors->Search(name);
2174 cache->Update(descriptors, name, number);
2177 result->DescriptorResult(holder, descriptors->GetDetails(number), number);
2314 // Get the cached index for the descriptors lookup, or find and cache it.
2315 DescriptorArray* descriptors = instance_descriptors();
2317 int index = cache->Lookup(descriptors, sentinel_name);
2319 index = descriptors->Search(sentinel_name);
2320 cache->Update(descriptors, sentinel_name, index);
2324 PropertyDetails details(descriptors->GetDetails(index));
2326 return descriptors->GetValue(index);
2430 // element-related maps. Also don't add descriptors to maps that are shared.
2493 // where map transitions and null descriptors are handled.
3726 DescriptorArray* descriptors = this->map()->instance_descriptors();
3727 if ((descriptors->number_of_descriptors() > 0) &&
3728 (descriptors->GetKey(0) == GetHeap()->hidden_symbol())) {
3729 if (descriptors->GetType(0) == FIELD) {
3731 this->FastPropertyAt(descriptors->GetFieldIndex(0));
3734 ASSERT(descriptors->GetType(0) == NULL_DESCRIPTOR ||
3735 descriptors->GetType(0) == MAP_TRANSITION);
3775 DescriptorArray* descriptors = this->map()->instance_descriptors();
3776 if ((descriptors->number_of_descriptors() > 0) &&
3777 (descriptors->GetKey(0) == GetHeap()->hidden_symbol())) {
3778 if (descriptors->GetType(0) == FIELD) {
3779 this->FastPropertyAtPut(descriptors->GetFieldIndex(0), dictionary);
3782 ASSERT(descriptors->GetType(0) == NULL_DESCRIPTOR ||
3783 descriptors->GetType(0) == MAP_TRANSITION);
4756 // Don't copy descriptors, so map transitions always remain a forest.
4757 // If we retained the same descriptors we would have two maps
4771 Object* descriptors;
4774 if (!maybe_descriptors->ToObject(&descriptors)) return maybe_descriptors;
4777 DescriptorArray::cast(descriptors));
4831 Object* descriptors;
4834 if (!maybe_descriptors->ToObject(&descriptors)) return maybe_descriptors;
4836 cast(new_map)->set_instance_descriptors(DescriptorArray::cast(descriptors));
5766 // Set the enumeration index in the descriptors and set the enumeration index
5780 // Copy the descriptors, filtering out transitions and null descriptors,
7205 DescriptorArray* descriptors = instance_descriptors();
7206 for (int i = 0; i < descriptors->number_of_descriptors(); i++) {
7207 switch (descriptors->GetType(i)) {
7210 CreateOneBackPointer(descriptors->GetValue(i));
7213 Object* object = descriptors->GetValue(i);
7225 Object* object = descriptors->GetValue(i);
12350 // descriptors.
12387 DescriptorArray* descriptors;
12390 if (!maybe_descriptors->To<DescriptorArray>(&descriptors)) {
12395 DescriptorArray::WhitenessWitness witness(descriptors);
12433 descriptors->Set(next_descriptor++, &d, witness);
12447 descriptors->Set(next_descriptor++, &d, witness);
12458 descriptors->Set(next_descriptor++, &d, witness);
12466 descriptors->Sort(witness);
12475 obj->map()->set_instance_descriptors(descriptors);
12481 descriptors->SetNextEnumerationIndex(NextEnumerationIndex());