Lines Matching defs:copy
88 Handle<JSObject> copy;
96 copy = isolate->factory()->CopyJSObjectWithAllocationSite(object,
99 copy = object;
102 DCHECK(copying || copy.is_identical_to(object));
106 // Deep copy own properties. Arrays only have 1 property "length".
107 if (!copy->IsJSArray(isolate)) {
108 if (copy->HasFastProperties(isolate)) {
110 copy->map(isolate).instance_descriptors(isolate), isolate);
111 for (InternalIndex i : copy->map(isolate).IterateOwnDescriptors()) {
116 copy->map(isolate), details.field_index(),
118 Object raw = copy->RawFastPropertyAt(isolate, index);
122 isolate, value, VisitElementOrProperty(copy, value), JSObject);
123 if (copying) copy->FastPropertyAtPut(index, *value);
128 copy->FastPropertyAtPut(index, *value);
134 copy->property_dictionary_swiss(isolate), isolate);
141 isolate, value, VisitElementOrProperty(copy, value), JSObject);
145 Handle<NameDictionary> dict(copy->property_dictionary(isolate),
153 isolate, value, VisitElementOrProperty(copy, value), JSObject);
160 if (copy->elements(isolate).length() == 0) return copy;
163 // Deep copy own elements.
164 switch (copy->GetElementsKind(isolate)) {
173 Handle<FixedArray> elements(FixedArray::cast(copy->elements(isolate)),
188 isolate, value, VisitElementOrProperty(copy, value), JSObject);
196 copy->element_dictionary(isolate), isolate);
202 isolate, value, VisitElementOrProperty(copy, value), JSObject);
233 return copy;
332 MaybeHandle<JSObject> copy = v.StructureWalk(object);
334 DCHECK(!copy.ToHandle(&for_assert) || !for_assert.is_identical_to(object));
335 return copy;
577 MaybeHandle<JSObject> copy = DeepCopy(boilerplate, &usage_context);
579 return copy;
665 // exists, callers should instead copy the boilerplate into a new JSRegExp