Lines Matching full:thread
59 JSThread *thread = msg->GetThread(); in Load() local
60 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Load()
66 … THROW_TYPE_ERROR_AND_RETURN(thread, "Incorrect input parameters", JSTaggedValue::Exception()); in Load()
70 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in Load()
72 …JSHandle<JSObject> undefinedIteratorResult = JSIterator::CreateIterResultObject(thread, undefinedH… in Load()
78 … res = InitializeContainer(thread, thisValue, InitializeArrayList, "ArrayListConstructor"); in Load()
82 res = InitializeContainer(thread, thisValue, InitializeDeque, "DequeConstructor"); in Load()
86 …res = InitializeContainer(thread, thisValue, InitializeLightWeightMap, "LightWeightMapConstructor"… in Load()
90 …res = InitializeContainer(thread, thisValue, InitializeLightWeightSet, "LightWeightSetConstructor"… in Load()
94 … res = InitializeContainer(thread, thisValue, InitializePlainArray, "PlainArrayConstructor"); in Load()
98 res = InitializeContainer(thread, thisValue, InitializeQueue, "QueueConstructor"); in Load()
102 res = InitializeContainer(thread, thisValue, InitializeStack, "StackConstructor"); in Load()
106 res = InitializeContainer(thread, thisValue, InitializeTreeMap, "TreeMapConstructor"); in Load()
110 res = InitializeContainer(thread, thisValue, InitializeTreeSet, "TreeSetConstructor"); in Load()
114 res = InitializeContainer(thread, thisValue, InitializeVector, "VectorConstructor"); in Load()
118 … res = InitializeContainer(thread, thisValue, InitializeBitVector, "BitVectorConstructor"); in Load()
122 res = InitializeContainer(thread, thisValue, InitializeList, "ListConstructor"); in Load()
126 … res = InitializeContainer(thread, thisValue, InitializeLinkedList, "LinkedListConstructor"); in Load()
130 res = InitializeContainer(thread, thisValue, InitializeHashMap, "HashMapConstructor"); in Load()
134 res = InitializeContainer(thread, thisValue, InitializeHashSet, "HashSetConstructor"); in Load()
147 JSTaggedValue ContainersPrivate::InitializeContainer(JSThread *thread, const JSHandle<JSObject> &ob… in InitializeContainer() argument
150 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeContainer()
153 (thread, obj.GetTaggedValue(), key.GetTaggedValue()); in InitializeContainer()
157 JSHandle<JSTaggedValue> map = func(thread); in InitializeContainer()
158 SetFrozenConstructor(thread, obj, name, map); in InitializeContainer()
162 JSHandle<JSFunction> ContainersPrivate::NewContainerConstructor(JSThread *thread, const JSHandle<JS… in NewContainerConstructor() argument
165 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in NewContainerConstructor()
166 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in NewContainerConstructor()
170 const GlobalEnvConstants *globalConst = thread->GlobalConstants(); in NewContainerConstructor()
171 JSFunction::SetFunctionLength(thread, ctor, JSTaggedValue(length)); in NewContainerConstructor()
173 JSFunction::SetFunctionName(thread, JSHandle<JSFunctionBase>(ctor), nameString, in NewContainerConstructor()
176 PropertyDescriptor descriptor1(thread, JSHandle<JSTaggedValue>::Cast(ctor), true, false, true); in NewContainerConstructor()
177 JSObject::DefineOwnProperty(thread, prototype, constructorKey, descriptor1); in NewContainerConstructor()
180 JSFunction::SetFunctionPrototypeOrInstanceHClass(thread, ctor, prototype.GetTaggedValue()); in NewContainerConstructor()
185 void ContainersPrivate::SetFrozenFunction(JSThread *thread, const JSHandle<JSObject> &obj, const ch… in SetFrozenFunction() argument
188 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in SetFrozenFunction()
190 JSHandle<JSFunction> function = NewFunction(thread, keyString, func, length, builtinId); in SetFrozenFunction()
191 PropertyDescriptor descriptor(thread, JSHandle<JSTaggedValue>(function), false, false, false); in SetFrozenFunction()
192 JSObject::DefineOwnProperty(thread, obj, keyString, descriptor); in SetFrozenFunction()
195 void ContainersPrivate::SetFrozenConstructor(JSThread *thread, const JSHandle<JSObject> &obj, const… in SetFrozenConstructor() argument
199 JSObject::PreventExtensions(thread, JSHandle<JSObject>::Cast(value)); in SetFrozenConstructor()
201 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in SetFrozenConstructor()
203 PropertyDescriptor descriptor(thread, value, false, false, false); in SetFrozenConstructor()
204 JSObject::DefineOwnProperty(thread, obj, key, descriptor); in SetFrozenConstructor()
207 JSHandle<JSFunction> ContainersPrivate::NewFunction(JSThread *thread, const JSHandle<JSTaggedValue>… in NewFunction() argument
211 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in NewFunction()
213 factory->NewJSFunction(thread->GetEcmaVM()->GetGlobalEnv(), reinterpret_cast<void *>(func), in NewFunction()
215 JSFunction::SetFunctionLength(thread, function, JSTaggedValue(length)); in NewFunction()
217 …JSFunction::SetFunctionName(thread, baseFunction, key, thread->GlobalConstants()->GetHandledUndefi… in NewFunction()
221 JSHandle<JSTaggedValue> ContainersPrivate::CreateGetter(JSThread *thread, EcmaEntrypoint func, cons… in CreateGetter() argument
224 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in CreateGetter()
225 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreateGetter()
227 JSFunction::SetFunctionLength(thread, function, JSTaggedValue(length)); in CreateGetter()
229 JSHandle<JSTaggedValue> prefix = thread->GlobalConstants()->GetHandledGetString(); in CreateGetter()
230 JSFunction::SetFunctionName(thread, JSHandle<JSFunctionBase>(function), funcName, prefix); in CreateGetter()
234 void ContainersPrivate::SetGetter(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<J… in SetGetter() argument
237 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in SetGetter()
239 accessor->SetGetter(thread, getter); in SetGetter()
241 JSObject::AddAccessor(thread, JSHandle<JSTaggedValue>::Cast(obj), key, accessor, attr); in SetGetter()
244 void ContainersPrivate::SetFunctionAtSymbol(JSThread *thread, const JSHandle<GlobalEnv> &env, in SetFunctionAtSymbol() argument
248 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in SetFunctionAtSymbol()
250 JSFunction::SetFunctionLength(thread, function, JSTaggedValue(length)); in SetFunctionAtSymbol()
253 …JSFunction::SetFunctionName(thread, baseFunction, nameString, thread->GlobalConstants()->GetHandle… in SetFunctionAtSymbol()
254 …PropertyDescriptor descriptor(thread, JSHandle<JSTaggedValue>::Cast(function), false, false, false… in SetFunctionAtSymbol()
255 JSObject::DefineOwnProperty(thread, obj, symbol, descriptor); in SetFunctionAtSymbol()
258 void ContainersPrivate::SetStringTagSymbol(JSThread *thread, const JSHandle<GlobalEnv> &env, in SetStringTagSymbol() argument
261 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in SetStringTagSymbol()
264 PropertyDescriptor desc(thread, tag, false, false, false); in SetStringTagSymbol()
265 JSObject::DefineOwnProperty(thread, obj, symbol, desc); in SetStringTagSymbol()
268 JSHandle<JSTaggedValue> ContainersPrivate::InitializeArrayList(JSThread *thread) in InitializeArrayList() argument
270 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in InitializeArrayList()
271 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeArrayList()
280 … thread, prototype, ContainersArrayList::ArrayListConstructor, "ArrayList", FuncLength::ZERO)); in InitializeArrayList()
281 JSFunction::SetFunctionPrototypeOrInstanceHClass(thread, in InitializeArrayList()
286 …JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(prototype), constructorKey, arrayListFunctio… in InitializeArrayList()
287 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread); in InitializeArrayList()
291 …SetFrozenFunction(thread, prototype, entry.GetName().data(), entry.GetEntrypoint(), entry.GetLengt… in InitializeArrayList()
295 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeArrayList()
296 SetStringTagSymbol(thread, env, prototype, "ArrayList"); in InitializeArrayList()
298 …JSHandle<JSTaggedValue> lengthGetter = CreateGetter(thread, ContainersArrayList::GetSize, "length", in InitializeArrayList()
300 JSHandle<JSTaggedValue> lengthKey(thread, globalConst->GetLengthString()); in InitializeArrayList()
301 SetGetter(thread, prototype, lengthKey, lengthGetter); in InitializeArrayList()
303 SetFunctionAtSymbol(thread, env, prototype, env->GetIteratorSymbol(), "[Symbol.iterator]", in InitializeArrayList()
305 ContainersPrivate::InitializeArrayListIterator(thread, env, globalConst); in InitializeArrayList()
310 void ContainersPrivate::InitializeArrayListIterator(JSThread *thread, const JSHandle<GlobalEnv> &en… in InitializeArrayListIterator() argument
313 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeArrayListIterator()
320 …SetFrozenFunction(thread, arrayListIteratorPrototype, "next", JSAPIArrayListIterator::Next, FuncLe… in InitializeArrayListIterator()
321 SetStringTagSymbol(thread, env, arrayListIteratorPrototype, "ArrayList Iterator"); in InitializeArrayListIterator()
326 JSHandle<JSTaggedValue> ContainersPrivate::InitializeLightWeightMap(JSThread *thread) in InitializeLightWeightMap() argument
328 const GlobalEnvConstants *globalConst = thread->GlobalConstants(); in InitializeLightWeightMap()
329 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeLightWeightMap()
335 … thread, funcPrototype, ContainersLightWeightMap::LightWeightMapConstructor, "LightWeightMap", in InitializeLightWeightMap()
337 JSFunction::SetFunctionPrototypeOrInstanceHClass(thread, in InitializeLightWeightMap()
342 …JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(funcPrototype), constructorKey, lightWeightM… in InitializeLightWeightMap()
343 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread); in InitializeLightWeightMap()
347 SetFrozenFunction(thread, funcPrototype, entry.GetName().data(), entry.GetEntrypoint(), in InitializeLightWeightMap()
351 …JSHandle<JSTaggedValue> lengthGetter = CreateGetter(thread, ContainersLightWeightMap::Length, "len… in InitializeLightWeightMap()
354 SetGetter(thread, funcPrototype, lengthKey, lengthGetter); in InitializeLightWeightMap()
356 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeLightWeightMap()
357 SetFunctionAtSymbol(thread, env, funcPrototype, env->GetIteratorSymbol(), "[Symbol.iterator]", in InitializeLightWeightMap()
360 ContainersPrivate::InitializeLightWeightMapIterator(thread); in InitializeLightWeightMap()
364 void ContainersPrivate::InitializeLightWeightMapIterator(JSThread *thread) in InitializeLightWeightMapIterator() argument
366 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeLightWeightMapIterator()
367 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeLightWeightMapIterator()
371 …SetFrozenFunction(thread, lightWeightMapIteratorPrototype, "next", JSAPILightWeightMapIterator::Ne… in InitializeLightWeightMapIterator()
373 SetStringTagSymbol(thread, env, lightWeightMapIteratorPrototype, "LightWeightMap Iterator"); in InitializeLightWeightMapIterator()
374 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in InitializeLightWeightMapIterator()
379 JSHandle<JSTaggedValue> ContainersPrivate::InitializeLightWeightSet(JSThread *thread) in InitializeLightWeightSet() argument
381 const GlobalEnvConstants *globalConst = thread->GlobalConstants(); in InitializeLightWeightSet()
382 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeLightWeightSet()
390 …NewContainerConstructor(thread, funcPrototype, ContainersLightWeightSet::LightWeightSetConstructor, in InitializeLightWeightSet()
392 JSFunction::SetFunctionPrototypeOrInstanceHClass(thread, in InitializeLightWeightSet()
396 …JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(funcPrototype), constructorKey, lightweightS… in InitializeLightWeightSet()
397 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread); in InitializeLightWeightSet()
401 SetFrozenFunction(thread, funcPrototype, entry.GetName().data(), entry.GetEntrypoint(), in InitializeLightWeightSet()
406 CreateGetter(thread, ContainersLightWeightSet::GetSize, "length", FuncLength::ZERO); in InitializeLightWeightSet()
409 SetGetter(thread, funcPrototype, lengthKey, lengthGetter); in InitializeLightWeightSet()
410 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeLightWeightSet()
411 SetFunctionAtSymbol(thread, env, funcPrototype, env->GetIteratorSymbol(), "[Symbol.iterator]", in InitializeLightWeightSet()
414 InitializeLightWeightSetIterator(thread); in InitializeLightWeightSet()
418 void ContainersPrivate::InitializeLightWeightSetIterator(JSThread *thread) in InitializeLightWeightSetIterator() argument
420 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeLightWeightSetIterator()
421 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeLightWeightSetIterator()
422 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in InitializeLightWeightSetIterator()
424 …JSHandle<JSHClass>(thread, globalConst->GetHandledJSAPIIteratorFuncHClass().GetObject<JSHClass>()); in InitializeLightWeightSetIterator()
427 …thread, lightWeightSetIteratorPrototype, "next", JSAPILightWeightSetIterator::Next, FuncLength::ON… in InitializeLightWeightSetIterator()
428 SetStringTagSymbol(thread, env, lightWeightSetIteratorPrototype, "LightWeightSet Iterator"); in InitializeLightWeightSetIterator()
433 JSHandle<JSTaggedValue> ContainersPrivate::InitializeTreeMap(JSThread *thread) in InitializeTreeMap() argument
435 const GlobalEnvConstants *globalConst = thread->GlobalConstants(); in InitializeTreeMap()
436 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeTreeMap()
445 … thread, mapFuncPrototype, ContainersTreeMap::TreeMapConstructor, "TreeMap", FuncLength::ZERO)); in InitializeTreeMap()
446 JSFunction::SetFunctionPrototypeOrInstanceHClass(thread, in InitializeTreeMap()
451 …JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(mapFuncPrototype), constructorKey, mapFuncti… in InitializeTreeMap()
452 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread); in InitializeTreeMap()
456 SetFrozenFunction(thread, mapFuncPrototype, entry.GetName().data(), entry.GetEntrypoint(), in InitializeTreeMap()
461 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeTreeMap()
462 SetStringTagSymbol(thread, env, mapFuncPrototype, "TreeMap"); in InitializeTreeMap()
467 JSObject::GetMethod(thread, JSHandle<JSTaggedValue>::Cast(mapFuncPrototype), entries); in InitializeTreeMap()
468 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread); in InitializeTreeMap()
469 PropertyDescriptor descriptor(thread, entriesFunc, false, false, false); in InitializeTreeMap()
470 JSObject::DefineOwnProperty(thread, mapFuncPrototype, iteratorSymbol, descriptor); in InitializeTreeMap()
473 CreateGetter(thread, ContainersTreeMap::GetLength, "length", FuncLength::ZERO); in InitializeTreeMap()
474 JSHandle<JSTaggedValue> lengthKey(thread, globalConst->GetLengthString()); in InitializeTreeMap()
475 SetGetter(thread, mapFuncPrototype, lengthKey, lengthGetter); in InitializeTreeMap()
477 InitializeTreeMapIterator(thread); in InitializeTreeMap()
481 void ContainersPrivate::InitializeTreeMapIterator(JSThread *thread) in InitializeTreeMapIterator() argument
483 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeTreeMapIterator()
484 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeTreeMapIterator()
492 …SetFrozenFunction(thread, mapIteratorPrototype, "next", JSAPITreeMapIterator::Next, FuncLength::ZE… in InitializeTreeMapIterator()
493 SetStringTagSymbol(thread, env, mapIteratorPrototype, "TreeMap Iterator"); in InitializeTreeMapIterator()
494 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in InitializeTreeMapIterator()
498 JSHandle<JSTaggedValue> ContainersPrivate::InitializeTreeSet(JSThread *thread) in InitializeTreeSet() argument
500 const GlobalEnvConstants *globalConst = thread->GlobalConstants(); in InitializeTreeSet()
501 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeTreeSet()
510 … thread, setFuncPrototype, ContainersTreeSet::TreeSetConstructor, "TreeSet", FuncLength::ZERO)); in InitializeTreeSet()
511 JSFunction::SetFunctionPrototypeOrInstanceHClass(thread, in InitializeTreeSet()
516 …JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(setFuncPrototype), constructorKey, setFuncti… in InitializeTreeSet()
517 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread); in InitializeTreeSet()
521 SetFrozenFunction(thread, setFuncPrototype, entry.GetName().data(), entry.GetEntrypoint(), in InitializeTreeSet()
526 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeTreeSet()
527 SetStringTagSymbol(thread, env, setFuncPrototype, "TreeSet"); in InitializeTreeSet()
530 JSHandle<JSTaggedValue> values(thread, globalConst->GetValuesString()); in InitializeTreeSet()
532 JSObject::GetMethod(thread, JSHandle<JSTaggedValue>::Cast(setFuncPrototype), values); in InitializeTreeSet()
533 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread); in InitializeTreeSet()
534 PropertyDescriptor descriptor(thread, valuesFunc, false, false, false); in InitializeTreeSet()
535 JSObject::DefineOwnProperty(thread, setFuncPrototype, iteratorSymbol, descriptor); in InitializeTreeSet()
538 CreateGetter(thread, ContainersTreeSet::GetLength, "length", FuncLength::ZERO); in InitializeTreeSet()
539 JSHandle<JSTaggedValue> lengthKey(thread, globalConst->GetLengthString()); in InitializeTreeSet()
540 SetGetter(thread, setFuncPrototype, lengthKey, lengthGetter); in InitializeTreeSet()
542 InitializeTreeSetIterator(thread); in InitializeTreeSet()
546 void ContainersPrivate::InitializeTreeSetIterator(JSThread *thread) in InitializeTreeSetIterator() argument
548 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeTreeSetIterator()
549 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeTreeSetIterator()
557 …SetFrozenFunction(thread, setIteratorPrototype, "next", JSAPITreeSetIterator::Next, FuncLength::ZE… in InitializeTreeSetIterator()
558 SetStringTagSymbol(thread, env, setIteratorPrototype, "TreeSet Iterator"); in InitializeTreeSetIterator()
559 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in InitializeTreeSetIterator()
563 JSHandle<JSTaggedValue> ContainersPrivate::InitializePlainArray(JSThread *thread) in InitializePlainArray() argument
565 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in InitializePlainArray()
566 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializePlainArray()
574 …NewContainerConstructor(thread, plainArrayFuncPrototype, ContainersPlainArray::PlainArrayConstruct… in InitializePlainArray()
576 JSFunction::SetFunctionPrototypeOrInstanceHClass(thread, in InitializePlainArray()
581 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(plainArrayFuncPrototype), constructorKey, in InitializePlainArray()
583 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread); in InitializePlainArray()
587 … SetFrozenFunction(thread, plainArrayFuncPrototype, entry.GetName().data(), entry.GetEntrypoint(), in InitializePlainArray()
591 …JSHandle<JSTaggedValue> lengthGetter = CreateGetter(thread, ContainersPlainArray::GetSize, "length… in InitializePlainArray()
594 SetGetter(thread, plainArrayFuncPrototype, lengthKey, lengthGetter); in InitializePlainArray()
596 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializePlainArray()
597 …SetFunctionAtSymbol(thread, env, plainArrayFuncPrototype, env->GetIteratorSymbol(), "[Symbol.itera… in InitializePlainArray()
599 InitializePlainArrayIterator(thread); in InitializePlainArray()
604 void ContainersPrivate::InitializePlainArrayIterator(JSThread *thread) in InitializePlainArrayIterator() argument
606 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializePlainArrayIterator()
607 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializePlainArrayIterator()
608 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in InitializePlainArrayIterator()
610 …JSHandle<JSHClass>(thread, globalConst->GetHandledJSAPIIteratorFuncHClass().GetObject<JSHClass>()); in InitializePlainArrayIterator()
612 …SetFrozenFunction(thread, plainarrayIteratorPrototype, "next", JSAPIPlainArrayIterator::Next, Func… in InitializePlainArrayIterator()
613 SetStringTagSymbol(thread, env, plainarrayIteratorPrototype, "PlainArray Iterator"); in InitializePlainArrayIterator()
618 JSHandle<JSTaggedValue> ContainersPrivate::InitializeStack(JSThread *thread) in InitializeStack() argument
620 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in InitializeStack()
621 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeStack()
630 thread, stackFuncPrototype, ContainersStack::StackConstructor, "Stack", FuncLength::ZERO)); in InitializeStack()
631 JSFunction::SetFunctionPrototypeOrInstanceHClass(thread, in InitializeStack()
636 …JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(stackFuncPrototype), constructorKey, stackFu… in InitializeStack()
637 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread); in InitializeStack()
641 SetFrozenFunction(thread, stackFuncPrototype, entry.GetName().data(), entry.GetEntrypoint(), in InitializeStack()
645 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeStack()
646 SetStringTagSymbol(thread, env, stackFuncPrototype, "Stack"); in InitializeStack()
648 …JSHandle<JSTaggedValue> lengthGetter = CreateGetter(thread, ContainersStack::GetLength, "length", … in InitializeStack()
650 SetGetter(thread, stackFuncPrototype, lengthKey, lengthGetter); in InitializeStack()
652 …SetFunctionAtSymbol(thread, env, stackFuncPrototype, env->GetIteratorSymbol(), "[Symbol.iterator]", in InitializeStack()
655 ContainersPrivate::InitializeStackIterator(thread, globalConst); in InitializeStack()
659 void ContainersPrivate::InitializeStackIterator(JSThread *thread, GlobalEnvConstants *globalConst) in InitializeStackIterator() argument
661 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeStackIterator()
662 JSHandle<JSHClass> iteratorFuncHClass = JSHandle<JSHClass>(thread, globalConst-> in InitializeStackIterator()
667 …SetFrozenFunction(thread, stackIteratorPrototype, "next", JSAPIStackIterator::Next, FuncLength::ON… in InitializeStackIterator()
671 JSHandle<JSTaggedValue> ContainersPrivate::InitializeVector(JSThread *thread) in InitializeVector() argument
673 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in InitializeVector()
674 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeVector()
683 thread, prototype, ContainersVector::VectorConstructor, "Vector", FuncLength::ZERO)); in InitializeVector()
684 JSFunction::SetFunctionPrototypeOrInstanceHClass(thread, in InitializeVector()
689 … JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(prototype), constructorKey, vectorFunction); in InitializeVector()
690 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread); in InitializeVector()
692 SetFrozenFunction(thread, prototype, "add", ContainersVector::Add, FuncLength::ONE); in InitializeVector()
693 SetFrozenFunction(thread, prototype, "insert", ContainersVector::Insert, FuncLength::TWO); in InitializeVector()
694 SetFrozenFunction(thread, prototype, "setLength", ContainersVector::SetLength, FuncLength::ONE); in InitializeVector()
695 …SetFrozenFunction(thread, prototype, "getCapacity", ContainersVector::GetCapacity, FuncLength::ZER… in InitializeVector()
696 …SetFrozenFunction(thread, prototype, "increaseCapacityTo", ContainersVector::IncreaseCapacityTo, F… in InitializeVector()
697 SetFrozenFunction(thread, prototype, "get", ContainersVector::Get, FuncLength::ONE); in InitializeVector()
698 … SetFrozenFunction(thread, prototype, "getIndexOf", ContainersVector::GetIndexOf, FuncLength::ONE); in InitializeVector()
699 …SetFrozenFunction(thread, prototype, "getIndexFrom", ContainersVector::GetIndexFrom, FuncLength::T… in InitializeVector()
700 SetFrozenFunction(thread, prototype, "isEmpty", ContainersVector::IsEmpty, FuncLength::ZERO); in InitializeVector()
701 …SetFrozenFunction(thread, prototype, "getLastElement", ContainersVector::GetLastElement, FuncLengt… in InitializeVector()
702 …SetFrozenFunction(thread, prototype, "getLastIndexOf", ContainersVector::GetLastIndexOf, FuncLengt… in InitializeVector()
703 …SetFrozenFunction(thread, prototype, "getLastIndexFrom", ContainersVector::GetLastIndexFrom, FuncL… in InitializeVector()
704 SetFrozenFunction(thread, prototype, "remove", ContainersVector::Remove, FuncLength::ONE); in InitializeVector()
705 …SetFrozenFunction(thread, prototype, "removeByIndex", ContainersVector::RemoveByIndex, FuncLength:… in InitializeVector()
706 …SetFrozenFunction(thread, prototype, "removeByRange", ContainersVector::RemoveByRange, FuncLength:… in InitializeVector()
707 SetFrozenFunction(thread, prototype, "set", ContainersVector::Set, FuncLength::TWO); in InitializeVector()
708 SetFrozenFunction(thread, prototype, "subVector", ContainersVector::SubVector, FuncLength::TWO); in InitializeVector()
709 SetFrozenFunction(thread, prototype, "toString", ContainersVector::ToString, FuncLength::ZERO); in InitializeVector()
710 SetFrozenFunction(thread, prototype, "forEach", ContainersVector::ForEach, FuncLength::TWO, in InitializeVector()
712 …SetFrozenFunction(thread, prototype, "replaceAllElements", ContainersVector::ReplaceAllElements, F… in InitializeVector()
714 SetFrozenFunction(thread, prototype, "has", ContainersVector::Has, FuncLength::ONE); in InitializeVector()
715 SetFrozenFunction(thread, prototype, "sort", ContainersVector::Sort, FuncLength::ZERO); in InitializeVector()
716 SetFrozenFunction(thread, prototype, "clear", ContainersVector::Clear, FuncLength::ZERO); in InitializeVector()
717 SetFrozenFunction(thread, prototype, "clone", ContainersVector::Clone, FuncLength::ZERO); in InitializeVector()
718 …SetFrozenFunction(thread, prototype, "copyToArray", ContainersVector::CopyToArray, FuncLength::ONE… in InitializeVector()
719 …SetFrozenFunction(thread, prototype, "convertToArray", ContainersVector::ConvertToArray, FuncLengt… in InitializeVector()
720 …SetFrozenFunction(thread, prototype, "getFirstElement", ContainersVector::GetFirstElement, FuncLen… in InitializeVector()
721 SetFrozenFunction(thread, prototype, "trimToCurrentLength", in InitializeVector()
724 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeVector()
725 SetStringTagSymbol(thread, env, prototype, "Vector"); in InitializeVector()
727 …JSHandle<JSTaggedValue> lengthGetter = CreateGetter(thread, ContainersVector::GetSize, "length", F… in InitializeVector()
728 JSHandle<JSTaggedValue> lengthKey(thread, globalConst->GetLengthString()); in InitializeVector()
729 SetGetter(thread, prototype, lengthKey, lengthGetter); in InitializeVector()
731 SetFunctionAtSymbol(thread, env, prototype, env->GetIteratorSymbol(), "[Symbol.iterator]", in InitializeVector()
734 ContainersPrivate::InitializeVectorIterator(thread, env, globalConst); in InitializeVector()
739 void ContainersPrivate::InitializeVectorIterator(JSThread *thread, const JSHandle<GlobalEnv> &env, in InitializeVectorIterator() argument
742 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeVectorIterator()
743 JSHandle<JSHClass> iteratorFuncHClass = JSHandle<JSHClass>(thread, globalConst-> in InitializeVectorIterator()
748 …SetFrozenFunction(thread, vectorIteratorPrototype, "next", JSAPIVectorIterator::Next, FuncLength::… in InitializeVectorIterator()
749 SetStringTagSymbol(thread, env, vectorIteratorPrototype, "Vector Iterator"); in InitializeVectorIterator()
753 JSHandle<JSTaggedValue> ContainersPrivate::InitializeBitVector(JSThread* thread) in InitializeBitVector() argument
755 auto globalConst = const_cast<GlobalEnvConstants*>(thread->GlobalConstants()); in InitializeBitVector()
756 auto vm = thread->GetEcmaVM(); in InitializeBitVector()
759 Builtins builtin(thread, factory, vm); in InitializeBitVector()
763 InitializeBitVectorIterator(thread, env, globalConst); in InitializeBitVector()
769 JSThread* thread, const JSHandle<GlobalEnv>& env, GlobalEnvConstants* globalConst) in InitializeBitVectorIterator() argument
771 ObjectFactory* factory = thread->GetEcmaVM()->GetFactory(); in InitializeBitVectorIterator()
772 JSHandle<JSHClass> iteratorFuncClass = JSHandle<JSHClass>(thread, in InitializeBitVectorIterator()
776 …SetFrozenFunction(thread, bitVectorIteratorPrototype, "next", JSAPIBitVectorIterator::Next, FuncLe… in InitializeBitVectorIterator()
777 SetStringTagSymbol(thread, env, bitVectorIteratorPrototype, "BitVector Iterator"); in InitializeBitVectorIterator()
778 env->SetBitVectorIteratorPrototype(thread, bitVectorIteratorPrototype); in InitializeBitVectorIterator()
781 JSHandle<JSTaggedValue> ContainersPrivate::InitializeQueue(JSThread *thread) in InitializeQueue() argument
783 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in InitializeQueue()
784 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeQueue()
793 thread, queueFuncPrototype, ContainersQueue::QueueConstructor, "Queue", FuncLength::ZERO)); in InitializeQueue()
794 JSFunction::SetFunctionPrototypeOrInstanceHClass(thread, in InitializeQueue()
799 …JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(queueFuncPrototype), constructorKey, queueFu… in InitializeQueue()
800 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread); in InitializeQueue()
804 SetFrozenFunction(thread, queueFuncPrototype, entry.GetName().data(), entry.GetEntrypoint(), in InitializeQueue()
808 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeQueue()
809 SetStringTagSymbol(thread, env, queueFuncPrototype, "Queue"); in InitializeQueue()
811 …JSHandle<JSTaggedValue> lengthGetter = CreateGetter(thread, ContainersQueue::GetSize, "length", Fu… in InitializeQueue()
812 JSHandle<JSTaggedValue> lengthKey(thread, globalConst->GetLengthString()); in InitializeQueue()
813 SetGetter(thread, queueFuncPrototype, lengthKey, lengthGetter); in InitializeQueue()
815 …SetFunctionAtSymbol(thread, env, queueFuncPrototype, env->GetIteratorSymbol(), "[Symbol.iterator]", in InitializeQueue()
818 ContainersPrivate::InitializeQueueIterator(thread, env, globalConst); in InitializeQueue()
822 void ContainersPrivate::InitializeQueueIterator(JSThread *thread, const JSHandle<GlobalEnv> &env, in InitializeQueueIterator() argument
825 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeQueueIterator()
831 …SetFrozenFunction(thread, queueIteratorPrototype, "next", JSAPIQueueIterator::Next, FuncLength::ON… in InitializeQueueIterator()
832 SetStringTagSymbol(thread, env, queueIteratorPrototype, "Queue Iterator"); in InitializeQueueIterator()
836 JSHandle<JSTaggedValue> ContainersPrivate::InitializeDeque(JSThread *thread) in InitializeDeque() argument
838 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in InitializeDeque()
839 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeDeque()
848 thread, dequeFuncPrototype, ContainersDeque::DequeConstructor, "Deque", FuncLength::ZERO)); in InitializeDeque()
849 JSFunction::SetFunctionPrototypeOrInstanceHClass(thread, in InitializeDeque()
854 …JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(dequeFuncPrototype), constructorKey, dequeFu… in InitializeDeque()
855 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread); in InitializeDeque()
859 …SetFrozenFunction(thread, dequeFuncPrototype, entry.GetName().data(), entry.GetEntrypoint(), entry… in InitializeDeque()
863 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeDeque()
864 SetStringTagSymbol(thread, env, dequeFuncPrototype, "Deque"); in InitializeDeque()
866 …JSHandle<JSTaggedValue> lengthGetter = CreateGetter(thread, ContainersDeque::GetSize, "length", Fu… in InitializeDeque()
868 SetGetter(thread, dequeFuncPrototype, lengthKey, lengthGetter); in InitializeDeque()
870 …SetFunctionAtSymbol(thread, env, dequeFuncPrototype, env->GetIteratorSymbol(), "[Symbol.iterator]", in InitializeDeque()
873 ContainersPrivate::InitializeDequeIterator(thread, env, globalConst); in InitializeDeque()
878 void ContainersPrivate::InitializeDequeIterator(JSThread *thread, const JSHandle<GlobalEnv> &env, in InitializeDequeIterator() argument
881 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeDequeIterator()
882 JSHandle<JSHClass> iteratorFuncHClass = JSHandle<JSHClass>(thread, globalConst-> in InitializeDequeIterator()
885 …SetFrozenFunction(thread, dequeIteratorPrototype, "next", JSAPIDequeIterator::Next, FuncLength::ON… in InitializeDequeIterator()
886 SetStringTagSymbol(thread, env, dequeIteratorPrototype, "Deque Iterator"); in InitializeDequeIterator()
890 JSHandle<JSTaggedValue> ContainersPrivate::InitializeList(JSThread *thread) in InitializeList() argument
892 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in InitializeList()
893 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeList()
899 thread, listFuncPrototype, ContainersList::ListConstructor, "List", FuncLength::ZERO)); in InitializeList()
900 JSFunction::SetFunctionPrototypeOrInstanceHClass(thread, in InitializeList()
904 …JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(listFuncPrototype), constructorKey, listFunc… in InitializeList()
905 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread); in InitializeList()
909 …SetFrozenFunction(thread, listFuncPrototype, entry.GetName().data(), entry.GetEntrypoint(), entry.… in InitializeList()
913 …JSHandle<JSTaggedValue> lengthGetter = CreateGetter(thread, ContainersList::Length, "length", Func… in InitializeList()
915 SetGetter(thread, listFuncPrototype, lengthKey, lengthGetter); in InitializeList()
917 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeList()
918 … SetFunctionAtSymbol(thread, env, listFuncPrototype, env->GetIteratorSymbol(), "[Symbol.iterator]", in InitializeList()
921 InitializeListIterator(thread, env); in InitializeList()
926 JSHandle<JSTaggedValue> ContainersPrivate::InitializeLinkedList(JSThread *thread) in InitializeLinkedList() argument
928 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in InitializeLinkedList()
929 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeLinkedList()
935 …thread, linkedListFuncPrototype, ContainersLinkedList::LinkedListConstructor, "LinkedList", FuncLe… in InitializeLinkedList()
936 JSFunction::SetFunctionPrototypeOrInstanceHClass(thread, in InitializeLinkedList()
940 …JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(linkedListFuncPrototype), constructorKey, li… in InitializeLinkedList()
941 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread); in InitializeLinkedList()
945 …SetFrozenFunction(thread, linkedListFuncPrototype, entry.GetName().data(), entry.GetEntrypoint(), … in InitializeLinkedList()
949 …JSHandle<JSTaggedValue> lengthGetter = CreateGetter(thread, ContainersLinkedList::Length, "length", in InitializeLinkedList()
952 SetGetter(thread, linkedListFuncPrototype, lengthKey, lengthGetter); in InitializeLinkedList()
954 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeLinkedList()
955 …SetFunctionAtSymbol(thread, env, linkedListFuncPrototype, env->GetIteratorSymbol(), "[Symbol.itera… in InitializeLinkedList()
958 InitializeLinkedListIterator(thread, env); in InitializeLinkedList()
963 void ContainersPrivate::InitializeLinkedListIterator(JSThread *thread, const JSHandle<GlobalEnv> &e… in InitializeLinkedListIterator() argument
965 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in InitializeLinkedListIterator()
966 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeLinkedListIterator()
968 …JSHandle<JSHClass>(thread, globalConst->GetHandledJSAPIIteratorFuncHClass().GetObject<JSHClass>()); in InitializeLinkedListIterator()
970 …SetFrozenFunction(thread, setIteratorPrototype, "next", JSAPILinkedListIterator::Next, FuncLength:… in InitializeLinkedListIterator()
971 SetStringTagSymbol(thread, env, setIteratorPrototype, "linkedlist Iterator"); in InitializeLinkedListIterator()
976 void ContainersPrivate::InitializeListIterator(JSThread *thread, const JSHandle<GlobalEnv> &env) in InitializeListIterator() argument
978 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in InitializeListIterator()
979 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeListIterator()
981 …JSHandle<JSHClass>(thread, globalConst->GetHandledJSAPIIteratorFuncHClass().GetObject<JSHClass>()); in InitializeListIterator()
983 … SetFrozenFunction(thread, setIteratorPrototype, "next", JSAPIListIterator::Next, FuncLength::ONE); in InitializeListIterator()
984 SetStringTagSymbol(thread, env, setIteratorPrototype, "list Iterator"); in InitializeListIterator()
988 JSHandle<JSTaggedValue> ContainersPrivate::InitializeHashMap(JSThread *thread) in InitializeHashMap() argument
990 const GlobalEnvConstants *globalConst = thread->GlobalConstants(); in InitializeHashMap()
991 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeHashMap()
1000 …thread, hashMapFuncPrototype, ContainersHashMap::HashMapConstructor, "HashMap", FuncLength::ZERO)); in InitializeHashMap()
1001 JSFunction::SetFunctionPrototypeOrInstanceHClass(thread, in InitializeHashMap()
1006 …JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(hashMapFuncPrototype), constructorKey, hashM… in InitializeHashMap()
1007 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread); in InitializeHashMap()
1011 … SetFrozenFunction(thread, hashMapFuncPrototype, entry.GetName().data(), entry.GetEntrypoint(), in InitializeHashMap()
1015 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeHashMap()
1017 SetStringTagSymbol(thread, env, hashMapFuncPrototype, "HashMap"); in InitializeHashMap()
1019 …SetFunctionAtSymbol(thread, env, hashMapFuncPrototype, env->GetIteratorSymbol(), "[Symbol.iterator… in InitializeHashMap()
1023 CreateGetter(thread, ContainersHashMap::GetLength, "length", FuncLength::ZERO); in InitializeHashMap()
1024 JSHandle<JSTaggedValue> lengthKey(thread, globalConst->GetLengthString()); in InitializeHashMap()
1025 SetGetter(thread, hashMapFuncPrototype, lengthKey, lengthGetter); in InitializeHashMap()
1026 InitializeHashMapIterator(thread); in InitializeHashMap()
1030 void ContainersPrivate::InitializeHashMapIterator(JSThread *thread) in InitializeHashMapIterator() argument
1032 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeHashMapIterator()
1033 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in InitializeHashMapIterator()
1034 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeHashMapIterator()
1040 …SetFrozenFunction(thread, hashMapIteratorPrototype, "next", JSAPIHashMapIterator::Next, FuncLength… in InitializeHashMapIterator()
1041 SetStringTagSymbol(thread, env, hashMapIteratorPrototype, "HashMap Iterator"); in InitializeHashMapIterator()
1047 JSHandle<JSTaggedValue> ContainersPrivate::InitializeHashSet(JSThread *thread) in InitializeHashSet() argument
1049 const GlobalEnvConstants *globalConst = thread->GlobalConstants(); in InitializeHashSet()
1050 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeHashSet()
1059 …thread, hashSetFuncPrototype, ContainersHashSet::HashSetConstructor, "HashSet", FuncLength::ZERO)); in InitializeHashSet()
1060 JSFunction::SetFunctionPrototypeOrInstanceHClass(thread, in InitializeHashSet()
1065 …JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(hashSetFuncPrototype), constructorKey, hashS… in InitializeHashSet()
1066 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread); in InitializeHashSet()
1070 … SetFrozenFunction(thread, hashSetFuncPrototype, entry.GetName().data(), entry.GetEntrypoint(), in InitializeHashSet()
1074 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeHashSet()
1076 SetStringTagSymbol(thread, env, hashSetFuncPrototype, "HashSet"); in InitializeHashSet()
1078 …SetFunctionAtSymbol(thread, env, hashSetFuncPrototype, env->GetIteratorSymbol(), "[Symbol.iterator… in InitializeHashSet()
1082 CreateGetter(thread, ContainersHashSet::GetLength, "length", FuncLength::ZERO); in InitializeHashSet()
1083 JSHandle<JSTaggedValue> lengthKey(thread, globalConst->GetLengthString()); in InitializeHashSet()
1084 SetGetter(thread, hashSetFuncPrototype, lengthKey, lengthGetter); in InitializeHashSet()
1085 InitializeHashSetIterator(thread); in InitializeHashSet()
1089 void ContainersPrivate::InitializeHashSetIterator(JSThread *thread) in InitializeHashSetIterator() argument
1091 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeHashSetIterator()
1092 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in InitializeHashSetIterator()
1093 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeHashSetIterator()
1100 …SetFrozenFunction(thread, hashSetIteratorPrototype, "next", JSAPIHashSetIterator::Next, FuncLength… in InitializeHashSetIterator()
1101 SetStringTagSymbol(thread, env, hashSetIteratorPrototype, "HashSet Iterator"); in InitializeHashSetIterator()