Home
last modified time | relevance | path

Searched refs:descs (Results 1 - 10 of 10) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
H A Djsnapi_sendable.cpp39 std::vector<PropertyDescriptor> &descs, in InitStaticDescription()
49 descs.push_back(nameDesc); in InitStaticDescription()
56 descs.push_back(prototypeDesc); in InitStaticDescription()
59 void JSNapiSendable::InitNonStaticDescription(JSThread *thread, std::vector<PropertyDescriptor> &descs) in InitNonStaticDescription() argument
68 descs.push_back(constructorDesc); in InitNonStaticDescription()
71 void JSNapiSendable::InitInstanceDescription(JSThread *thread, std::vector<PropertyDescriptor> &descs) in InitInstanceDescription() argument
80 descs.push_back(napiWrapperDesc); in InitInstanceDescription()
85 std::vector<PropertyDescriptor> &descs) in InitWithPropertiesInfo()
99 descs.push_back(desc); in InitWithPropertiesInfo()
101 InitInstanceDescription(thread, descs); in InitWithPropertiesInfo()
38 InitStaticDescription(JSThread *thread, std::vector<PropertyDescriptor> &descs, Local<StringRef> &name) InitStaticDescription() argument
83 InitWithPropertiesInfo(JSThread *thread, FunctionRef::SendablePropertiesInfo &info, std::vector<PropertyDescriptor> &descs) InitWithPropertiesInfo() argument
[all...]
H A Djsnapi_sendable.h42 std::vector<PropertyDescriptor> &descs);
49 static void InitStaticDescription(JSThread *thread, std::vector<PropertyDescriptor> &descs, Local<StringRef> &name);
50 static void InitNonStaticDescription(JSThread *thread, std::vector<PropertyDescriptor> &descs);
51 static void InitInstanceDescription(JSThread *thread, std::vector<PropertyDescriptor> &descs);
H A Djs_hclass.cpp1504 const std::vector<PropertyDescriptor> &descs, in CreateSHClass()
1511 uint32_t length = descs.size(); in CreateSHClass()
1527 CreateSInlinedLayout(thread, descs, hclass, parentHClass); in CreateSHClass()
1529 CreateSDictLayout(thread, descs, hclass, parentHClass); in CreateSHClass()
1535 JSHandle<JSHClass> JSHClass::CreateSConstructorHClass(JSThread *thread, const std::vector<PropertyDescriptor> &descs) in CreateSConstructorHClass() argument
1537 auto hclass = CreateSHClass(thread, descs, nullptr, true); in CreateSConstructorHClass()
1543 JSHandle<JSHClass> JSHClass::CreateSPrototypeHClass(JSThread *thread, const std::vector<PropertyDescriptor> &descs) in CreateSPrototypeHClass() argument
1545 auto hclass = CreateSHClass(thread, descs); in CreateSPrototypeHClass()
1552 const std::vector<PropertyDescriptor> &descs, in CreateSInlinedLayout()
1563 auto length = descs in CreateSInlinedLayout()
1503 CreateSHClass(JSThread *thread, const std::vector<PropertyDescriptor> &descs, const JSHClass *parentHClass, bool isFunction) CreateSHClass() argument
1551 CreateSInlinedLayout(JSThread *thread, const std::vector<PropertyDescriptor> &descs, const JSHandle<JSHClass> &hclass, const JSHClass *parentHClass) CreateSInlinedLayout() argument
1606 CreateSDictLayout(JSThread *thread, const std::vector<PropertyDescriptor> &descs, const JSHandle<JSHClass> &hclass, const JSHClass *parentHClass) CreateSDictLayout() argument
[all...]
H A Djs_hclass.h2064 const std::vector<PropertyDescriptor> &descs,
2067 static JSHandle<JSHClass> CreateSConstructorHClass(JSThread *thread, const std::vector<PropertyDescriptor> &descs);
2068 static JSHandle<JSHClass> CreateSPrototypeHClass(JSThread *thread, const std::vector<PropertyDescriptor> &descs);
2076 const std::vector<PropertyDescriptor> &descs,
2080 const std::vector<PropertyDescriptor> &descs,
H A Djs_object.cpp331 void JSObject::SetSProperties(JSThread *thread, JSHandle<JSObject> obj, const std::vector<PropertyDescriptor> &descs) in SetSProperties() argument
333 uint32_t length = descs.size(); in SetSProperties()
339 propValue.Update(descs[i].GetValue()); in SetSProperties()
351 propKey.Update(descs[i].GetKey()); in SetSProperties()
352 propValue.Update(descs[i].GetValue()); in SetSProperties()
354 PropertyAttributes::Default(descs[i].IsWritable(), descs[i].IsEnumerable(), descs[i].IsConfigurable()); in SetSProperties()
H A Dobject_factory.cpp5022 const PropertyDescriptor *descs) in CreateJSObjectWithProperties()
5025 return CreateLargeJSObjectWithProperties(propertyCount, keys, descs); in CreateJSObjectWithProperties()
5042 PropertyAttributes attr(descs[i]); in CreateJSObjectWithProperties()
5046 auto value = descs[i].GetValue().GetTaggedValue(); in CreateJSObjectWithProperties()
5054 object->SetPropertyInlinedProps<true>(thread_, i, descs[i].GetValue().GetTaggedValue()); in CreateJSObjectWithProperties()
5061 const PropertyDescriptor *descs) in CreateLargeJSObjectWithProperties()
5065 return CreateDictionaryJSObjectWithProperties(propertyCount, keys, descs); in CreateLargeJSObjectWithProperties()
5085 PropertyAttributes attr(descs[i]); in CreateLargeJSObjectWithProperties()
5091 object->SetPropertyInlinedProps<true>(thread_, i, descs[i].GetValue().GetTaggedValue()); in CreateLargeJSObjectWithProperties()
5100 const PropertyDescriptor *descs) in CreateDictionaryJSObjectWithProperties()
5020 CreateJSObjectWithProperties(size_t propertyCount, const Local<JSValueRef> *keys, const PropertyDescriptor *descs) CreateJSObjectWithProperties() argument
5059 CreateLargeJSObjectWithProperties(size_t propertyCount, const Local<JSValueRef> *keys, const PropertyDescriptor *descs) CreateLargeJSObjectWithProperties() argument
5098 CreateDictionaryJSObjectWithProperties(size_t propertyCount, const Local<JSValueRef> *keys, const PropertyDescriptor *descs) CreateDictionaryJSObjectWithProperties() argument
[all...]
H A Dobject_factory.h740 JSHandle<JSTaggedValue> CreateSObjectWithProperties(std::vector<PropertyDescriptor> &descs);
982 const PropertyDescriptor *descs);
988 const PropertyDescriptor *descs);
H A Dshared_object_factory.cpp305 JSHandle<JSTaggedValue> ObjectFactory::CreateSObjectWithProperties(std::vector<PropertyDescriptor> &descs) in CreateSObjectWithProperties() argument
307 JSHandle<JSHClass> hclass = JSHClass::CreateSHClass(thread_, descs); in CreateSObjectWithProperties()
309 JSObject::SetSProperties(thread_, object, descs); in CreateSObjectWithProperties()
H A Djs_object.h767 static void SetSProperties(JSThread *thread, JSHandle<JSObject> obj, const std::vector<PropertyDescriptor> &descs);
/arkcompiler/ets_runtime/ecmascript/napi/
H A Djsnapi_expo.cpp2513 std::vector<PropertyDescriptor> descs; in NewSWithProperties() local
2514 JSNapiSendable::InitWithPropertiesInfo(thread, info, descs); in NewSWithProperties()
2515 auto obj = factory->CreateSObjectWithProperties(descs); in NewSWithProperties()

Completed in 48 milliseconds