Lines Matching defs:array

142     TransitionArray array = GetTransitionArray(isolate, map);
143 number_of_transitions = array.number_of_transitions();
147 ? array.SearchSpecial(Symbol::cast(*name), false, &insertion_index)
148 : array.Search(details.kind(), *name, details.attributes(),
154 array.SetRawTarget(index, HeapObjectReference::Weak(*target));
163 // If there is enough capacity, insert new entry into the existing array.
164 if (new_nof <= array.Capacity()) {
167 array.SetNumberOfTransitions(new_nof);
169 array.SetKey(i, array.GetKey(i - 1));
170 array.SetRawTarget(i, array.GetRawTarget(i - 1));
172 array.SetKey(insertion_index, *name);
173 array.SetRawTarget(insertion_index, HeapObjectReference::Weak(*target));
174 SLOW_DCHECK(array.IsSortedNoDuplicates());
184 // The map's transition array may have shrunk during the allocation above as
188 TransitionArray array = GetTransitionArray(isolate, map);
189 if (array.number_of_transitions() != number_of_transitions) {
190 DCHECK_LT(array.number_of_transitions(), number_of_transitions);
194 ? array.SearchSpecial(Symbol::cast(*name), false, &insertion_index)
195 : array.Search(details.kind(), *name, details.attributes(),
202 number_of_transitions = array.number_of_transitions();
207 if (array.HasPrototypeTransitions()) {
208 result->SetPrototypeTransitions(array.GetPrototypeTransitions());
213 result->Set(i, array.GetKey(i), array.GetRawTarget(i));
217 result->Set(i + 1, array.GetKey(i), array.GetRawTarget(i));
335 WeakFixedArray array) {
337 int number_of_transitions = NumberOfPrototypeTransitions(array);
339 // Empty array cannot be compacted.
344 MaybeObject target = array.Get(header + i);
349 array.Set(header + new_number_of_transitions, target);
358 array.Set(header + i, undefined);
361 SetNumberOfPrototypeTransitions(array, new_number_of_transitions);
368 Handle<WeakFixedArray> array, int new_capacity, Isolate* isolate) {
369 // Grow array by factor 2 up to MaxCachedPrototypeTransitions.
370 int capacity = array->length() - kProtoTransitionHeaderSize;
374 array = isolate->factory()->CopyWeakFixedArrayAndGrow(array, grow_by);
376 // There was no prototype transitions array before, so the size
378 SetNumberOfPrototypeTransitions(*array, 0);
380 return array;
404 // Grow the array if compacting it doesn't free space.
541 // If allocation caused GC and cleared the target, trim the new array.
544 // Otherwise populate the new array.