Lines Matching full:thread
28 JSThread *thread = argv->GetThread(); in LightWeightMapConstructor() local
29 BUILTINS_API_TRACE(thread, LightWeightMap, Constructor); in LightWeightMapConstructor()
30 [[maybe_unused]] EcmaHandleScope handleScope(thread); in LightWeightMapConstructor()
31 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in LightWeightMapConstructor()
35 ContainerError::BusinessError(thread, ErrorFlag::IS_NULL_ERROR, in LightWeightMapConstructor()
37 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in LightWeightMapConstructor()
41 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in LightWeightMapConstructor()
46 lwMap->SetHashes(thread, hashArray.GetTaggedValue()); in LightWeightMapConstructor()
47 lwMap->SetKeys(thread, keyArray.GetTaggedValue()); in LightWeightMapConstructor()
48 lwMap->SetValues(thread, valueArray.GetTaggedValue()); in LightWeightMapConstructor()
56 JSThread *thread = argv->GetThread(); in Length() local
57 BUILTINS_API_TRACE(thread, LightWeightMap, Length); in Length()
58 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Length()
63 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Length()
65 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Length()
67 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Length()
77 JSThread *thread = argv->GetThread(); in HasAll() local
78 BUILTINS_API_TRACE(thread, LightWeightMap, HasAll); in HasAll()
79 [[maybe_unused]] EcmaHandleScope handleScope(thread); in HasAll()
84 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in HasAll()
86 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in HasAll()
88 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HasAll()
96 …lightWeightMap = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(lightWeightMap)->GetTarge… in HasAll()
98 … JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, lightWeightMap.GetTaggedValue()); in HasAll()
99 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in HasAll()
102 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in HasAll()
103 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HasAll()
107 return JSAPILightWeightMap::HasAll(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in HasAll()
114 JSThread *thread = argv->GetThread(); in HasKey() local
115 BUILTINS_API_TRACE(thread, LightWeightMap, HasKey); in HasKey()
116 [[maybe_unused]] EcmaHandleScope handleScope(thread); in HasKey()
121 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in HasKey()
123 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in HasKey()
125 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HasKey()
130 return JSAPILightWeightMap::HasKey(thread, JSHandle<JSAPILightWeightMap>::Cast(self), key); in HasKey()
136 JSThread *thread = argv->GetThread(); in HasValue() local
137 BUILTINS_API_TRACE(thread, LightWeightMap, HasValue); in HasValue()
138 [[maybe_unused]] EcmaHandleScope handleScope(thread); in HasValue()
143 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in HasValue()
145 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in HasValue()
147 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HasValue()
152 return JSAPILightWeightMap::HasValue(thread, JSHandle<JSAPILightWeightMap>::Cast(self), value); in HasValue()
158 JSThread *thread = argv->GetThread(); in IncreaseCapacityTo() local
159 BUILTINS_API_TRACE(thread, LightWeightMap, IncreaseCapacityTo); in IncreaseCapacityTo()
160 [[maybe_unused]] EcmaHandleScope handleScope(thread); in IncreaseCapacityTo()
165 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in IncreaseCapacityTo()
167 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in IncreaseCapacityTo()
169 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in IncreaseCapacityTo()
177 … index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in IncreaseCapacityTo()
181 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index); in IncreaseCapacityTo()
182 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); 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 … index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in GetKeyAt()
322 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index); in GetKeyAt()
323 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in GetKeyAt()
326 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in GetKeyAt()
327 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetKeyAt()
330 return JSAPILightWeightMap::GetKeyAt(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in GetKeyAt()
337 JSThread *thread = argv->GetThread(); in Keys() local
338 BUILTINS_API_TRACE(thread, LightWeightMap, Keys); in Keys()
339 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Keys()
342 JSAPILightWeightMapIterator::CreateLightWeightMapIterator(thread, self, IterationKind::KEY); in Keys()
349 JSThread *thread = argv->GetThread(); in SetAll() local
350 BUILTINS_API_TRACE(thread, LightWeightMap, SetAll); in SetAll()
351 [[maybe_unused]] EcmaHandleScope handleScope(thread); in SetAll()
356 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in SetAll()
358 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in SetAll()
360 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in SetAll()
369 …lightWeightMap = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(lightWeightMap)->GetTarge… in SetAll()
371 … JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, lightWeightMap.GetTaggedValue()); in SetAll()
372 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in SetAll()
375 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in SetAll()
376 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in SetAll()
380 JSAPILightWeightMap::SetAll(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in SetAll()
388 JSThread *thread = argv->GetThread(); in Set() local
389 BUILTINS_API_TRACE(thread, LightWeightMap, Set); in Set()
390 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Set()
395 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Set()
397 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Set()
399 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Set()
406 JSAPILightWeightMap::Set(thread, lightWeightMap, key, value); in Set()
414 JSThread *thread = argv->GetThread(); in Remove() local
415 BUILTINS_API_TRACE(thread, LightWeightMap, Remove); in Remove()
416 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Remove()
421 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Remove()
423 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Remove()
425 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Remove()
430 return JSAPILightWeightMap::Remove(thread, JSHandle<JSAPILightWeightMap>::Cast(self), key); in Remove()
436 JSThread *thread = argv->GetThread(); in RemoveAt() local
437 BUILTINS_API_TRACE(thread, LightWeightMap, RemoveAt); in RemoveAt()
438 [[maybe_unused]] EcmaHandleScope handleScope(thread); in RemoveAt()
443 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in RemoveAt()
445 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in RemoveAt()
447 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in RemoveAt()
454 … index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in RemoveAt()
457 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index); in RemoveAt()
458 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in RemoveAt()
461 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in RemoveAt()
462 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in RemoveAt()
465 return JSAPILightWeightMap::RemoveAt(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in RemoveAt()
472 JSThread *thread = argv->GetThread(); in Clear() local
473 BUILTINS_API_TRACE(thread, LightWeightMap, Clear); in Clear()
474 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Clear()
479 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Clear()
481 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Clear()
483 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Clear()
487 JSAPILightWeightMap::Clear(thread, JSHandle<JSAPILightWeightMap>::Cast(self)); in Clear()
494 JSThread *thread = argv->GetThread(); in SetValueAt() local
495 BUILTINS_API_TRACE(thread, LightWeightMap, SetValueAt); in SetValueAt()
496 [[maybe_unused]] EcmaHandleScope handleScope(thread); in SetValueAt()
501 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in SetValueAt()
503 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in SetValueAt()
505 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in SetValueAt()
512 … index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in SetValueAt()
515 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index); in SetValueAt()
516 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in SetValueAt()
519 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in SetValueAt()
520 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in SetValueAt()
523 return JSAPILightWeightMap::SetValueAt(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in SetValueAt()
530 JSThread *thread = argv->GetThread(); in ForEach() local
531 BUILTINS_API_TRACE(thread, LightWeightMap, ForEach); in ForEach()
532 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ForEach()
537 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in ForEach()
539 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in ForEach()
541 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ForEach()
547 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, func.GetTaggedValue()); in ForEach()
548 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in ForEach()
551 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in ForEach()
552 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ForEach()
557 JSMutableHandle<TaggedArray> keys(thread, tmap->GetKeys()); in ForEach()
558 JSMutableHandle<TaggedArray> values(thread, tmap->GetValues()); in ForEach()
563 JSHandle<JSTaggedValue> undefined = thread->GlobalConstants()->GetHandledUndefined(); in ForEach()
567 …EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, func, thisArg, undefined, … in ForEach()
568 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in ForEach()
571 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, ret); in ForEach()
587 JSThread *thread = argv->GetThread(); in ToString() local
588 BUILTINS_API_TRACE(thread, LightWeightMap, ToString); in ToString()
589 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ToString()
594 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in ToString()
596 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in ToString()
598 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ToString()
602 return JSAPILightWeightMap::ToString(thread, JSHandle<JSAPILightWeightMap>::Cast(self)); in ToString()
608 JSThread *thread = argv->GetThread(); in GetValueAt() local
609 BUILTINS_API_TRACE(thread, LightWeightMap, GetValueAt); in GetValueAt()
610 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetValueAt()
615 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetValueAt()
617 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetValueAt()
619 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetValueAt()
624 … index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in GetValueAt()
627 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index); in GetValueAt()
628 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in GetValueAt()
631 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in GetValueAt()
632 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetValueAt()
636 … index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in GetValueAt()
638 return JSAPILightWeightMap::GetValueAt(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in GetValueAt()
645 JSThread *thread = argv->GetThread(); in Values() local
646 BUILTINS_API_TRACE(thread, LightWeightMap, Keys); in Values()
647 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Values()
650 … JSAPILightWeightMapIterator::CreateLightWeightMapIterator(thread, self, IterationKind::VALUE); in Values()