• Home
  • Raw
  • Download

Lines Matching full:thread

27     JSThread *thread = argv->GetThread();  in LightWeightSetConstructor()  local
28 BUILTINS_API_TRACE(thread, LightWeightSet, Constructor); in LightWeightSetConstructor()
29 [[maybe_unused]] EcmaHandleScope handleScope(thread); in LightWeightSetConstructor()
30 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in LightWeightSetConstructor()
34 ContainerError::BusinessError(thread, ErrorFlag::IS_NULL_ERROR, in LightWeightSetConstructor()
36 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in LightWeightSetConstructor()
40 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in LightWeightSetConstructor()
44 JSAPILightWeightSet::CreateSlot(thread, JSAPILightWeightSet::DEFAULT_CAPACITY_LENGTH); in LightWeightSetConstructor()
46 JSAPILightWeightSet::CreateSlot(thread, JSAPILightWeightSet::DEFAULT_CAPACITY_LENGTH); in LightWeightSetConstructor()
47 lightweightSet->SetHashes(thread, hashes); in LightWeightSetConstructor()
48 lightweightSet->SetValues(thread, values); in LightWeightSetConstructor()
55 JSThread *thread = argv->GetThread(); in Add() local
56 BUILTINS_API_TRACE(thread, LightWeightSet, Add); in Add()
57 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Add()
60 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in Add()
61 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Add()
63 JSTaggedValue error = ContainerError::BusinessError(thread, BIND_ERROR, in Add()
65 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Add()
69 bool flag = JSAPILightWeightSet::Add(thread, JSHandle<JSAPILightWeightSet>::Cast(self), value); in Add()
76 JSThread *thread = argv->GetThread(); in AddAll() local
77 BUILTINS_API_TRACE(thread, LightWeightSet, AddAll); in AddAll()
78 [[maybe_unused]] EcmaHandleScope handleScope(thread); in AddAll()
81 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in AddAll()
82 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in AddAll()
84 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in AddAll()
86 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in AddAll()
92 …if (value->IsJSProxy() && JSHandle<JSProxy>::Cast(value)->GetTarget(thread).IsJSAPILightWeightSet(… in AddAll()
93 … value = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(value)->GetTarget(thread)); in AddAll()
95 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, value.GetTaggedValue()); in AddAll()
96 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in AddAll()
98 …he type of \"set\" must be LightWeightSet. Received value is: " + ConvertToString(thread, *result); in AddAll()
99 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in AddAll()
100 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in AddAll()
104 …return JSTaggedValue(JSAPILightWeightSet::AddAll(thread, JSHandle<JSAPILightWeightSet>::Cast(self)… in AddAll()
110 JSThread *thread = argv->GetThread(); in IsEmpty() local
111 BUILTINS_API_TRACE(thread, LightWeightSet, IsEmpty); in IsEmpty()
112 [[maybe_unused]] EcmaHandleScope handleScope(thread); in IsEmpty()
115 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in IsEmpty()
116 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in IsEmpty()
118 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in IsEmpty()
120 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in IsEmpty()
130 JSThread *thread = argv->GetThread(); in GetValueAt() local
131 BUILTINS_API_TRACE(thread, LightWeightSet, GetValueAt); in GetValueAt()
132 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetValueAt()
135 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in GetValueAt()
136 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in GetValueAt()
138 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetValueAt()
140 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetValueAt()
145 … value = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(value->GetDouble())); in GetValueAt()
148 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, value.GetTaggedValue()); in GetValueAt()
149 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in GetValueAt()
151 …e type of \"index\" must be small integer. Received value is: " + ConvertToString(thread, *result); in GetValueAt()
152 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in GetValueAt()
153 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetValueAt()
156 return set->GetValueAt(thread, value->GetInt()); in GetValueAt()
162 JSThread *thread = argv->GetThread(); in HasAll() local
163 BUILTINS_API_TRACE(thread, LightWeightSet, HasAll); in HasAll()
164 [[maybe_unused]] EcmaHandleScope handleScope(thread); in HasAll()
167 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in HasAll()
168 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in HasAll()
170 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in HasAll()
172 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HasAll()
177 …if (value->IsJSProxy() && JSHandle<JSProxy>::Cast(value)->GetTarget(thread).IsJSAPILightWeightSet(… in HasAll()
178 … value = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(value)->GetTarget(thread)); in HasAll()
180 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, value.GetTaggedValue()); in HasAll()
181 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in HasAll()
183 …he type of \"set\" must be LightWeightSet. Received value is: " + ConvertToString(thread, *result); in HasAll()
184 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in HasAll()
185 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HasAll()
189 return JSTaggedValue(set->HasAll(thread, value)); in HasAll()
195 JSThread *thread = argv->GetThread(); in Has() local
196 BUILTINS_API_TRACE(thread, LightWeightSet, Has); in Has()
197 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Has()
200 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in Has()
201 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Has()
203 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Has()
205 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Has()
210 return JSTaggedValue(set->Has(thread, value)); in Has()
216 JSThread *thread = argv->GetThread(); in HasHash() local
217 BUILTINS_API_TRACE(thread, LightWeightSet, HasHash); in HasHash()
218 [[maybe_unused]] EcmaHandleScope handleScope(thread); in HasHash()
221 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in HasHash()
222 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in HasHash()
224 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in HasHash()
226 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HasHash()
231 return JSTaggedValue(set->HasHash(thread, value)); in HasHash()
237 JSThread *thread = argv->GetThread(); in Equal() local
238 BUILTINS_API_TRACE(thread, LightWeightSet, Equal); in Equal()
239 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Equal()
242 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in Equal()
243 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Equal()
245 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Equal()
247 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Equal()
251 …return JSTaggedValue(JSAPILightWeightSet::Equal(thread, JSHandle<JSAPILightWeightSet>::Cast(self),… in Equal()
257 JSThread *thread = argv->GetThread(); in IncreaseCapacityTo() local
258 BUILTINS_API_TRACE(thread, LightWeightSet, IncreaseCapacityTo); in IncreaseCapacityTo()
259 [[maybe_unused]] EcmaHandleScope handleScope(thread); in IncreaseCapacityTo()
262 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in IncreaseCapacityTo()
263 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in IncreaseCapacityTo()
265 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in IncreaseCapacityTo()
267 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in IncreaseCapacityTo()
274 … value = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(value->GetDouble())); in IncreaseCapacityTo()
278 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, value.GetTaggedValue()); in IncreaseCapacityTo()
279 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in IncreaseCapacityTo()
281 ConvertToString(thread, *result); in IncreaseCapacityTo()
282 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in IncreaseCapacityTo()
283 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in IncreaseCapacityTo()
286 …JSAPILightWeightSet::IncreaseCapacityTo(thread, JSHandle<JSAPILightWeightSet>::Cast(self), minCapa… in IncreaseCapacityTo()
287 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, JSTaggedValue::False()); in IncreaseCapacityTo()
294 JSThread *thread = argv->GetThread(); in GetIteratorObj() local
295 BUILTINS_API_TRACE(thread, LightWeightSet, GetIteratorObj); in GetIteratorObj()
296 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetIteratorObj()
299 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in GetIteratorObj()
300 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in GetIteratorObj()
302 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetIteratorObj()
304 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetIteratorObj()
308 …JSAPILightWeightSet::GetIteratorObj(thread, JSHandle<JSAPILightWeightSet>::Cast(self), IterationKi… in GetIteratorObj()
315 JSThread *thread = argv->GetThread(); in Values() local
316 BUILTINS_API_TRACE(thread, LightWeightSet, Values); in Values()
317 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Values()
320 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in Values()
321 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Values()
323 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Values()
325 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Values()
329 …JSAPILightWeightSet::GetIteratorObj(thread, JSHandle<JSAPILightWeightSet>::Cast(self), IterationKi… in Values()
336 JSThread *thread = argv->GetThread(); in Entries() local
337 BUILTINS_API_TRACE(thread, LightWeightSet, Entries); in Entries()
338 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Entries()
341 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in Entries()
342 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Entries()
344 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Entries()
346 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Entries()
350 JSAPILightWeightSet::GetIteratorObj(thread, JSHandle<JSAPILightWeightSet>::Cast(self), in Entries()
358 JSThread *thread = argv->GetThread(); in ForEach() local
359 BUILTINS_API_TRACE(thread, LightWeightSet, ForEach); in ForEach()
360 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ForEach()
366 JSHandle<JSProxy>::Cast(thisHandle)->GetTarget(thread).IsJSAPILightWeightSet()) { in ForEach()
367 …thisHandle = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(thisHandle)->GetTarget(thread in ForEach()
369 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in ForEach()
371 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ForEach()
376 … JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, callbackFnHandle.GetTaggedValue()); in ForEach()
377 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in ForEach()
379 …e type of \"callbackfn\" must be callable. Received value is: " + ConvertToString(thread, *result); in ForEach()
380 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in ForEach()
381 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ForEach()
384 return JSAPILightWeightSet::ForEach(thread, thisHandle, callbackFnHandle, thisArgHandle); in ForEach()
390 JSThread *thread = argv->GetThread(); in GetIndexOf() local
391 BUILTINS_API_TRACE(thread, LightWeightSet, GetIndexOf); in GetIndexOf()
392 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetIndexOf()
395 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in GetIndexOf()
396 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in GetIndexOf()
398 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetIndexOf()
400 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetIndexOf()
405 int32_t result = set->GetIndexOf(thread, value); in GetIndexOf()
412 JSThread *thread = argv->GetThread(); in Remove() local
413 BUILTINS_API_TRACE(thread, LightWeightSet, Remove); in Remove()
414 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Remove()
417 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in Remove()
418 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Remove()
420 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Remove()
422 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Remove()
427 JSAPILightWeightSet::CheckAndCopyValues(thread, lightweightset); in Remove()
429 return set->Remove(thread, key); in Remove()
435 JSThread *thread = argv->GetThread(); in RemoveAt() local
436 BUILTINS_API_TRACE(thread, LightWeightSet, RemoveAt); in RemoveAt()
437 [[maybe_unused]] EcmaHandleScope handleScope(thread); in RemoveAt()
440 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in RemoveAt()
441 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in RemoveAt()
443 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in RemoveAt()
445 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in RemoveAt()
450 … value = JSHandle<JSTaggedValue>(thread, JSTaggedValue::TryCastDoubleToInt32(value->GetDouble())); in RemoveAt()
453 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, value.GetTaggedValue()); in RemoveAt()
454 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in RemoveAt()
456 …e type of \"index\" must be small integer. Received value is: " + ConvertToString(thread, *result); in RemoveAt()
457 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in RemoveAt()
458 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in RemoveAt()
461 JSAPILightWeightSet::CheckAndCopyValues(thread, lightweightset); in RemoveAt()
463 return JSTaggedValue(set->RemoveAt(thread, value->GetInt())); in RemoveAt()
469 JSThread *thread = argv->GetThread(); in Clear() local
470 BUILTINS_API_TRACE(thread, LightWeightSet, Clear); in Clear()
471 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Clear()
474 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in Clear()
475 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Clear()
477 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Clear()
479 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Clear()
483 set->Clear(thread); in Clear()
490 JSThread *thread = argv->GetThread(); in ToString() local
491 BUILTINS_API_TRACE(thread, LightWeightSet, ToString); in ToString()
492 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ToString()
495 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in ToString()
496 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in ToString()
498 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in ToString()
500 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ToString()
503 …JSTaggedValue value = JSAPILightWeightSet::ToString(thread, JSHandle<JSAPILightWeightSet>::Cast(se… in ToString()
504 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in ToString()
511 JSThread *thread = argv->GetThread(); in ToArray() local
512 BUILTINS_API_TRACE(thread, LightWeightSet, ToArray); in ToArray()
513 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ToArray()
516 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in ToArray()
517 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in ToArray()
519 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in ToArray()
521 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ToArray()
525 auto factory = thread->GetEcmaVM()->GetFactory(); in ToArray()
529 array->SetArrayLength(thread, length); in ToArray()
531 JSHandle<TaggedArray> srcArray(thread, lightweightset->GetValues(thread)); in ToArray()
534 array->SetElements(thread, srcArray.GetTaggedValue()); in ToArray()
540 lightweightset->SetValues(thread, newElements.GetTaggedValue()); in ToArray()
541 array->SetElements(thread, newElements); in ToArray()
548 JSThread *thread = argv->GetThread(); in GetSize() local
549 BUILTINS_API_TRACE(thread, LightWeightSet, GetSize); in GetSize()
550 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetSize()
553 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in GetSize()
554 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in GetSize()
556 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetSize()
558 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetSize()