Lines Matching defs:thread

23 JSNapiSendable::JSNapiSendable(JSThread *thread, FunctionRef::SendablePropertiesInfos &infos, Local<StringRef> &name)
25 InitStaticDescription(thread, staticDescs_, name);
26 InitNonStaticDescription(thread, nonStaticDescs_);
27 InitInstanceDescription(thread, instanceDescs_);
28 InitWithPropertiesInfo(thread, infos.staticPropertiesInfo, staticDescs_);
29 InitWithPropertiesInfo(thread, infos.nonStaticPropertiesInfo, nonStaticDescs_);
30 InitWithPropertiesInfo(thread, infos.instancePropertiesInfo, instanceDescs_);
38 void JSNapiSendable::InitStaticDescription(JSThread *thread,
42 const GlobalEnvConstants *globalConst = thread->GlobalConstants();
45 PropertyDescriptor nameDesc(thread, false, false, false);
52 PropertyDescriptor prototypeDesc(thread, false, false, false);
59 void JSNapiSendable::InitNonStaticDescription(JSThread *thread, std::vector<PropertyDescriptor> &descs)
61 const GlobalEnvConstants *globalConst = thread->GlobalConstants();
64 PropertyDescriptor constructorDesc(thread, false, false, false);
71 void JSNapiSendable::InitInstanceDescription(JSThread *thread, std::vector<PropertyDescriptor> &descs)
73 const GlobalEnvConstants *globalConst = thread->GlobalConstants();
76 PropertyDescriptor napiWrapperDesc(thread, true, false, false);
83 void JSNapiSendable::InitWithPropertiesInfo(JSThread *thread,
87 EcmaVM *vm = thread->GetEcmaVM();
91 PropertyDescriptor desc(thread,
96 auto type = GetSharedFieldType(thread, info.types[i], info.attributes[i].GetValue(vm));
101 InitInstanceDescription(thread, descs);
104 SharedFieldType JSNapiSendable::GetSharedFieldType(JSThread *thread,
137 THROW_TYPE_ERROR_AND_RETURN(thread, "Unknown SharedFieldType", SharedFieldType::NONE);
140 THROW_TYPE_ERROR_AND_RETURN(thread, "Unknown SharedFieldType", SharedFieldType::NONE);