Lines Matching full:thread
35 JSThread *thread = argv->GetThread(); in LightWeightMapConstructor() local
36 BUILTINS_API_TRACE(thread, LightWeightMap, Constructor); in LightWeightMapConstructor()
37 [[maybe_unused]] EcmaHandleScope handleScope(thread); in LightWeightMapConstructor()
38 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in LightWeightMapConstructor()
42 ContainerError::BusinessError(thread, ErrorFlag::IS_NULL_ERROR, in LightWeightMapConstructor()
44 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in LightWeightMapConstructor()
48 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in LightWeightMapConstructor()
53 lwMap->SetHashes(thread, hashArray.GetTaggedValue()); in LightWeightMapConstructor()
54 lwMap->SetKeys(thread, keyArray.GetTaggedValue()); in LightWeightMapConstructor()
55 lwMap->SetValues(thread, valueArray.GetTaggedValue()); in LightWeightMapConstructor()
63 JSThread *thread = argv->GetThread(); in Length() local
64 BUILTINS_API_TRACE(thread, LightWeightMap, Length); in Length()
65 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Length()
70 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Length()
72 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Length()
74 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Length()
84 JSThread *thread = argv->GetThread(); in HasAll() local
85 BUILTINS_API_TRACE(thread, LightWeightMap, HasAll); in HasAll()
86 [[maybe_unused]] EcmaHandleScope handleScope(thread); in HasAll()
91 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in HasAll()
93 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in HasAll()
95 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HasAll()
103 …lightWeightMap = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(lightWeightMap)->GetTarge… in HasAll()
105 … JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, lightWeightMap.GetTaggedValue()); in HasAll()
108 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in HasAll()
109 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HasAll()
113 return JSAPILightWeightMap::HasAll(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in HasAll()
120 JSThread *thread = argv->GetThread(); in HasKey() local
121 BUILTINS_API_TRACE(thread, LightWeightMap, HasKey); in HasKey()
122 [[maybe_unused]] EcmaHandleScope handleScope(thread); in HasKey()
127 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in HasKey()
129 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in HasKey()
131 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HasKey()
136 return JSAPILightWeightMap::HasKey(thread, JSHandle<JSAPILightWeightMap>::Cast(self), key); in HasKey()
142 JSThread *thread = argv->GetThread(); in HasValue() local
143 BUILTINS_API_TRACE(thread, LightWeightMap, HasValue); in HasValue()
144 [[maybe_unused]] EcmaHandleScope handleScope(thread); in HasValue()
149 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in HasValue()
151 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in HasValue()
153 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HasValue()
158 return JSAPILightWeightMap::HasValue(thread, JSHandle<JSAPILightWeightMap>::Cast(self), value); in HasValue()
164 JSThread *thread = argv->GetThread(); in IncreaseCapacityTo() local
165 BUILTINS_API_TRACE(thread, LightWeightMap, IncreaseCapacityTo); in IncreaseCapacityTo()
166 [[maybe_unused]] EcmaHandleScope handleScope(thread); in IncreaseCapacityTo()
171 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in IncreaseCapacityTo()
173 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in IncreaseCapacityTo()
175 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in IncreaseCapacityTo()
182 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index); in IncreaseCapacityTo()
185 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in IncreaseCapacityTo()
186 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in IncreaseCapacityTo()
188 JSAPILightWeightMap::IncreaseCapacityTo(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in IncreaseCapacityTo()
191 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in IncreaseCapacityTo()
198 JSThread *thread = argv->GetThread(); in Entries() local
199 BUILTINS_API_TRACE(thread, LightWeightMap, Entries); in Entries()
200 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Entries()
203 …JSAPILightWeightMapIterator::CreateLightWeightMapIterator(thread, self, IterationKind::KEY_AND_VAL… in Entries()
210 JSThread *thread = argv->GetThread(); in Get() local
211 BUILTINS_API_TRACE(thread, LightWeightMap, Get); in Get()
212 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Get()
217 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Get()
219 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Get()
221 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Get()
227 return JSAPILightWeightMap::Get(thread, JSHandle<JSAPILightWeightMap>::Cast(self), key); in Get()
233 JSThread *thread = argv->GetThread(); in GetIndexOfKey() local
234 BUILTINS_API_TRACE(thread, LightWeightMap, GetIndexOfKey); in GetIndexOfKey()
235 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetIndexOfKey()
240 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetIndexOfKey()
242 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetIndexOfKey()
244 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetIndexOfKey()
250 …int32_t index = JSAPILightWeightMap::GetIndexOfKey(thread, JSHandle<JSAPILightWeightMap>::Cast(sel… in GetIndexOfKey()
257 JSThread *thread = argv->GetThread(); in GetIndexOfValue() local
258 BUILTINS_API_TRACE(thread, LightWeightMap, GetIndexOfValue); in GetIndexOfValue()
259 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetIndexOfValue()
264 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetIndexOfValue()
266 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetIndexOfValue()
268 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetIndexOfValue()
274 …int32_t index = JSAPILightWeightMap::GetIndexOfValue(thread, JSHandle<JSAPILightWeightMap>::Cast(s… in GetIndexOfValue()
281 JSThread *thread = argv->GetThread(); in IsEmpty() local
282 BUILTINS_API_TRACE(thread, LightWeightMap, IsEmpty); in IsEmpty()
283 [[maybe_unused]] EcmaHandleScope handleScope(thread); in IsEmpty()
288 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in IsEmpty()
290 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in IsEmpty()
292 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in IsEmpty()
301 JSThread *thread = argv->GetThread(); in GetKeyAt() local
302 BUILTINS_API_TRACE(thread, LightWeightMap, GetKeyAt); in GetKeyAt()
303 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetKeyAt()
308 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetKeyAt()
310 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetKeyAt()
312 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetKeyAt()
319 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index); in GetKeyAt()
322 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in GetKeyAt()
323 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetKeyAt()
326 return JSAPILightWeightMap::GetKeyAt(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in GetKeyAt()
333 JSThread *thread = argv->GetThread(); in Keys() local
334 BUILTINS_API_TRACE(thread, LightWeightMap, Keys); in Keys()
335 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Keys()
338 JSAPILightWeightMapIterator::CreateLightWeightMapIterator(thread, self, IterationKind::KEY); in Keys()
345 JSThread *thread = argv->GetThread(); in SetAll() local
346 BUILTINS_API_TRACE(thread, LightWeightMap, SetAll); in SetAll()
347 [[maybe_unused]] EcmaHandleScope handleScope(thread); in SetAll()
352 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in SetAll()
354 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in SetAll()
356 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in SetAll()
365 …lightWeightMap = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(lightWeightMap)->GetTarge… in SetAll()
367 … JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, lightWeightMap.GetTaggedValue()); in SetAll()
370 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in SetAll()
371 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in SetAll()
375 JSAPILightWeightMap::SetAll(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in SetAll()
383 JSThread *thread = argv->GetThread(); in Set() local
384 BUILTINS_API_TRACE(thread, LightWeightMap, Set); in Set()
385 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Set()
390 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Set()
392 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Set()
394 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Set()
401 JSAPILightWeightMap::Set(thread, JSHandle<JSAPILightWeightMap>::Cast(self), key, value); in Set()
408 JSThread *thread = argv->GetThread(); in Remove() local
409 BUILTINS_API_TRACE(thread, LightWeightMap, Remove); in Remove()
410 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Remove()
415 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Remove()
417 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Remove()
419 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Remove()
424 return JSAPILightWeightMap::Remove(thread, JSHandle<JSAPILightWeightMap>::Cast(self), key); in Remove()
430 JSThread *thread = argv->GetThread(); in RemoveAt() local
431 BUILTINS_API_TRACE(thread, LightWeightMap, RemoveAt); in RemoveAt()
432 [[maybe_unused]] EcmaHandleScope handleScope(thread); in RemoveAt()
437 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in RemoveAt()
439 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in RemoveAt()
441 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in RemoveAt()
447 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index); in RemoveAt()
450 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in RemoveAt()
451 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in RemoveAt()
454 return JSAPILightWeightMap::RemoveAt(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in RemoveAt()
461 JSThread *thread = argv->GetThread(); in Clear() local
462 BUILTINS_API_TRACE(thread, LightWeightMap, Clear); in Clear()
463 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Clear()
468 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Clear()
470 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Clear()
472 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Clear()
476 JSAPILightWeightMap::Clear(thread, JSHandle<JSAPILightWeightMap>::Cast(self)); in Clear()
483 JSThread *thread = argv->GetThread(); in SetValueAt() local
484 BUILTINS_API_TRACE(thread, LightWeightMap, SetValueAt); in SetValueAt()
485 [[maybe_unused]] EcmaHandleScope handleScope(thread); in SetValueAt()
490 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in SetValueAt()
492 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in SetValueAt()
494 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in SetValueAt()
501 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index); in SetValueAt()
504 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in SetValueAt()
505 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in SetValueAt()
508 return JSAPILightWeightMap::SetValueAt(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in SetValueAt()
515 JSThread *thread = argv->GetThread(); in ForEach() local
516 BUILTINS_API_TRACE(thread, LightWeightMap, ForEach); in ForEach()
517 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ForEach()
522 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in ForEach()
524 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in ForEach()
526 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ForEach()
532 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, func.GetTaggedValue()); in ForEach()
535 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in ForEach()
536 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ForEach()
541 JSMutableHandle<TaggedArray> keys(thread, tmap->GetKeys()); in ForEach()
542 JSMutableHandle<TaggedArray> values(thread, tmap->GetValues()); in ForEach()
547 JSHandle<JSTaggedValue> undefined = thread->GlobalConstants()->GetHandledUndefined(); in ForEach()
551 …EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, func, thisArg, undefined, … in ForEach()
552 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in ForEach()
555 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, ret); in ForEach()
571 JSThread *thread = argv->GetThread(); in ToString() local
572 BUILTINS_API_TRACE(thread, LightWeightMap, ToString); in ToString()
573 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ToString()
578 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in ToString()
580 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in ToString()
582 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ToString()
586 return JSAPILightWeightMap::ToString(thread, JSHandle<JSAPILightWeightMap>::Cast(self)); in ToString()
592 JSThread *thread = argv->GetThread(); in GetValueAt() local
593 BUILTINS_API_TRACE(thread, LightWeightMap, GetValueAt); in GetValueAt()
594 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetValueAt()
599 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetValueAt()
601 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetValueAt()
603 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetValueAt()
608 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index); in GetValueAt()
611 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in GetValueAt()
612 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetValueAt()
615 return JSAPILightWeightMap::GetValueAt(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in GetValueAt()
622 JSThread *thread = argv->GetThread(); in Values() local
623 BUILTINS_API_TRACE(thread, LightWeightMap, Keys); in Values()
624 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Values()
627 … JSAPILightWeightMapIterator::CreateLightWeightMapIterator(thread, self, IterationKind::VALUE); in Values()