• Home
  • Raw
  • Download

Lines Matching full:thread

28     JSThread *thread = argv->GetThread();  in HashSetConstructor()  local
29 BUILTINS_API_TRACE(thread, HashSet, Constructor); in HashSetConstructor()
30 [[maybe_unused]] EcmaHandleScope handleScope(thread); in HashSetConstructor()
31 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HashSetConstructor()
35 ContainerError::BusinessError(thread, ErrorFlag::IS_NULL_ERROR, in HashSetConstructor()
37 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HashSetConstructor()
42 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in HashSetConstructor()
45 JSTaggedValue hashSetArray = TaggedHashArray::Create(thread); in HashSetConstructor()
46 hashSet->SetTable(thread, hashSetArray); in HashSetConstructor()
55 JSThread *thread = argv->GetThread(); in GetIteratorObj() local
56 BUILTINS_API_TRACE(thread, HashSet, GetIteratorObj); in GetIteratorObj()
57 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetIteratorObj()
61 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetIteratorObj()
63 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetIteratorObj()
65 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetIteratorObj()
68 …JSHandle<JSTaggedValue> iter = JSAPIHashSetIterator::CreateHashSetIterator(thread, self, Iteration… in GetIteratorObj()
75 JSThread *thread = argv->GetThread(); in Values() local
76 BUILTINS_API_TRACE(thread, HashSet, Values); in Values()
77 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Values()
81 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Values()
83 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Values()
85 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Values()
88 …JSHandle<JSTaggedValue> iter = JSAPIHashSetIterator::CreateHashSetIterator(thread, self, Iteration… in Values()
95 JSThread *thread = argv->GetThread(); in Entries() local
96 BUILTINS_API_TRACE(thread, HashSet, Entries); in Entries()
97 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Entries()
101 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Entries()
103 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Entries()
105 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Entries()
109 JSAPIHashSetIterator::CreateHashSetIterator(thread, self, IterationKind::KEY_AND_VALUE); in Entries()
116 JSThread *thread = argv->GetThread(); in Add() local
117 BUILTINS_API_TRACE(thread, HashSet, Add); in Add()
118 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Add()
123 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Add()
125 JSTaggedValue error = ContainerError::BusinessError(thread, BIND_ERROR, in Add()
127 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Add()
133 JSAPIHashSet::Add(thread, hashSet, value); in Add()
134 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in Add()
141 JSThread *thread = argv->GetThread(); in Remove() local
142 BUILTINS_API_TRACE(thread, HashSet, Remove); in Remove()
143 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Remove()
148 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Remove()
150 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Remove()
152 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Remove()
158 return JSAPIHashSet::Remove(thread, hashSet, key.GetTaggedValue()); in Remove()
164 JSThread *thread = argv->GetThread(); in Has() local
165 BUILTINS_API_TRACE(thread, HashSet, Has); in Has()
166 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Has()
171 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Has()
173 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Has()
175 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Has()
180 return jsHashSet->Has(thread, value.GetTaggedValue()); in Has()
186 JSThread *thread = argv->GetThread(); in Clear() local
187 BUILTINS_API_TRACE(thread, HashSet, Clear); in Clear()
188 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Clear()
193 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Clear()
195 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Clear()
197 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Clear()
201 jsHashSet->Clear(thread); in Clear()
208 JSThread *thread = argv->GetThread(); in GetLength() local
209 BUILTINS_API_TRACE(thread, HashSet, GetLength); in GetLength()
210 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetLength()
215 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetLength()
217 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetLength()
219 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetLength()
230 JSThread *thread = argv->GetThread(); in IsEmpty() local
231 BUILTINS_API_TRACE(thread, HashSet, IsEmpty); in IsEmpty()
232 [[maybe_unused]] EcmaHandleScope handleScope(thread); in IsEmpty()
237 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in IsEmpty()
239 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in IsEmpty()
241 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in IsEmpty()
251 JSThread *thread = argv->GetThread(); in ForEach() local
252 BUILTINS_API_TRACE(thread, HashSet, ForEach); in ForEach()
253 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ForEach()
257 … thisHandle = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(thisHandle)->GetTarget()); in ForEach()
259 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in ForEach()
261 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ForEach()
266 JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, callbackFnHandle); in ForEach()
267 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in ForEach()
270 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in ForEach()
271 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ForEach()
275 JSHandle<TaggedHashArray> table(thread, hashSet->GetTable()); in ForEach()
277 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in ForEach()
278 JSMutableHandle<TaggedQueue> queue(thread, factory->NewTaggedQueue(0)); in ForEach()
279 JSMutableHandle<TaggedNode> node(thread, JSTaggedValue::Undefined()); in ForEach()
280 JSMutableHandle<JSTaggedValue> currentKey(thread, JSTaggedValue::Undefined()); in ForEach()
282 JSHandle<JSTaggedValue> undefined = thread->GlobalConstants()->GetHandledUndefined(); in ForEach()
284 node.Update(TaggedHashArray::GetCurrentNode(thread, queue, table, index)); in ForEach()
288 EcmaInterpreter::NewRuntimeCallInfo(thread, callbackFnHandle, in ForEach()
290 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in ForEach()
293 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, funcResult); in ForEach()