Lines Matching full:thread
58 static JSObject *JSObjectTestCreate(JSThread *thread) in JSObjectTestCreate() argument
60 [[maybe_unused]] ecmascript::EcmaHandleScope scope(thread); in JSObjectTestCreate()
61 EcmaVM *ecmaVM = thread->GetEcmaVM(); in JSObjectTestCreate()
69 static JSAPIArrayList *CreateArrayList(JSThread *thread) in CreateArrayList() argument
71 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreateArrayList()
72 … auto result = TestCommon::CreateContainerTaggedValue(thread, containers::ContainerTag::ArrayList); in CreateArrayList()
73 JSHandle<JSTaggedValue> constructor(thread, result); in CreateArrayList()
77 arrayList->SetElements(thread, taggedArray); in CreateArrayList()
81 static JSAPIPlainArray *CreatePlainArray(JSThread *thread) in CreatePlainArray() argument
83 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreatePlainArray()
84 …auto result = TestCommon::CreateContainerTaggedValue(thread, containers::ContainerTag::PlainArray); in CreatePlainArray()
85 JSHandle<JSTaggedValue> constructor(thread, result); in CreatePlainArray()
90 plainArray->SetKeys(thread, keyArray); in CreatePlainArray()
91 plainArray->SetValues(thread, valueArray); in CreatePlainArray()
95 static JSAPIDeque *CreateJSApiDeque(JSThread *thread) in CreateJSApiDeque() argument
97 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreateJSApiDeque()
98 … auto result = TestCommon::CreateContainerTaggedValue(thread, containers::ContainerTag::Deque); in CreateJSApiDeque()
99 JSHandle<JSTaggedValue> constructor(thread, result); in CreateJSApiDeque()
102 deque->SetElements(thread, newElements); in CreateJSApiDeque()
106 static JSAPIHashMap *CreateHashMap(JSThread *thread) in CreateHashMap() argument
108 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreateHashMap()
109 … auto result = TestCommon::CreateContainerTaggedValue(thread, containers::ContainerTag::HashMap); in CreateHashMap()
110 JSHandle<JSTaggedValue> constructor(thread, result); in CreateHashMap()
112 JSTaggedValue hashMapArray = TaggedHashArray::Create(thread); in CreateHashMap()
113 map->SetTable(thread, hashMapArray); in CreateHashMap()
118 static JSAPIHashSet *CreateHashSet(JSThread *thread) in CreateHashSet() argument
120 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreateHashSet()
121 … auto result = TestCommon::CreateContainerTaggedValue(thread, containers::ContainerTag::HashSet); in CreateHashSet()
122 JSHandle<JSTaggedValue> constructor(thread, result); in CreateHashSet()
124 JSTaggedValue hashSetArray = TaggedHashArray::Create(thread); in CreateHashSet()
125 set->SetTable(thread, hashSetArray); in CreateHashSet()
130 static JSAPILightWeightMap *CreateLightWeightMap(JSThread *thread) in CreateLightWeightMap() argument
132 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreateLightWeightMap()
133 …auto result = TestCommon::CreateContainerTaggedValue(thread, containers::ContainerTag::LightWeight… in CreateLightWeightMap()
134 JSHandle<JSTaggedValue> constructor(thread, result); in CreateLightWeightMap()
140 lightWeightMap->SetHashes(thread, hashArray); in CreateLightWeightMap()
141 lightWeightMap->SetKeys(thread, keyArray); in CreateLightWeightMap()
142 lightWeightMap->SetValues(thread, valueArray); in CreateLightWeightMap()
147 static JSAPILightWeightSet *CreateLightWeightSet(JSThread *thread) in CreateLightWeightSet() argument
149 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreateLightWeightSet()
150 …auto result = TestCommon::CreateContainerTaggedValue(thread, containers::ContainerTag::LightWeight… in CreateLightWeightSet()
151 JSHandle<JSTaggedValue> constructor(thread, result); in CreateLightWeightSet()
156 lightweightSet->SetHashes(thread, hashArray); in CreateLightWeightSet()
157 lightweightSet->SetValues(thread, valueArray); in CreateLightWeightSet()
162 static JSAPILinkedList *CreateLinkedList(JSThread *thread) in CreateLinkedList() argument
164 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreateLinkedList()
165 …auto result = TestCommon::CreateContainerTaggedValue(thread, containers::ContainerTag::LinkedList); in CreateLinkedList()
167 JSHandle<JSTaggedValue> contianer(thread, result); in CreateLinkedList()
170 JSTaggedValue doubleList = TaggedDoubleList::Create(thread); in CreateLinkedList()
171 linkedList->SetDoubleList(thread, doubleList); in CreateLinkedList()
175 static JSAPIList *CreateList(JSThread *thread) in CreateList() argument
177 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreateList()
178 … auto result = TestCommon::CreateContainerTaggedValue(thread, containers::ContainerTag::List); in CreateList()
179 JSHandle<JSTaggedValue> constructor(thread, result); in CreateList()
181 JSTaggedValue singleList = TaggedSingleList::Create(thread); in CreateList()
182 list->SetSingleList(thread, singleList); in CreateList()
186 static JSHandle<JSAPIQueue> CreateQueue(JSThread *thread, int capacaty) in CreateQueue() argument
188 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreateQueue()
189 … auto result = TestCommon::CreateContainerTaggedValue(thread, containers::ContainerTag::Queue); in CreateQueue()
190 JSHandle<JSTaggedValue> constructor(thread, result); in CreateQueue()
193 jsQueue->SetElements(thread, newElements); in CreateQueue()
194 jsQueue->SetLength(thread, JSTaggedValue(0)); in CreateQueue()
200 static JSHandle<JSAPIStack> CreateJSApiStack(JSThread *thread) in CreateJSApiStack() argument
202 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreateJSApiStack()
203 … auto result = TestCommon::CreateContainerTaggedValue(thread, containers::ContainerTag::Stack); in CreateJSApiStack()
205 JSHandle<JSTaggedValue> constructor(thread, result); in CreateJSApiStack()
211 static JSHandle<JSAPITreeMap> CreateTreeMap(JSThread *thread) in CreateTreeMap() argument
213 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreateTreeMap()
214 … auto result = TestCommon::CreateContainerTaggedValue(thread, containers::ContainerTag::TreeMap); in CreateTreeMap()
216 JSHandle<JSTaggedValue> constructor(thread, result); in CreateTreeMap()
219 JSTaggedValue internal = TaggedTreeMap::Create(thread); in CreateTreeMap()
220 jsTreeMap->SetTreeMap(thread, internal); in CreateTreeMap()