• Home
  • Raw
  • Download

Lines Matching full:thread

32     JSThread *thread = argv->GetThread();  in ListConstructor()  local
33 BUILTINS_API_TRACE(thread, List, Constructor); in ListConstructor()
34 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ListConstructor()
35 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in ListConstructor()
39 ContainerError::BusinessError(thread, ErrorFlag::IS_NULL_ERROR, in ListConstructor()
41 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ListConstructor()
45 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in ListConstructor()
48 JSTaggedValue singleList = TaggedSingleList::Create(thread); in ListConstructor()
49 list->SetSingleList(thread, singleList); in ListConstructor()
57 JSThread *thread = argv->GetThread(); in Add() local
58 BUILTINS_API_TRACE(thread, List, Add); in Add()
59 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Add()
63 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Add()
65 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Add()
67 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Add()
73 JSAPIList::Add(thread, jSAPIList, value); in Add()
80 JSThread *thread = argv->GetThread(); in Insert() local
81 BUILTINS_API_TRACE(thread, List, Insert); in Insert()
82 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Insert()
86 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Insert()
88 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Insert()
90 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Insert()
96 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index.GetTaggedValue()); in Insert()
99 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in Insert()
100 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Insert()
103 JSAPIList::Insert(thread, jSAPIList, value, index->GetInt()); in Insert()
104 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in Insert()
111 JSThread *thread = argv->GetThread(); in GetFirst() local
112 BUILTINS_API_TRACE(thread, List, GetFirst); in GetFirst()
113 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetFirst()
117 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetFirst()
119 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetFirst()
121 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetFirst()
131 JSThread *thread = argv->GetThread(); in GetLast() local
132 BUILTINS_API_TRACE(thread, List, GetLast); in GetLast()
133 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetLast()
137 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetLast()
139 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetLast()
141 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetLast()
151 JSThread *thread = argv->GetThread(); in Has() local
152 BUILTINS_API_TRACE(thread, List, Has); in Has()
153 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Has()
157 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Has()
159 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Has()
161 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Has()
172 JSThread *thread = argv->GetThread(); in IsEmpty() local
173 BUILTINS_API_TRACE(thread, List, IsEmpty); in IsEmpty()
174 [[maybe_unused]] EcmaHandleScope handleScope(thread); in IsEmpty()
178 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in IsEmpty()
180 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in IsEmpty()
182 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in IsEmpty()
192 JSThread *thread = argv->GetThread(); in Get() local
193 BUILTINS_API_TRACE(thread, List, Get); in Get()
194 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Get()
198 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Get()
200 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Get()
202 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Get()
208 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index.GetTaggedValue()); in Get()
211 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in Get()
212 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Get()
220 JSThread *thread = argv->GetThread(); in GetIndexOf() local
221 BUILTINS_API_TRACE(thread, List, GetIndexOf); in GetIndexOf()
222 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetIndexOf()
226 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetIndexOf()
228 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetIndexOf()
230 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetIndexOf()
241 JSThread *thread = argv->GetThread(); in GetLastIndexOf() local
242 BUILTINS_API_TRACE(thread, List, GetLastIndexOf); in GetLastIndexOf()
243 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetLastIndexOf()
247 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetLastIndexOf()
249 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetLastIndexOf()
251 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetLastIndexOf()
262 JSThread *thread = argv->GetThread(); in Set() local
263 BUILTINS_API_TRACE(thread, List, Set); in Set()
264 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Set()
268 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Set()
270 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Set()
272 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Set()
278 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index.GetTaggedValue()); in Set()
281 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in Set()
282 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Set()
285 JSTaggedValue oldValue = JSAPIList::Set(thread, jsAPIList, index->GetInt(), element); in Set()
286 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in Set()
293 JSThread *thread = argv->GetThread(); in ForEach() local
294 BUILTINS_API_TRACE(thread, List, ForEach); in ForEach()
295 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ForEach()
300 … thisHandle = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(thisHandle)->GetTarget()); in ForEach()
302 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in ForEach()
304 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ForEach()
311 … JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, callbackFnHandle.GetTaggedValue()); in ForEach()
314 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in ForEach()
315 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ForEach()
321 JSHandle<TaggedSingleList> singleList(thread, list->GetSingleList()); in ForEach()
324 JSHandle<JSTaggedValue> undefined = thread->GlobalConstants()->GetHandledUndefined(); in ForEach()
332 …EcmaInterpreter::NewRuntimeCallInfo(thread, callbackFnHandle, thisArgHandle, undefined, argsLength… in ForEach()
333 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in ForEach()
336 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, funcResult); in ForEach()
345 JSThread *thread = argv->GetThread(); in Clear() local
346 BUILTINS_API_TRACE(thread, List, Clear); in Clear()
347 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Clear()
351 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Clear()
353 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Clear()
355 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Clear()
359 jsAPIList->Clear(thread); in Clear()
366 JSThread *thread = argv->GetThread(); in RemoveByIndex() local
367 BUILTINS_API_TRACE(thread, List, RemoveByIndex); in RemoveByIndex()
368 [[maybe_unused]] EcmaHandleScope handleScope(thread); in RemoveByIndex()
372 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in RemoveByIndex()
374 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in RemoveByIndex()
376 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in RemoveByIndex()
381 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, index.GetTaggedValue()); in RemoveByIndex()
384 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in RemoveByIndex()
385 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in RemoveByIndex()
388 JSTaggedValue result = JSAPIList::RemoveByIndex(thread, jsAPIList, index->GetInt()); in RemoveByIndex()
389 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in RemoveByIndex()
396 JSThread *thread = argv->GetThread(); in Remove() local
397 BUILTINS_API_TRACE(thread, List, Remove); in Remove()
398 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Remove()
402 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Remove()
404 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Remove()
406 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Remove()
411 return jsAPIList->Remove(thread, element.GetTaggedValue()); in Remove()
417 JSThread *thread = argv->GetThread(); in ReplaceAllElements() local
418 BUILTINS_API_TRACE(thread, List, ReplaceAllElements); in ReplaceAllElements()
422 … thisHandle = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(thisHandle)->GetTarget()); in ReplaceAllElements()
424 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in ReplaceAllElements()
426 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ReplaceAllElements()
431 … JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, callbackFnHandle.GetTaggedValue()); in ReplaceAllElements()
434 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in ReplaceAllElements()
435 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ReplaceAllElements()
438 return JSAPIList::ReplaceAllElements(thread, thisHandle, callbackFnHandle, thisArgHandle); in ReplaceAllElements()
444 JSThread *thread = argv->GetThread(); in Equal() local
445 BUILTINS_API_TRACE(thread, List, Equal); in Equal()
446 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Equal()
450 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Equal()
452 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Equal()
454 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Equal()
461 obj = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(obj)->GetTarget()); in Equal()
467 return jsAPIList->Equal(thread, handleObj); in Equal()
473 JSThread *thread = argv->GetThread(); in Sort() local
474 BUILTINS_API_TRACE(thread, List, Sort); in Sort()
475 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Sort()
479 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Sort()
481 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Sort()
483 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Sort()
488 … JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, callbackFnHandle.GetTaggedValue()); in Sort()
491 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in Sort()
492 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Sort()
494 return JSAPIList::Sort(thread, self, callbackFnHandle); in Sort()
500 JSThread *thread = argv->GetThread(); in GetIteratorObj() local
501 BUILTINS_API_TRACE(thread, List, GetIteratorObj); in GetIteratorObj()
502 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetIteratorObj()
504 JSHandle<JSTaggedValue> iter = JSAPIListIterator::CreateListIterator(thread, self); in GetIteratorObj()
511 JSThread *thread = argv->GetThread(); in ConvertToArray() local
512 BUILTINS_API_TRACE(thread, List, ConvertToArray); in ConvertToArray()
513 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ConvertToArray()
517 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in ConvertToArray()
519 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in ConvertToArray()
521 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ConvertToArray()
525 return JSAPIList::ConvertToArray(thread, jsAPIList); in ConvertToArray()
531 JSThread *thread = argv->GetThread(); in GetSubList() local
532 BUILTINS_API_TRACE(thread, List, GetSubList); in GetSubList()
533 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetSubList()
537 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetSubList()
539 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetSubList()
541 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetSubList()
547 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, fromIndex.GetTaggedValue()); in GetSubList()
550 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in GetSubList()
551 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetSubList()
557 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, toIndex.GetTaggedValue()); in GetSubList()
560 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in GetSubList()
561 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetSubList()
565 …JSTaggedValue newList = JSAPIList::GetSubList(thread, jsAPIList, fromIndex->GetInt(), toIndex->Get… in GetSubList()
566 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in GetSubList()
573 JSThread *thread = argv->GetThread(); in Length() local
574 BUILTINS_API_TRACE(thread, List, Length); in Length()
575 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Length()
579 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Length()
581 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Length()
583 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Length()