• Home
  • Raw
  • Download

Lines Matching full:thread

32     JSThread *thread = argv->GetThread();  in VectorConstructor()  local
33 BUILTINS_API_TRACE(thread, Vector, Constructor); in VectorConstructor()
34 [[maybe_unused]] EcmaHandleScope handleScope(thread); in VectorConstructor()
36 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in VectorConstructor()
39 … THROW_TYPE_ERROR_AND_RETURN(thread, "new target can't be undefined", JSTaggedValue::Exception()); in VectorConstructor()
44 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in VectorConstructor()
46 obj->SetElements(thread, newTaggedArray); in VectorConstructor()
54 JSThread *thread = argv->GetThread(); in Add() local
55 BUILTINS_API_TRACE(thread, Vector, Add); in Add()
56 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Add()
61 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Add()
63 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in Add()
67 JSAPIVector::Add(thread, JSHandle<JSAPIVector>::Cast(self), value); in Add()
68 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in Add()
76 JSThread *thread = argv->GetThread(); in Insert() local
77 BUILTINS_API_TRACE(thread, Vector, Insert); in Insert()
78 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Insert()
83 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Insert()
85 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in Insert()
91 …THROW_TYPE_ERROR_AND_RETURN(thread, "The passed in index needs to be number", JSTaggedValue::Excep… in Insert()
93 int32_t indexInt = JSTaggedValue::ToInt32(thread, index); in Insert()
94 JSAPIVector::Insert(thread, JSHandle<JSAPIVector>::Cast(self), value, indexInt); in Insert()
95 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in Insert()
103 JSThread *thread = argv->GetThread(); in SetLength() local
104 BUILTINS_API_TRACE(thread, Vector, SetLength); in SetLength()
105 [[maybe_unused]] EcmaHandleScope handleScope(thread); in SetLength()
110 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in SetLength()
112 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in SetLength()
117 …THROW_TYPE_ERROR_AND_RETURN(thread, "The passed in parameter needs to be number", JSTaggedValue::E… in SetLength()
120 … THROW_RANGE_ERROR_AND_RETURN(thread, "An incorrect size was set", JSTaggedValue::Exception()); in SetLength()
122 …JSAPIVector::SetLength(thread, JSHandle<JSAPIVector>::Cast(self), JSTaggedValue::ToUint32(thread, … in SetLength()
123 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in SetLength()
130 JSThread *thread = argv->GetThread(); in GetCapacity() local
131 BUILTINS_API_TRACE(thread, Vector, GetCapacity); in GetCapacity()
132 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetCapacity()
137 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetCapacity()
139 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in GetCapacity()
143 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in GetCapacity()
151 JSThread *thread = argv->GetThread(); in IncreaseCapacityTo() local
152 BUILTINS_API_TRACE(thread, Vector, IncreaseCapacityTo); in IncreaseCapacityTo()
153 [[maybe_unused]] EcmaHandleScope handleScope(thread); in IncreaseCapacityTo()
158 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in IncreaseCapacityTo()
160 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in IncreaseCapacityTo()
165 …THROW_TYPE_ERROR_AND_RETURN(thread, "The passed in parameter needs to be number", JSTaggedValue::E… in IncreaseCapacityTo()
167 JSAPIVector::IncreaseCapacityTo(thread, in IncreaseCapacityTo()
169 JSTaggedValue::ToInt32(thread, newCapacity)); in IncreaseCapacityTo()
170 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in IncreaseCapacityTo()
178 JSThread *thread = argv->GetThread(); in Get() local
179 BUILTINS_API_TRACE(thread, Vector, Get); in Get()
180 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Get()
185 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Get()
187 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in Get()
192 …THROW_TYPE_ERROR_AND_RETURN(thread, "The passed in index needs to be number", JSTaggedValue::Excep… in Get()
194 int32_t indexInt = JSTaggedValue::ToInt32(thread, index); in Get()
195 JSTaggedValue value = JSAPIVector::Get(thread, JSHandle<JSAPIVector>::Cast(self), indexInt); in Get()
196 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in Get()
204 JSThread *thread = argv->GetThread(); in GetIndexOf() local
205 BUILTINS_API_TRACE(thread, Vector, GetIndexOf); in GetIndexOf()
206 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetIndexOf()
211 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetIndexOf()
213 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in GetIndexOf()
217 int index = JSAPIVector::GetIndexOf(thread, JSHandle<JSAPIVector>::Cast(self), element); in GetIndexOf()
218 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in GetIndexOf()
226 JSThread *thread = argv->GetThread(); in GetIndexFrom() local
227 BUILTINS_API_TRACE(thread, Vector, GetIndexFrom); in GetIndexFrom()
228 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetIndexFrom()
233 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetIndexFrom()
235 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in GetIndexFrom()
241 …THROW_TYPE_ERROR_AND_RETURN(thread, "The passed in index needs to be number", JSTaggedValue::Excep… in GetIndexFrom()
243 int32_t indexInt = JSTaggedValue::ToInt32(thread, index); in GetIndexFrom()
244 int indexOut = JSAPIVector::GetIndexFrom(thread, JSHandle<JSAPIVector>::Cast(self), in GetIndexFrom()
246 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in GetIndexFrom()
254 JSThread *thread = argv->GetThread(); in IsEmpty() local
255 BUILTINS_API_TRACE(thread, Vector, IsEmpty); in IsEmpty()
256 [[maybe_unused]] EcmaHandleScope handleScope(thread); in IsEmpty()
261 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in IsEmpty()
263 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in IsEmpty()
274 JSThread *thread = argv->GetThread(); in GetLastElement() local
275 BUILTINS_API_TRACE(thread, Vector, GetLastElement); in GetLastElement()
276 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetLastElement()
281 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetLastElement()
283 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in GetLastElement()
294 JSThread *thread = argv->GetThread(); in GetLastIndexOf() local
295 BUILTINS_API_TRACE(thread, Vector, GetLastIndexOf); in GetLastIndexOf()
296 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetLastIndexOf()
301 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetLastIndexOf()
303 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in GetLastIndexOf()
307 int index = JSAPIVector::GetLastIndexOf(thread, JSHandle<JSAPIVector>::Cast(self), element); in GetLastIndexOf()
308 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in GetLastIndexOf()
316 JSThread *thread = argv->GetThread(); in GetLastIndexFrom() local
317 BUILTINS_API_TRACE(thread, Vector, GetLastIndexFrom); in GetLastIndexFrom()
318 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetLastIndexFrom()
323 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetLastIndexFrom()
325 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in GetLastIndexFrom()
331 …THROW_TYPE_ERROR_AND_RETURN(thread, "The passed in index needs to be number", JSTaggedValue::Excep… in GetLastIndexFrom()
333 int32_t indexInt = JSTaggedValue::ToInt32(thread, index); in GetLastIndexFrom()
334 int indexOut = JSAPIVector::GetLastIndexFrom(thread, JSHandle<JSAPIVector>::Cast(self), in GetLastIndexFrom()
336 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in GetLastIndexFrom()
343 JSThread *thread = argv->GetThread(); in Remove() local
344 BUILTINS_API_TRACE(thread, Vector, Remove); in Remove()
345 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Remove()
351 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Remove()
353 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in Remove()
358 bool ret = JSAPIVector::Remove(thread, JSHandle<JSAPIVector>::Cast(self), element); in Remove()
359 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in Remove()
366 JSThread *thread = argv->GetThread(); in RemoveByIndex() local
367 BUILTINS_API_TRACE(thread, Vector, RemoveByIndex); in RemoveByIndex()
368 [[maybe_unused]] EcmaHandleScope handleScope(thread); in RemoveByIndex()
373 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in RemoveByIndex()
375 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in RemoveByIndex()
380 …THROW_TYPE_ERROR_AND_RETURN(thread, "The passed in index needs to be number", JSTaggedValue::Excep… in RemoveByIndex()
383 …JSAPIVector::RemoveByIndex(thread, JSHandle<JSAPIVector>::Cast(self), JSTaggedValue::ToInt32(threa… in RemoveByIndex()
384 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in RemoveByIndex()
391 JSThread *thread = argv->GetThread(); in RemoveByRange() local
392 BUILTINS_API_TRACE(thread, Vector, RemoveByRange); in RemoveByRange()
393 [[maybe_unused]] EcmaHandleScope handleScope(thread); in RemoveByRange()
398 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in RemoveByRange()
400 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in RemoveByRange()
406 …THROW_TYPE_ERROR_AND_RETURN(thread, "The passed in parameter needs to be number", JSTaggedValue::E… in RemoveByRange()
409 JSAPIVector::RemoveByRange(thread, JSHandle<JSAPIVector>::Cast(self), in RemoveByRange()
410 JSTaggedValue::ToInt32(thread, fromIndex), in RemoveByRange()
411 JSTaggedValue::ToInt32(thread, toIndex)); in RemoveByRange()
412 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in RemoveByRange()
419 JSThread *thread = argv->GetThread(); in Set() local
420 BUILTINS_API_TRACE(thread, Vector, Set); in Set()
421 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Set()
426 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Set()
428 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in Set()
434 …THROW_TYPE_ERROR_AND_RETURN(thread, "The passed in index needs to be number", JSTaggedValue::Excep… in Set()
437 int32_t indexInt = JSTaggedValue::ToInt32(thread, index); in Set()
440 … THROW_RANGE_ERROR_AND_RETURN(thread, "the index is out-of-bounds", JSTaggedValue::Exception()); in Set()
442 JSTaggedValue value = JSHandle<JSAPIVector>::Cast(self)->Set(thread, in Set()
451 JSThread *thread = argv->GetThread(); in SubVector() local
452 BUILTINS_API_TRACE(thread, Vector, SubVector); in SubVector()
453 [[maybe_unused]] EcmaHandleScope handleScope(thread); in SubVector()
458 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in SubVector()
460 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in SubVector()
466 …THROW_TYPE_ERROR_AND_RETURN(thread, "The passed in parameter needs to be number", JSTaggedValue::E… in SubVector()
468 …JSHandle<JSAPIVector> subVector = JSAPIVector::SubVector(thread, JSHandle<JSAPIVector>::Cast(self), in SubVector()
469 … JSTaggedValue::ToInt32(thread, fromIndex), in SubVector()
470 … JSTaggedValue::ToInt32(thread, toIndex)); in SubVector()
471 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in SubVector()
478 JSThread *thread = argv->GetThread(); in ToString() local
479 BUILTINS_API_TRACE(thread, Vector, ToString); in ToString()
480 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ToString()
485 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in ToString()
487 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in ToString()
491 JSTaggedValue value = JSAPIVector::ToString(thread, JSHandle<JSAPIVector>::Cast(self)); in ToString()
492 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in ToString()
499 JSThread *thread = argv->GetThread(); in GetSize() local
500 BUILTINS_API_TRACE(thread, Vector, GetSize); in GetSize()
501 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetSize()
506 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetSize()
508 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in GetSize()
519 JSThread *thread = argv->GetThread(); in ForEach() local
520 BUILTINS_API_TRACE(thread, Vector, ForEach); in ForEach()
521 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ForEach()
527 … thisHandle = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(thisHandle)->GetTarget()); in ForEach()
529 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in ForEach()
535 …THROW_TYPE_ERROR_AND_RETURN(thread, "the callbackfun is not callable.", JSTaggedValue::Exception()… in ForEach()
540 return JSAPIVector::ForEach(thread, thisHandle, callbackFnHandle, thisArgHandle); in ForEach()
546 JSThread *thread = argv->GetThread(); in ReplaceAllElements() local
547 BUILTINS_API_TRACE(thread, Vector, ReplaceAllElements); in ReplaceAllElements()
548 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ReplaceAllElements()
553 … thisHandle = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(thisHandle)->GetTarget()); in ReplaceAllElements()
555 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in ReplaceAllElements()
562 …THROW_TYPE_ERROR_AND_RETURN(thread, "the callbackfun is not callable.", JSTaggedValue::Exception()… in ReplaceAllElements()
566 return JSAPIVector::ReplaceAllElements(thread, thisHandle, callbackFnHandle, thisArgHandle); in ReplaceAllElements()
572 JSThread *thread = argv->GetThread(); in TrimToCurrentLength() local
573 BUILTINS_API_TRACE(thread, Vector, TrimToCurrentLength); in TrimToCurrentLength()
574 [[maybe_unused]] EcmaHandleScope handleScope(thread); in TrimToCurrentLength()
579 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in TrimToCurrentLength()
581 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in TrimToCurrentLength()
585 JSAPIVector::TrimToCurrentLength(thread, JSHandle<JSAPIVector>::Cast(self)); in TrimToCurrentLength()
592 JSThread *thread = argv->GetThread(); in Clear() local
593 BUILTINS_API_TRACE(thread, Vector, Clear); in Clear()
594 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Clear()
599 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Clear()
601 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in Clear()
605 JSAPIVector::Clear(thread, JSHandle<JSAPIVector>::Cast(self)); in Clear()
613 JSThread *thread = argv->GetThread(); in Clone() local
614 BUILTINS_API_TRACE(thread, Vector, Clone); in Clone()
615 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Clone()
620 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Clone()
622 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in Clone()
625 JSHandle<JSAPIVector> newVector = JSAPIVector::Clone(thread, JSHandle<JSAPIVector>::Cast(self)); in Clone()
632 JSThread *thread = argv->GetThread(); in Has() local
633 BUILTINS_API_TRACE(thread, Vector, Has); in Has()
634 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Has()
639 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Has()
641 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in Has()
653 JSThread *thread = argv->GetThread(); in CopyToArray() local
654 BUILTINS_API_TRACE(thread, Vector, CopyToArray); in CopyToArray()
655 [[maybe_unused]] EcmaHandleScope handleScope(thread); in CopyToArray()
660 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in CopyToArray()
662 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in CopyToArray()
671 JSHandle<TaggedArray> vectorElements(thread, vector->GetElements()); in CopyToArray()
675 JSHandle<TaggedArray> arrayElements(thread, array->GetElements()); in CopyToArray()
677 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CopyToArray()
681 arrayElements->Set(thread, i, JSTaggedValue::Undefined()); in CopyToArray()
686 array->SetElements(thread, newArrayElement); in CopyToArray()
687 array->SetLength(thread, JSTaggedValue(vectorLength)); in CopyToArray()
689 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in CopyToArray()
696 JSThread *thread = argv->GetThread(); in ConvertToArray() local
697 BUILTINS_API_TRACE(thread, Vector, ConvertToArray); in ConvertToArray()
698 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ConvertToArray()
703 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in ConvertToArray()
705 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in ConvertToArray()
710 auto factory = thread->GetEcmaVM()->GetFactory(); in ConvertToArray()
714 array->SetArrayLength(thread, length); in ConvertToArray()
716 JSHandle<TaggedArray> srcElements(thread, vector->GetElements()); in ConvertToArray()
719 array->SetElements(thread, dstElements); in ConvertToArray()
726 JSThread *thread = argv->GetThread(); in GetFirstElement() local
727 BUILTINS_API_TRACE(thread, Vector, GetFirstElement); in GetFirstElement()
728 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetFirstElement()
733 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetFirstElement()
735 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in GetFirstElement()
746 JSThread *thread = argv->GetThread(); in Sort() local
747 BUILTINS_API_TRACE(thread, Vector, Sort); in Sort()
748 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Sort()
753 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Sort()
755 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in Sort()
760 JSHandle<TaggedArray> elements(thread, JSHandle<JSAPIVector>::Cast(self)->GetElements()); in Sort()
761 JSMutableHandle<JSTaggedValue> presentValue(thread, JSTaggedValue::Undefined()); in Sort()
762 JSMutableHandle<JSTaggedValue> middleValue(thread, JSTaggedValue::Undefined()); in Sort()
763 JSMutableHandle<JSTaggedValue> previousValue(thread, JSTaggedValue::Undefined()); in Sort()
773 …int32_t compareResult = base::ArrayHelper::SortCompare(thread, callbackFnHandle, middleValue, pres… in Sort()
774 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in Sort()
785 elements->Set(thread, j, previousValue.GetTaggedValue()); in Sort()
787 elements->Set(thread, endIndex, presentValue.GetTaggedValue()); in Sort()
796 JSThread *thread = argv->GetThread(); in GetIteratorObj() local
797 BUILTINS_API_TRACE(thread, Vector, GetIteratorObj); in GetIteratorObj()
798 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetIteratorObj()
804 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetIteratorObj()
806 … THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSAPIVector", JSTaggedValue::Exception()); in GetIteratorObj()
810 JSTaggedValue values = JSAPIVector::GetIteratorObj(thread, JSHandle<JSAPIVector>::Cast(self)); in GetIteratorObj()