Home
last modified time | relevance | path

Searched refs:JSAPIQueue (Results 1 – 25 of 30) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/tests/
Djs_api_queue_test.cpp26 JSHandle<JSAPIQueue> CreateQueue(int capacaty = JSAPIQueue::DEFAULT_CAPACITY_LENGTH) in CreateQueue()
31 …JSHandle<JSAPIQueue> TestCommon(JSMutableHandle<JSTaggedValue>& value, std::string& queueValue, ui… in TestCommon()
34 JSHandle<JSAPIQueue> jsQueue = CreateQueue(); in TestCommon()
38 JSAPIQueue::Add(thread, jsQueue, value); in TestCommon()
46 JSHandle<JSAPIQueue> jsQueue = CreateQueue(); in HWTEST_F_L0()
55 JSHandle<JSAPIQueue> jsQueue = TestCommon(value, queueValue, DEFAULT_LENGTH); in HWTEST_F_L0()
57 EXPECT_EQ(JSAPIQueue::GetArrayLength(thread, jsQueue), DEFAULT_LENGTH); in HWTEST_F_L0()
79 JSHandle<JSAPIQueue> jsQueue = CreateQueue(); in HWTEST_F_L0()
82 EXPECT_EQ(JSAPIQueue::GetFirst(thread, jsQueue), JSTaggedValue::Undefined()); in HWTEST_F_L0()
83 EXPECT_EQ(JSAPIQueue::Pop(thread, jsQueue), JSTaggedValue::Undefined()); in HWTEST_F_L0()
[all …]
Djs_api_queue_iterator_test.cpp28 JSHandle<JSAPIQueue> CreateQueue(int capacaty = JSAPIQueue::DEFAULT_CAPACITY_LENGTH) in CreateQueue()
45 JSHandle<JSAPIQueue> jsQueue = CreateQueue(); in HWTEST_F_L0()
54 JSAPIQueue::Add(thread, jsQueue, value); in HWTEST_F_L0()
89 JSHandle<JSAPIQueue> jsQueue = CreateQueue(); in HWTEST_F_L0()
132 JSHandle<JSAPIQueue> jsQueue1 = CreateQueue(); in HWTEST_F_L0()
133 JSHandle<JSAPIQueue> jsQueue2 = CreateQueue(); in HWTEST_F_L0()
142 JSAPIQueue::Add(thread, jsQueue1, value); in HWTEST_F_L0()
148 JSAPIQueue::Add(thread, jsQueue2, value); in HWTEST_F_L0()
168 JSHandle<JSAPIQueue> jsQueue = CreateQueue(); in HWTEST_F_L0()
176 JSAPIQueue::Add(thread, jsQueue, value); in HWTEST_F_L0()
Decma_container_common.h186 static JSHandle<JSAPIQueue> CreateQueue(JSThread *thread, int capacaty) in CreateQueue()
191 …JSHandle<JSAPIQueue> jsQueue(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), … in CreateQueue()
Ddump_test.cpp429 static JSHandle<JSAPIQueue> NewJSAPIQueue(JSThread *thread, ObjectFactory *factory, JSHandle<JSTagg… in NewJSAPIQueue()
431 …JSHandle<JSHClass> queueClass = factory->NewEcmaHClass(JSAPIQueue::SIZE, JSType::JS_API_QUEUE, pro… in NewJSAPIQueue()
432 …JSHandle<JSAPIQueue> jsQueue = JSHandle<JSAPIQueue>::Cast(factory->NewJSObjectWithInit(queueClass)… in NewJSAPIQueue()
433 … JSHandle<TaggedArray> newElements = factory->NewTaggedArray(JSAPIQueue::DEFAULT_CAPACITY_LENGTH); in NewJSAPIQueue()
1325 CHECK_DUMP_FIELDS(JSObject::SIZE, JSAPIQueue::SIZE, 2U); in HWTEST_F_L0()
1326 JSHandle<JSAPIQueue> jsQueue = NewJSAPIQueue(thread, factory, proto); in HWTEST_F_L0()
1333 JSHandle<JSAPIQueue> jsQueue = NewJSAPIQueue(thread, factory, proto); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_queue.h23 class JSAPIQueue : public JSObject {
26 static JSAPIQueue *Cast(TaggedObject *object) in Cast()
29 return static_cast<JSAPIQueue *>(object); in Cast()
32 …static void Add(JSThread *thread, const JSHandle<JSAPIQueue> &queue, const JSHandle<JSTaggedValue>…
33 static JSTaggedValue GetFirst(JSThread *thread, const JSHandle<JSAPIQueue> &queue);
34 static JSTaggedValue Pop(JSThread *thread, const JSHandle<JSAPIQueue> &queue);
35 …static void ForEach(JSThread *thread, const JSHandle<JSAPIQueue> &queue, const JSHandle<JSTaggedVa…
41 static JSHandle<TaggedArray> OwnKeys(JSThread *thread, const JSHandle<JSAPIQueue> &obj);
42 static JSHandle<TaggedArray> OwnEnumKeys(JSThread *thread, const JSHandle<JSAPIQueue> &obj);
43 …static bool GetOwnProperty(JSThread *thread, const JSHandle<JSAPIQueue> &obj, const JSHandle<JSTag…
[all …]
Djs_api_queue.cpp22 void JSAPIQueue::Add(JSThread *thread, const JSHandle<JSAPIQueue> &queue, const JSHandle<JSTaggedVa… in Add()
38 JSHandle<TaggedArray> JSAPIQueue::GrowCapacity(const JSThread *thread, const JSHandle<JSAPIQueue> &… in GrowCapacity()
66 JSTaggedValue JSAPIQueue::GetFirst(JSThread *thread, const JSHandle<JSAPIQueue> &queue) in GetFirst()
79 JSTaggedValue JSAPIQueue::Pop(JSThread *thread, const JSHandle<JSAPIQueue> &queue) in Pop()
99 JSTaggedValue JSAPIQueue::Get(JSThread *thread, const uint32_t index) in Get()
119 JSTaggedValue JSAPIQueue::Set(JSThread *thread, const uint32_t index, JSTaggedValue value) in Set()
138 bool JSAPIQueue::Has(const JSThread *thread, JSTaggedValue value) const in Has()
156 JSHandle<TaggedArray> JSAPIQueue::OwnKeys(JSThread *thread, const JSHandle<JSAPIQueue> &obj) in OwnKeys()
174 JSHandle<TaggedArray> JSAPIQueue::OwnEnumKeys(JSThread *thread, const JSHandle<JSAPIQueue> &obj) in OwnEnumKeys()
193 bool JSAPIQueue::GetOwnProperty(JSThread *thread, const JSHandle<JSAPIQueue> &obj, in GetOwnProperty()
[all …]
Djs_api_queue_iterator.cpp47 uint32_t length = JSAPIQueue::GetArrayLength(thread, JSHandle<JSAPIQueue>(queue)); in Next()
56 JSHandle<JSTaggedValue> value(thread, JSHandle<JSAPIQueue>::Cast(queue)->Get(thread, index)); in Next()
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_queue.cpp41 …JSHandle<TaggedArray> newTaggedArray = factory->NewTaggedArray(JSAPIQueue::DEFAULT_CAPACITY_LENGTH… in QueueConstructor()
66 JSAPIQueue::Add(thread, JSHandle<JSAPIQueue>::Cast(self), value); in Add()
88 JSTaggedValue value = JSAPIQueue::GetFirst(thread, JSHandle<JSAPIQueue>::Cast(self)); in GetFirst()
111 JSTaggedValue value = JSAPIQueue::Pop(thread, JSHandle<JSAPIQueue>::Cast(self)); in Pop()
135 JSHandle<JSAPIQueue> queue = JSHandle<JSAPIQueue>::Cast(thisHandle); in ForEach()
137 uint32_t len = JSAPIQueue::GetArrayLength(thread, queue); in ForEach()
191 …JSHandle<JSAPIQueueIterator> iter(factory->NewJSAPIQueueIterator(JSHandle<JSAPIQueue>::Cast(self))… in GetIteratorObj()
213 uint32_t length = JSHandle<JSAPIQueue>::Cast(self)->GetSize(thread); in GetSize()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dcontainers_queue_stub_builder.h45 GateRef begin = LoadPrimitive(VariableType::INT32(), obj, IntPtr(JSAPIQueue::FRONT_OFFSET)); in BUILTINS_WITH_CONTAINERS_QUEUE_STUB_BUILDER()
46 GateRef end = LoadPrimitive(VariableType::INT32(), obj, IntPtr(JSAPIQueue::TAIL_OFFSET)); in BUILTINS_WITH_CONTAINERS_QUEUE_STUB_BUILDER()
72 GateRef front = LoadPrimitive(VariableType::INT32(), obj, IntPtr(JSAPIQueue::FRONT_OFFSET)); in Get()
87 return LoadPrimitive(VariableType::INT32(), obj, IntPtr(JSAPIQueue::FRONT_OFFSET)); in GetCurrentFront()
/arkcompiler/ets_runtime/test/fuzztest/containersqueueforeach_fuzzer/
Dcontainersqueueforeach_fuzzer.cpp72 …JSHandle<JSAPIQueue> CreateJSAPIQueue(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIQueue()
82 JSHandle<JSAPIQueue> queue(thread, result); in CreateJSAPIQueue()
107 JSHandle<JSAPIQueue> queue = CreateJSAPIQueue(thread); in ContainersQueueForEachFuzzTest()
117 JSHandle<JSAPIQueue> dlist = CreateJSAPIQueue(thread); in ContainersQueueForEachFuzzTest()
/arkcompiler/ets_runtime/ecmascript/containers/tests/
Dcontainers_queue_test.cpp80 JSHandle<JSAPIQueue> CreateJSAPIQueue(JSTaggedValue compare = JSTaggedValue::Undefined()) in CreateJSAPIQueue()
93 JSHandle<JSAPIQueue> queue(thread, result); in CreateJSAPIQueue()
113 JSHandle<JSAPIQueue> queue(thread, result); in HWTEST_F_L0()
126 JSHandle<JSAPIQueue> queue = CreateJSAPIQueue(); in HWTEST_F_L0()
/arkcompiler/ets_runtime/test/fuzztest/containersqueuegetsize_fuzzer/
Dcontainersqueuegetsize_fuzzer.cpp67 …JSHandle<JSAPIQueue> CreateJSAPIQueue(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIQueue()
77 JSHandle<JSAPIQueue> queue(thread, result); in CreateJSAPIQueue()
102 JSHandle<JSAPIQueue> queue = CreateJSAPIQueue(thread); in ContainersQueueGetSizeFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containersqueue_fuzzer/
Dcontainersqueue_fuzzer.cpp67 …JSHandle<JSAPIQueue> CreateJSAPIQueue(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIQueue()
77 JSHandle<JSAPIQueue> queue(thread, result); in CreateJSAPIQueue()
102 JSHandle<JSAPIQueue> queue = CreateJSAPIQueue(thread); in ContainersQueueFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containersqueueadd_fuzzer/
Dcontainersqueueadd_fuzzer.cpp67 …JSHandle<JSAPIQueue> CreateJSAPIQueue(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIQueue()
77 JSHandle<JSAPIQueue> queue(thread, result); in CreateJSAPIQueue()
101 JSHandle<JSAPIQueue> queue = CreateJSAPIQueue(thread); in ContainersQueueAddFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containersqueuegetiteratorobj_fuzzer/
Dcontainersqueuegetiteratorobj_fuzzer.cpp67 …JSHandle<JSAPIQueue> CreateJSAPIQueue(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIQueue()
77 JSHandle<JSAPIQueue> queue(thread, result); in CreateJSAPIQueue()
101 JSHandle<JSAPIQueue> queue = CreateJSAPIQueue(thread); in ContainersQueueGetIteratorObjFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containersqueuepop_fuzzer/
Dcontainersqueuepop_fuzzer.cpp67 …JSHandle<JSAPIQueue> CreateJSAPIQueue(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIQueue()
77 JSHandle<JSAPIQueue> queue(thread, result); in CreateJSAPIQueue()
102 JSHandle<JSAPIQueue> queue = CreateJSAPIQueue(thread); in ContainersQueuePopFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containersqueuegetfirst_fuzzer/
Dcontainersqueuegetfirst_fuzzer.cpp67 …JSHandle<JSAPIQueue> CreateJSAPIQueue(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIQueue()
77 JSHandle<JSAPIQueue> queue(thread, result); in CreateJSAPIQueue()
101 JSHandle<JSAPIQueue> queue = CreateJSAPIQueue(thread); in ContainersQueueGetFirstFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefismodulenamespace_fuzzer/
Djsvaluerefismodulenamespace_fuzzer.cpp207 …JSHandle<JSHClass> queueClass = factory->NewEcmaHClass(JSAPIQueue::SIZE, JSType::JS_API_QUEUE, pro… in IsDequeFuzztest()
208 …JSHandle<JSAPIQueue> jsQueue = JSHandle<JSAPIQueue>::Cast(factory->NewJSObjectWithInit(queueClass)… in IsDequeFuzztest()
209 … JSHandle<TaggedArray> newElements = factory->NewTaggedArray(JSAPIQueue::DEFAULT_CAPACITY_LENGTH); in IsDequeFuzztest()
/arkcompiler/ets_runtime/ecmascript/
Djs_tagged_value.cpp1585 return JSHandle<JSAPIQueue>::Cast(obj)->Has(thread, key.GetTaggedValue()); in HasContainerProperty()
1635 return JSAPIQueue::OwnKeys(thread, JSHandle<JSAPIQueue>::Cast(obj)); in GetOwnContainerPropertyKeys()
1681 return JSAPIQueue::OwnEnumKeys(thread, JSHandle<JSAPIQueue>::Cast(obj)); in GetOwnContainerEnumPropertyKeys()
1723 return JSAPIQueue::GetOwnProperty(thread, JSHandle<JSAPIQueue>::Cast(obj), key); in GetContainerProperty()
1822 return JSAPIQueue::GetProperty(thread, JSHandle<JSAPIQueue>::Cast(obj), key); in GetJSAPIProperty()
1871 return JSAPIQueue::SetProperty(thread, JSHandle<JSAPIQueue>::Cast(obj), key, value); in SetJSAPIProperty()
Dobject_fast_operator-inl.h1206 res = JSAPIQueue::Cast(receiver.GetTaggedObject())->Get(thread, index); in GetContainerProperty()
1254 res = JSAPIQueue::Cast(receiver.GetTaggedObject())->Set(thread, index, value); in SetContainerProperty()
Dobject_factory.h131 class JSAPIQueue; variable
703 JSHandle<JSAPIQueueIterator> NewJSAPIQueueIterator(const JSHandle<JSAPIQueue> &queue);
Ddump.cpp1170 JSAPIQueue::Cast(obj)->Dump(thread, os); in DumpObject()
2567 void JSAPIQueue::Dump(const JSThread *thread, std::ostream &os) const in Dump()
2577 JSAPIQueue *queue = JSAPIQueue::Cast(GetIteratedQueue(thread).GetTaggedObject()); in Dump()
4449 JSAPIQueue::Cast(obj)->DumpForSnapshot(thread, vec); in DumpObject()
5236 void JSAPIQueue::DumpForSnapshot(const JSThread *thread, std::vector<Reference> &vec) const in DumpForSnapshot()
5245 JSAPIQueue *queue = JSAPIQueue::Cast(GetIteratedQueue(thread).GetTaggedObject()); in DumpForSnapshot()
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/
Dheap_dump_test.cpp629 JSHandle<JSAPIQueue> NewJSAPIQueue() in NewJSAPIQueue()
634 … JSHandle<JSObject> jsAPIQueueObject = NewObject(JSAPIQueue::SIZE, JSType::JS_API_QUEUE, proto); in NewJSAPIQueue()
635 JSHandle<JSAPIQueue> jsAPIQueue = JSHandle<JSAPIQueue>::Cast(jsAPIQueueObject); in NewJSAPIQueue()
636 … JSHandle<TaggedArray> newElements = factory->NewTaggedArray(JSAPIQueue::DEFAULT_CAPACITY_LENGTH); in NewJSAPIQueue()
/arkcompiler/ets_runtime/
Dlibark_jsruntime.map241 panda::ecmascript::JSAPIQueue::Set*;
/arkcompiler/ets_runtime/ecmascript/mem/
Dobject_xray.h637 JSAPIQueue::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()

12