Home
last modified time | relevance | path

Searched full:thread (Results 1 – 25 of 1957) sorted by relevance

12345678910>>...79

/arkcompiler/ets_runtime/ecmascript/interpreter/
Dslow_runtime_stub.cpp22 JSTaggedValue SlowRuntimeStub::CallSpread(JSThread *thread, JSTaggedValue func, JSTaggedValue obj, in CallSpread() argument
25 INTERPRETER_TRACE(thread, CallSpread); in CallSpread()
26 [[maybe_unused]] EcmaHandleScope handleScope(thread); in CallSpread()
28 JSHandle<JSTaggedValue> jsFunc(thread, func); in CallSpread()
29 JSHandle<JSTaggedValue> jsArray(thread, array); in CallSpread()
30 JSHandle<JSTaggedValue> taggedObj(thread, obj); in CallSpread()
31 return RuntimeStubs::RuntimeCallSpread(thread, jsFunc, taggedObj, jsArray); in CallSpread()
34 JSTaggedValue SlowRuntimeStub::Neg(JSThread *thread, JSTaggedValue value) in Neg() argument
36 INTERPRETER_TRACE(thread, Neg); in Neg()
37 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Neg()
[all …]
Dslow_runtime_stub.h29 …static JSTaggedValue CallSpread(JSThread *thread, JSTaggedValue func, JSTaggedValue obj, JSTaggedV…
30 static JSTaggedValue Neg(JSThread *thread, JSTaggedValue value);
31 static JSTaggedValue AsyncFunctionEnter(JSThread *thread);
32 static JSTaggedValue ToNumber(JSThread *thread, JSTaggedValue value);
33 static JSTaggedValue ToNumeric(JSThread *thread, JSTaggedValue value);
34 static JSTaggedValue Not(JSThread *thread, JSTaggedValue value);
35 static JSTaggedValue Inc(JSThread *thread, JSTaggedValue value);
36 static JSTaggedValue Dec(JSThread *thread, JSTaggedValue value);
37 static void Throw(JSThread *thread, JSTaggedValue value);
38 static JSTaggedValue GetPropIterator(JSThread *thread, JSTaggedValue value);
[all …]
/arkcompiler/ets_runtime/ecmascript/
Dtagged_node.cpp21 JSHandle<RBTreeNode> LinkedNode::Treeing(JSThread *thread, const JSHandle<LinkedNode> &head) in Treeing() argument
23 JSMutableHandle<RBTreeNode> rootNode(thread, JSTaggedValue::Hole()); in Treeing()
24 JSMutableHandle<LinkedNode> next(thread, head); in Treeing()
25 JSMutableHandle<JSTaggedValue> key(thread, JSTaggedValue::Undefined()); in Treeing()
26 JSMutableHandle<JSTaggedValue> value(thread, JSTaggedValue::Undefined()); in Treeing()
28 key.Update(next->GetKey(thread)); in Treeing()
29 value.Update(next->GetValue(thread)); in Treeing()
30 … rootNode.Update(RBTreeNode::Set(thread, rootNode, next->GetHash(thread).GetInt(), key, value)); in Treeing()
32 next.Update(next->GetNext(thread)); in Treeing()
37 void RBTreeNode::InitRBTreeNode(JSThread *thread, int hash, JSHandle<JSTaggedValue> key, in InitRBTreeNode() argument
[all …]
Ddump.cpp481 static void DumpArrayClass(const JSThread *thread, const TaggedArray *arr, std::ostream &os) in DumpArrayClass() argument
487 JSTaggedValue val(arr->Get(thread, i)); in DumpArrayClass()
490 val.DumpTaggedValue(thread, os); in DumpArrayClass()
496 static void DumpMutantTaggedArray(const JSThread *thread, const MutantTaggedArray *arr, std::ostrea… in DumpMutantTaggedArray() argument
502 JSTaggedValue val(arr->Get(thread, i)); in DumpMutantTaggedArray()
509 static void DumpCOWMutantTaggedArray(const JSThread *thread, const COWMutantTaggedArray *arr, std::… in DumpCOWMutantTaggedArray() argument
515 JSTaggedValue val(arr->Get(thread, i)); in DumpCOWMutantTaggedArray()
522 static void DumpConstantPoolClass(const JSThread *thread, const ConstantPool *pool, std::ostream &o… in DumpConstantPoolClass() argument
528 JSTaggedValue val(pool->GetObjectFromCache(thread, i)); in DumpConstantPoolClass()
531 val.DumpTaggedValue(thread, os); in DumpConstantPoolClass()
[all …]
Dtagged_hash_array.cpp19 JSTaggedValue TaggedHashArray::Create(const JSThread *thread, uint32_t numberOfElements) in Create() argument
22 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in Create()
27 void TaggedHashArray::Clear(JSThread *thread) in Clear() argument
30 Set(thread, i, JSTaggedValue::Hole()); in Clear()
34 JSTaggedValue TaggedHashArray::GetNode(JSThread *thread, int hash, JSTaggedValue key) in GetNode() argument
38 JSTaggedValue nodeValue = Get(thread, ((nodeLength - 1) & hash)); in GetNode()
44 JSHandle<JSTaggedValue> node(thread, nodeValue); in GetNode()
45 JSHandle<JSTaggedValue> handleKey(thread, key); in GetNode()
46 return RBTreeNode::GetTreeNode(thread, node, hash, handleKey); in GetNode()
51 if (nextNode->GetHash(thread) == hashValue && in GetNode()
[all …]
Dtagged_queue.h33 inline JSTaggedValue Pop(JSThread *thread) in Pop() argument
35 if (Empty(thread)) { in Pop()
39 uint32_t start = GetStart(thread).GetArrayLength(); in Pop()
40 JSTaggedValue value = Get(thread, start); in Pop()
41 Set(thread, start, JSTaggedValue::Hole()); in Pop()
43 uint32_t capacity = GetCapacity(thread).GetArrayLength(); in Pop()
45 SetStart(thread, JSTaggedValue((start + 1) % capacity)); in Pop()
49 static TaggedQueue *Push(const JSThread *thread, const JSHandle<TaggedQueue> &queue, in Push() argument
52 uint32_t capacity = queue->GetCapacity(thread).GetArrayLength(); in Push()
55 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in Push()
[all …]
/arkcompiler/ets_runtime/ecmascript/tests/
Dtagged_value_test.cpp42 JSHandle<JSTaggedValue> stringV(thread->GetEcmaVM()->GetFactory()->NewFromASCII(data)); in NumberFromASCII()
43 return JSTaggedValue::ToNumber(thread, stringV); in NumberFromASCII()
136 result = JSTaggedValue::ToPrimitive(thread, JSHandle<JSTaggedValue>(thread, intV)); in HWTEST_F_L0()
140 result = JSTaggedValue::ToPrimitive(thread, JSHandle<JSTaggedValue>(thread, doubleV)); in HWTEST_F_L0()
144 result = JSTaggedValue::ToPrimitive(thread, JSHandle<JSTaggedValue>(thread, undefinedV)); in HWTEST_F_L0()
148 result = JSTaggedValue::ToPrimitive(thread, JSHandle<JSTaggedValue>(thread, holeV)); in HWTEST_F_L0()
152 result = JSTaggedValue::ToPrimitive(thread, JSHandle<JSTaggedValue>(thread, nullV)); in HWTEST_F_L0()
156 result = JSTaggedValue::ToPrimitive(thread, JSHandle<JSTaggedValue>(thread, falseV)); in HWTEST_F_L0()
160 result = JSTaggedValue::ToPrimitive(thread, JSHandle<JSTaggedValue>(thread, trueV)); in HWTEST_F_L0()
181 EXPECT_FALSE(thread->GetEcmaVM()->GetFactory()->GetEmptyString().GetTaggedValue().ToBoolean()); in HWTEST_F_L0()
[all …]
Djs_object_test.cpp44 static JSFunction *JSObjectTestCreate(JSThread *thread) in JSObjectTestCreate() argument
46 JSHandle<GlobalEnv> globalEnv = thread->GetEcmaVM()->GetGlobalEnv(); in JSObjectTestCreate()
52 JSHandle<JSTaggedValue> objFunc(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
54thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc… in HWTEST_F_L0()
60 JSHandle<JSTaggedValue> objFunc(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
62thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc… in HWTEST_F_L0()
66 JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromASCII(array)); in HWTEST_F_L0()
67 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
69 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsobject), key, value); in HWTEST_F_L0()
70 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(jsobject), key).GetValue()->GetInt… in HWTEST_F_L0()
[all …]
Djs_api_linked_list_test.cpp42 return EcmaContainerCommon::CreateLinkedList(thread); in CreateLinkedList()
55 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
56 JSMutableHandle<JSTaggedValue> value(thread, JSTaggedValue::Undefined()); in HWTEST_F_L0()
58 JSHandle<JSAPILinkedList> toor(thread, CreateLinkedList()); in HWTEST_F_L0()
64 JSAPILinkedList::Add(thread, toor, value); in HWTEST_F_L0()
66 EXPECT_EQ(toor->Length(thread), NODE_NUMBERS); in HWTEST_F_L0()
68 EcmaTestCommon::ListAddHasCommon(thread, toor, value, myValue, NODE_NUMBERS) ; in HWTEST_F_L0()
73 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
74 JSHandle<JSAPILinkedList> list(thread, CreateLinkedList()); in HWTEST_F_L0()
75 list->Add(thread, list, value); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs-inl.h60 JSTaggedValue RuntimeStubs::RuntimeInc(JSThread *thread, const JSHandle<JSTaggedValue> &value) in RuntimeInc() argument
62 JSHandle<JSTaggedValue> inputVal = JSTaggedValue::ToNumeric(thread, value); in RuntimeInc()
63 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in RuntimeInc()
66 return BigInt::BigintAddOne(thread, bigValue).GetTaggedValue(); in RuntimeInc()
72 JSTaggedValue RuntimeStubs::RuntimeDec(JSThread *thread, const JSHandle<JSTaggedValue> &value) in RuntimeDec() argument
74 JSHandle<JSTaggedValue> inputVal = JSTaggedValue::ToNumeric(thread, value); in RuntimeDec()
75 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in RuntimeDec()
78 return BigInt::BigintSubOne(thread, bigValue).GetTaggedValue(); in RuntimeDec()
84 JSTaggedValue RuntimeStubs::RuntimeExp(JSThread *thread, JSTaggedValue base, JSTaggedValue exponent) in RuntimeExp() argument
86 JSHandle<JSTaggedValue> baseTag(thread, base); in RuntimeExp()
[all …]
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_vector.cpp27 JSThread *thread = argv->GetThread(); in VectorConstructor() local
28 BUILTINS_API_TRACE(thread, Vector, Constructor); in VectorConstructor()
29 [[maybe_unused]] EcmaHandleScope handleScope(thread); in VectorConstructor()
31 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in VectorConstructor()
34 … THROW_TYPE_ERROR_AND_RETURN(thread, "new target can't be undefined", JSTaggedValue::Exception()); in VectorConstructor()
39 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in VectorConstructor()
41 obj->SetElements(thread, newTaggedArray); in VectorConstructor()
49 JSThread *thread = argv->GetThread(); in Add() local
50 BUILTINS_API_TRACE(thread, Vector, Add); in Add()
51 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Add()
[all …]
Dcontainers_linked_list.cpp28 JSThread *thread = argv->GetThread(); in LinkedListConstructor() local
29 BUILTINS_API_TRACE(thread, LinkedList, Constructor); in LinkedListConstructor()
30 [[maybe_unused]] EcmaHandleScope handleScope(thread); in LinkedListConstructor()
31 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in LinkedListConstructor()
35 ContainerError::BusinessError(thread, ErrorFlag::IS_NULL_ERROR, in LinkedListConstructor()
37 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in LinkedListConstructor()
41 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in LinkedListConstructor()
43 JSTaggedValue doubleList = TaggedDoubleList::Create(thread); in LinkedListConstructor()
44 linkedList->SetDoubleList(thread, doubleList); in LinkedListConstructor()
51 JSThread *thread = argv->GetThread(); in Add() local
[all …]
Dcontainers_lightweightset.cpp27 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()
[all …]
Dcontainers_list.cpp28 JSThread *thread = argv->GetThread(); in ListConstructor() local
29 BUILTINS_API_TRACE(thread, List, Constructor); in ListConstructor()
30 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ListConstructor()
31 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in ListConstructor()
35 ContainerError::BusinessError(thread, ErrorFlag::IS_NULL_ERROR, in ListConstructor()
37 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ListConstructor()
41 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in ListConstructor()
45 JSTaggedValue singleList = TaggedSingleList::Create(thread); in ListConstructor()
46 list->SetSingleList(thread, singleList); in ListConstructor()
54 JSThread *thread = argv->GetThread(); in Add() local
[all …]
Dcontainers_private.cpp62 JSThread *thread = msg->GetThread(); in Load() local
63 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Load()
68 …if (!JSTaggedValue::ToElementIndex(thread, argv.GetTaggedValue(), &tag) || tag >= ContainerTag::EN… in Load()
69 … THROW_TYPE_ERROR_AND_RETURN(thread, "Incorrect input parameters", JSTaggedValue::Exception()); in Load()
73 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in Load()
75 …JSHandle<JSObject> undefinedIteratorResult = JSIterator::CreateIterResultObject(thread, undefinedH… in Load()
76 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in Load()
77 env->SetUndefinedIteratorResult(thread, undefinedIteratorResult); in Load()
82 … res = InitializeContainer(thread, thisValue, InitializeArrayList, "ArrayListConstructor"); in Load()
86 res = InitializeContainer(thread, thisValue, InitializeDeque, "DequeConstructor"); in Load()
[all …]
Dcontainers_lightweightmap.cpp28 JSThread *thread = argv->GetThread(); in LightWeightMapConstructor() local
29 BUILTINS_API_TRACE(thread, LightWeightMap, Constructor); in LightWeightMapConstructor()
30 [[maybe_unused]] EcmaHandleScope handleScope(thread); in LightWeightMapConstructor()
31 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in LightWeightMapConstructor()
35 ContainerError::BusinessError(thread, ErrorFlag::IS_NULL_ERROR, in LightWeightMapConstructor()
37 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in LightWeightMapConstructor()
41 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in LightWeightMapConstructor()
46 lwMap->SetHashes(thread, hashArray.GetTaggedValue()); in LightWeightMapConstructor()
47 lwMap->SetKeys(thread, keyArray.GetTaggedValue()); in LightWeightMapConstructor()
48 lwMap->SetValues(thread, valueArray.GetTaggedValue()); in LightWeightMapConstructor()
[all …]
Dcontainers_plainarray.cpp26 JSThread *thread = argv->GetThread(); in PlainArrayConstructor() local
27 BUILTINS_API_TRACE(thread, PlainArray, Constructor); in PlainArrayConstructor()
28 [[maybe_unused]] EcmaHandleScope handleScope(thread); in PlainArrayConstructor()
29 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in PlainArrayConstructor()
33 ContainerError::BusinessError(thread, ErrorFlag::IS_NULL_ERROR, in PlainArrayConstructor()
35 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in PlainArrayConstructor()
39 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in PlainArrayConstructor()
42 JSAPIPlainArray::CreateSlot(thread, JSAPIPlainArray::DEFAULT_CAPACITY_LENGTH); in PlainArrayConstructor()
44 JSAPIPlainArray::CreateSlot(thread, JSAPIPlainArray::DEFAULT_CAPACITY_LENGTH); in PlainArrayConstructor()
45 plainArray->SetKeys(thread, keys); in PlainArrayConstructor()
[all …]
Dcontainers_arraylist.cpp29 JSThread *thread = argv->GetThread(); in ArrayListConstructor() local
30 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ArrayListConstructor()
31 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in ArrayListConstructor()
35 ContainerError::BusinessError(thread, ErrorFlag::IS_NULL_ERROR, in ArrayListConstructor()
37 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ArrayListConstructor()
41 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in ArrayListConstructor()
43 obj->SetElements(thread, newTaggedArray); in ArrayListConstructor()
51 JSThread *thread = argv->GetThread(); in Add() local
52 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Add()
56 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIArrayList()) { in Add()
[all …]
Dcontainers_hashmap.cpp27 JSThread *thread = argv->GetThread(); in HashMapConstructor() local
28 BUILTINS_API_TRACE(thread, HashMap, Constructor); in HashMapConstructor()
29 [[maybe_unused]] EcmaHandleScope handleScope(thread); in HashMapConstructor()
30 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HashMapConstructor()
35 ContainerError::BusinessError(thread, ErrorFlag::IS_NULL_ERROR, in HashMapConstructor()
37 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HashMapConstructor()
42 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in HashMapConstructor()
45 JSTaggedValue hashMapArray = TaggedHashArray::Create(thread); in HashMapConstructor()
46 hashMap->SetTable(thread, hashMapArray); in HashMapConstructor()
55 JSThread *thread = argv->GetThread(); in Keys() local
[all …]
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_linked_list.cpp22 JSTaggedValue JSAPILinkedList::Insert(JSThread *thread, const JSHandle<JSAPILinkedList> &list, in Insert() argument
25 JSHandle<TaggedDoubleList> doubleList(thread, list->GetDoubleList(thread)); in Insert()
31 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::RANGE_ERROR, oss.str().c_st… in Insert()
32 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Insert()
34 JSTaggedValue newList = TaggedDoubleList::Insert(thread, doubleList, value, index); in Insert()
35 list->SetDoubleList(thread, newList); in Insert()
39 void JSAPILinkedList::Clear(JSThread *thread) in Clear() argument
41 TaggedDoubleList *doubleList = TaggedDoubleList::Cast(GetDoubleList(thread).GetTaggedObject()); in Clear()
43 doubleList->Clear(thread); in Clear()
47 JSHandle<JSAPILinkedList> JSAPILinkedList::Clone(JSThread *thread, const JSHandle<JSAPILinkedList> … in Clone() argument
[all …]
Djs_api_arraylist.cpp26 bool JSAPIArrayList::Add(JSThread *thread, const JSHandle<JSAPIArrayList> &arrayList, in Add() argument
29 uint32_t length = arrayList->GetLength(thread).GetArrayLength(); in Add()
30 JSHandle<TaggedArray> elements = GrowCapacity(thread, arrayList, length + 1); in Add()
33 elements->Set(thread, length, value); in Add()
34 arrayList->SetLength(thread, JSTaggedValue(++length)); in Add()
38 void JSAPIArrayList::Insert(JSThread *thread, const JSHandle<JSAPIArrayList> &arrayList, in Insert() argument
41 int length = arrayList->GetLength(thread).GetInt(); in Insert()
46 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::RANGE_ERROR, oss.str().c_st… in Insert()
47 THROW_NEW_ERROR_AND_RETURN(thread, error); in Insert()
49 JSHandle<TaggedArray> elements = GrowCapacity(thread, arrayList, length + 1); in Insert()
[all …]
Djs_api_list.cpp23 void JSAPIList::Add(JSThread *thread, const JSHandle<JSAPIList> &list, const JSHandle<JSTaggedValue… in Add() argument
25 JSHandle<TaggedSingleList> singleList(thread, list->GetSingleList(thread)); in Add()
26 JSTaggedValue newList = TaggedSingleList::Add(thread, singleList, value); in Add()
27 list->SetSingleList(thread, newList); in Add()
30 JSTaggedValue JSAPIList::GetFirst(const JSThread *thread) in GetFirst() argument
32 …TaggedValue res = TaggedSingleList::Cast(GetSingleList(thread).GetTaggedObject())->GetFirst(thread in GetFirst()
39 JSTaggedValue JSAPIList::GetLast(const JSThread *thread) in GetLast() argument
41 …TaggedValue res = TaggedSingleList::Cast(GetSingleList(thread).GetTaggedObject())->GetLast(thread); in GetLast()
48 JSTaggedValue JSAPIList::Insert(JSThread *thread, const JSHandle<JSAPIList> &list, const JSHandle<J… in Insert() argument
51 JSHandle<TaggedSingleList> singleList(thread, list->GetSingleList(thread)); in Insert()
[all …]
Djs_api_hashmap.cpp29 JSTaggedValue JSAPIHashMap::HasKey(JSThread *thread, JSTaggedValue key) in HasKey() argument
31 TaggedHashArray *hashArray = TaggedHashArray::Cast(GetTable(thread).GetTaggedObject()); in HasKey()
32 int hash = TaggedNode::Hash(thread, key); in HasKey()
33 return JSTaggedValue(!(hashArray->GetNode(thread, hash, key).IsHole())); in HasKey()
36 JSTaggedValue JSAPIHashMap::HasValue(JSThread *thread, JSHandle<JSAPIHashMap> hashMap, in HasValue() argument
39 JSHandle<TaggedHashArray> hashArray(thread, hashMap->GetTable(thread)); in HasValue()
43 JSTaggedValue node = hashArray->Get(thread, index); in HasValue()
48 if (HasValueLinkedNode(thread, node, taggedValue)) { in HasValue()
52 if (HasValueRBTreeNode(thread, node, taggedValue)) { in HasValue()
60 bool JSAPIHashMap::HasValueLinkedNode(JSThread *thread, JSTaggedValue node, JSTaggedValue value) in HasValueLinkedNode() argument
[all …]
/arkcompiler/ets_runtime/ecmascript/jobs/tests/
Dmicro_job_queue_test.cpp44 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
54 JSThread *thread {nullptr}; member in panda::test::MicroJobQueueTest
66 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
68 JSHandle<JSTaggedValue> handleValue(thread, JSTaggedValue(123)); in HWTEST_F_L0()
71 TaggedQueue::PushFixedQueue(thread, handlePromiseQueue, handleValue); in HWTEST_F_L0()
77 handleMicroJobQueue->SetPromiseJobQueue(thread, handlePromiseQueue.GetTaggedValue()); in HWTEST_F_L0()
78 handleMicroJobQueue->SetScriptJobQueue(thread, handleScriptQueue.GetTaggedValue()); in HWTEST_F_L0()
80 JSHandle<TaggedQueue> promiseQueue(thread, handleMicroJobQueue->GetPromiseJobQueue(thread)); in HWTEST_F_L0()
81 JSHandle<TaggedQueue> scriptQueue(thread, handleMicroJobQueue->GetScriptJobQueue(thread)); in HWTEST_F_L0()
83 EXPECT_EQ(promiseQueue->Size(thread), 1U); in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/static_core/runtime/
Dexceptions.cpp38 void ThrowException(const LanguageContext &ctx, ManagedThread *thread, const uint8_t *mutf8Name, in ThrowException() argument
41 ctx.ThrowException(thread, mutf8Name, mutf8Msg); in ThrowException()
44 static LanguageContext GetLanguageContext(ManagedThread *thread) in GetLanguageContext() argument
46 ASSERT(thread != nullptr); in GetLanguageContext()
47 return thread->GetVM()->GetLanguageContext(); in GetLanguageContext()
52 auto *thread = ManagedThread::GetCurrent(); in ThrowNullPointerException() local
53 auto ctx = GetLanguageContext(thread); in ThrowNullPointerException()
54 ThrowNullPointerException(ctx, thread); in ThrowNullPointerException()
57 void ThrowNullPointerException(const LanguageContext &ctx, ManagedThread *thread) in ThrowNullPointerException() argument
59 ThrowException(ctx, thread, ctx.GetNullPointerExceptionClassDescriptor(), nullptr); in ThrowNullPointerException()
[all …]

12345678910>>...79