Lines Matching defs:cloneObject

515     JSHandle<JSObject> cloneObject = NewJSObject(klass);
519 cloneObject->SetElements(thread_, newElements.GetTaggedValue());
523 cloneObject->SetProperties(thread_, newProperties.GetTaggedValue());
527 cloneObject->SetPropertyInlinedPropsWithRep(thread_, i, object->GetPropertyInlinedProps(i));
529 return cloneObject;
537 JSHandle<JSArray> cloneObject(NewJSObject(klass));
538 cloneObject->SetArrayLength(thread_, object->GetArrayLength());
539 cloneObject->SetTrackInfo(thread_, JSTaggedValue::Undefined());
553 cloneObject->SetElements(thread_, elements.GetTaggedValue());
556 cloneObject->SetElements(thread_, newElements.GetTaggedValue());
562 object->SetElements(thread_, cloneObject->GetElements());
576 cloneObject->SetProperties(thread_, properties.GetTaggedValue());
579 cloneObject->SetProperties(thread_, newProperties.GetTaggedValue());
585 object->SetProperties(thread_, cloneObject->GetProperties());
589 cloneObject->SetPropertyInlinedPropsWithRep(thread_, i, object->GetPropertyInlinedProps(i));
591 return cloneObject;
634 JSHandle<JSObject> cloneObject = NewJSObject(klass);
637 auto newElements = CloneProperties(elements, env, cloneObject);
638 cloneObject->SetElements(thread_, newElements.GetTaggedValue());
641 auto newProperties = CloneProperties(properties, env, cloneObject);
642 cloneObject->SetProperties(thread_, newProperties.GetTaggedValue());
649 cloneObject->SetPropertyInlinedPropsWithRep(thread_, i, value);
654 newFunc->SetHomeObject(thread_, cloneObject);
655 cloneObject->SetPropertyInlinedProps(thread_, i, newFunc.GetTaggedValue());
661 cloneObject->SetPropertyInlinedPropsWithRep(thread_, i, value);
664 return cloneObject;