Lines Matching defs:ctor
755 void Builtins::SetSFunctionName(const JSHandle<JSFunction> &ctor, std::string_view name) const
758 SetSFunctionName(ctor, nameString);
761 void Builtins::SetSFunctionName(const JSHandle<JSFunction> &ctor, const JSHandle<JSTaggedValue> &name) const
764 ctor->SetPropertyInlinedProps(thread_, nameIndex, name.GetTaggedValue());
767 void Builtins::SetSFunctionLength(const JSHandle<JSFunction> &ctor, int length) const
771 ctor->SetPropertyInlinedProps(thread_, lengthIndex, taggedLength);
774 void Builtins::SetSFunctionPrototype(const JSHandle<JSFunction> &ctor, const JSTaggedValue &prototype) const
777 ctor->SetPropertyInlinedProps(thread_, prototypeIndex, prototype);
780 void Builtins::InitializeSCtor(const JSHandle<JSHClass> &protoHClass, const JSHandle<JSFunction> &ctor,
783 SetSFunctionLength(ctor, length);
784 SetSFunctionName(ctor, name);
785 SetSFunctionPrototype(ctor, protoHClass->GetProto());
786 ctor->SetProtoOrHClass(thread_, protoHClass);