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()
62 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in Length()
63 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); 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()
83 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in HasAll()
84 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); 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()
95 JSHandle<JSProxy>::Cast(lightWeightMap)->GetTarget(thread).IsJSAPILightWeightMap()) { in HasAll()
97 … JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(lightWeightMap)->GetTarget(thread)); in HasAll()
99 … JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, lightWeightMap.GetTaggedValue()); in HasAll()
100 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in HasAll()
102 …he type of \"map\" must be LightWeightMap. Received value is: " + ConvertToString(thread, *result); in HasAll()
103 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in HasAll()
104 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HasAll()
108 return JSAPILightWeightMap::HasAll(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in HasAll()
115 JSThread *thread = argv->GetThread(); in HasKey() local
116 BUILTINS_API_TRACE(thread, LightWeightMap, HasKey); in HasKey()
117 [[maybe_unused]] EcmaHandleScope handleScope(thread); in HasKey()
121 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in HasKey()
122 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in HasKey()
124 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in HasKey()
126 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HasKey()
131 return JSAPILightWeightMap::HasKey(thread, JSHandle<JSAPILightWeightMap>::Cast(self), key); in HasKey()
137 JSThread *thread = argv->GetThread(); in HasValue() local
138 BUILTINS_API_TRACE(thread, LightWeightMap, HasValue); in HasValue()
139 [[maybe_unused]] EcmaHandleScope handleScope(thread); in HasValue()
143 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in HasValue()
144 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in HasValue()
146 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in HasValue()
148 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HasValue()
153 return JSAPILightWeightMap::HasValue(thread, JSHandle<JSAPILightWeightMap>::Cast(self), value); in HasValue()
159 JSThread *thread = argv->GetThread(); in IncreaseCapacityTo() local
160 BUILTINS_API_TRACE(thread, LightWeightMap, IncreaseCapacityTo); in IncreaseCapacityTo()
161 [[maybe_unused]] EcmaHandleScope handleScope(thread); in IncreaseCapacityTo()
165 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in IncreaseCapacityTo()
166 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in IncreaseCapacityTo()
168 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in IncreaseCapacityTo()
170 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in IncreaseCapacityTo()
178 … index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in IncreaseCapacityTo()
182 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index); in IncreaseCapacityTo()
183 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in IncreaseCapacityTo()
185 ConvertToString(thread, *result); in IncreaseCapacityTo()
186 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in IncreaseCapacityTo()
187 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in IncreaseCapacityTo()
189 JSAPILightWeightMap::IncreaseCapacityTo(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in IncreaseCapacityTo()
192 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in IncreaseCapacityTo()
199 JSThread *thread = argv->GetThread(); in Entries() local
200 BUILTINS_API_TRACE(thread, LightWeightMap, Entries); in Entries()
201 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Entries()
204 …JSAPILightWeightMapIterator::CreateLightWeightMapIterator(thread, self, IterationKind::KEY_AND_VAL… in Entries()
211 JSThread *thread = argv->GetThread(); in Get() local
212 BUILTINS_API_TRACE(thread, LightWeightMap, Get); in Get()
213 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Get()
217 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in Get()
218 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Get()
220 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Get()
222 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Get()
228 return JSAPILightWeightMap::Get(thread, JSHandle<JSAPILightWeightMap>::Cast(self), key); in Get()
234 JSThread *thread = argv->GetThread(); in GetIndexOfKey() local
235 BUILTINS_API_TRACE(thread, LightWeightMap, GetIndexOfKey); in GetIndexOfKey()
236 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetIndexOfKey()
240 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in GetIndexOfKey()
241 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in GetIndexOfKey()
243 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetIndexOfKey()
245 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetIndexOfKey()
251 …int32_t index = JSAPILightWeightMap::GetIndexOfKey(thread, JSHandle<JSAPILightWeightMap>::Cast(sel… in GetIndexOfKey()
258 JSThread *thread = argv->GetThread(); in GetIndexOfValue() local
259 BUILTINS_API_TRACE(thread, LightWeightMap, GetIndexOfValue); in GetIndexOfValue()
260 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetIndexOfValue()
264 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in GetIndexOfValue()
265 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in GetIndexOfValue()
267 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetIndexOfValue()
269 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetIndexOfValue()
275 …int32_t index = JSAPILightWeightMap::GetIndexOfValue(thread, JSHandle<JSAPILightWeightMap>::Cast(s… in GetIndexOfValue()
282 JSThread *thread = argv->GetThread(); in IsEmpty() local
283 BUILTINS_API_TRACE(thread, LightWeightMap, IsEmpty); in IsEmpty()
284 [[maybe_unused]] EcmaHandleScope handleScope(thread); in IsEmpty()
288 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in IsEmpty()
289 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in IsEmpty()
291 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in IsEmpty()
293 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in IsEmpty()
302 JSThread *thread = argv->GetThread(); in GetKeyAt() local
303 BUILTINS_API_TRACE(thread, LightWeightMap, GetKeyAt); in GetKeyAt()
304 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetKeyAt()
308 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in GetKeyAt()
309 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in GetKeyAt()
311 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetKeyAt()
313 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetKeyAt()
320 … index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in GetKeyAt()
323 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index); in GetKeyAt()
324 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in GetKeyAt()
326 …e type of \"index\" must be small integer. Received value is: " + ConvertToString(thread, *result); in GetKeyAt()
327 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in GetKeyAt()
328 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetKeyAt()
331 return JSAPILightWeightMap::GetKeyAt(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in GetKeyAt()
338 JSThread *thread = argv->GetThread(); in Keys() local
339 BUILTINS_API_TRACE(thread, LightWeightMap, Keys); in Keys()
340 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Keys()
343 JSAPILightWeightMapIterator::CreateLightWeightMapIterator(thread, self, IterationKind::KEY); in Keys()
350 JSThread *thread = argv->GetThread(); in SetAll() local
351 BUILTINS_API_TRACE(thread, LightWeightMap, SetAll); in SetAll()
352 [[maybe_unused]] EcmaHandleScope handleScope(thread); in SetAll()
356 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in SetAll()
357 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in SetAll()
359 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in SetAll()
361 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in SetAll()
369 JSHandle<JSProxy>::Cast(lightWeightMap)->GetTarget(thread).IsJSAPILightWeightMap()) { in SetAll()
371 … JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(lightWeightMap)->GetTarget(thread)); in SetAll()
373 … JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, lightWeightMap.GetTaggedValue()); in SetAll()
374 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in SetAll()
376 …he type of \"map\" must be LightWeightMap. Received value is: " + ConvertToString(thread, *result); in SetAll()
377 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in SetAll()
378 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in SetAll()
382 JSAPILightWeightMap::SetAll(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in SetAll()
390 JSThread *thread = argv->GetThread(); in Set() local
391 BUILTINS_API_TRACE(thread, LightWeightMap, Set); in Set()
392 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Set()
396 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in Set()
397 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Set()
399 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Set()
401 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Set()
408 JSAPILightWeightMap::Set(thread, lightWeightMap, key, value); in Set()
416 JSThread *thread = argv->GetThread(); in Remove() local
417 BUILTINS_API_TRACE(thread, LightWeightMap, Remove); in Remove()
418 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Remove()
422 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in Remove()
423 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Remove()
425 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Remove()
427 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Remove()
432 return JSAPILightWeightMap::Remove(thread, JSHandle<JSAPILightWeightMap>::Cast(self), key); in Remove()
438 JSThread *thread = argv->GetThread(); in RemoveAt() local
439 BUILTINS_API_TRACE(thread, LightWeightMap, RemoveAt); in RemoveAt()
440 [[maybe_unused]] EcmaHandleScope handleScope(thread); in RemoveAt()
444 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in RemoveAt()
445 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in RemoveAt()
447 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in RemoveAt()
449 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in RemoveAt()
456 … index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in RemoveAt()
459 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index); in RemoveAt()
460 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in RemoveAt()
462 …e type of \"index\" must be small integer. Received value is: " + ConvertToString(thread, *result); in RemoveAt()
463 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in RemoveAt()
464 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in RemoveAt()
467 return JSAPILightWeightMap::RemoveAt(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in RemoveAt()
474 JSThread *thread = argv->GetThread(); in Clear() local
475 BUILTINS_API_TRACE(thread, LightWeightMap, Clear); in Clear()
476 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Clear()
480 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in Clear()
481 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Clear()
483 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Clear()
485 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Clear()
489 JSAPILightWeightMap::Clear(thread, JSHandle<JSAPILightWeightMap>::Cast(self)); in Clear()
496 JSThread *thread = argv->GetThread(); in SetValueAt() local
497 BUILTINS_API_TRACE(thread, LightWeightMap, SetValueAt); in SetValueAt()
498 [[maybe_unused]] EcmaHandleScope handleScope(thread); in SetValueAt()
502 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in SetValueAt()
503 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in SetValueAt()
505 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in SetValueAt()
507 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in SetValueAt()
514 … index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in SetValueAt()
517 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index); in SetValueAt()
518 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in SetValueAt()
520 …e type of \"index\" must be small integer. Received value is: " + ConvertToString(thread, *result); in SetValueAt()
521 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in SetValueAt()
522 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in SetValueAt()
525 return JSAPILightWeightMap::SetValueAt(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in SetValueAt()
532 JSThread *thread = argv->GetThread(); in ForEach() local
533 BUILTINS_API_TRACE(thread, LightWeightMap, ForEach); in ForEach()
534 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ForEach()
538 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in ForEach()
539 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in ForEach()
541 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in ForEach()
543 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ForEach()
549 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, func.GetTaggedValue()); in ForEach()
550 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in ForEach()
552 …e type of \"callbackfn\" must be callable. Received value is: " + ConvertToString(thread, *result); in ForEach()
553 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in ForEach()
554 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ForEach()
559 JSMutableHandle<TaggedArray> keys(thread, tmap->GetKeys(thread)); in ForEach()
560 JSMutableHandle<TaggedArray> values(thread, tmap->GetValues(thread)); in ForEach()
565 JSHandle<JSTaggedValue> undefined = thread->GlobalConstants()->GetHandledUndefined(); in ForEach()
569 …EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, func, thisArg, undefined, … in ForEach()
570 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in ForEach()
571 … info->SetCallArg(values->Get(thread, index), keys->Get(thread, index), self.GetTaggedValue()); in ForEach()
573 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, ret); in ForEach()
577 keys.Update(tmap->GetKeys(thread)); in ForEach()
578 values.Update(tmap->GetValues(thread)); in ForEach()
589 JSThread *thread = argv->GetThread(); in ToString() local
590 BUILTINS_API_TRACE(thread, LightWeightMap, ToString); in ToString()
591 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ToString()
595 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in ToString()
596 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in ToString()
598 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in ToString()
600 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ToString()
604 return JSAPILightWeightMap::ToString(thread, JSHandle<JSAPILightWeightMap>::Cast(self)); in ToString()
610 JSThread *thread = argv->GetThread(); in GetValueAt() local
611 BUILTINS_API_TRACE(thread, LightWeightMap, GetValueAt); in GetValueAt()
612 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetValueAt()
616 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in GetValueAt()
617 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in GetValueAt()
619 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetValueAt()
621 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetValueAt()
626 … index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in GetValueAt()
629 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index); in GetValueAt()
630 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in GetValueAt()
632 …e type of \"index\" must be small integer. Received value is: " + ConvertToString(thread, *result); in GetValueAt()
633 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in GetValueAt()
634 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetValueAt()
638 … index = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(index->GetDouble())); in GetValueAt()
640 return JSAPILightWeightMap::GetValueAt(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in GetValueAt()
647 JSThread *thread = argv->GetThread(); in Values() local
648 BUILTINS_API_TRACE(thread, LightWeightMap, Keys); in Values()
649 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Values()
652 … JSAPILightWeightMapIterator::CreateLightWeightMapIterator(thread, self, IterationKind::VALUE); in Values()