/arkcompiler/ets_runtime/ecmascript/js_api/ |
D | js_api_queue.h | 23 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 …]
|
D | js_api_queue.cpp | 27 void JSAPIQueue::Add(JSThread *thread, const JSHandle<JSAPIQueue> &queue, const JSHandle<JSTaggedVa… in Add() 43 JSHandle<TaggedArray> JSAPIQueue::GrowCapacity(const JSThread *thread, const JSHandle<JSAPIQueue> &… in GrowCapacity() 71 JSTaggedValue JSAPIQueue::GetFirst(JSThread *thread, const JSHandle<JSAPIQueue> &queue) in GetFirst() 84 JSTaggedValue JSAPIQueue::Pop(JSThread *thread, const JSHandle<JSAPIQueue> &queue) in Pop() 104 JSTaggedValue JSAPIQueue::Get(JSThread *thread, const uint32_t index) in Get() 123 JSTaggedValue JSAPIQueue::Set(JSThread *thread, const uint32_t index, JSTaggedValue value) in Set() 138 bool JSAPIQueue::Has(JSTaggedValue value) const in Has() 156 JSHandle<TaggedArray> JSAPIQueue::OwnKeys(JSThread *thread, const JSHandle<JSAPIQueue> &obj) in OwnKeys() 175 JSHandle<TaggedArray> JSAPIQueue::OwnEnumKeys(JSThread *thread, const JSHandle<JSAPIQueue> &obj) in OwnEnumKeys() 194 bool JSAPIQueue::GetOwnProperty(JSThread *thread, const JSHandle<JSAPIQueue> &obj, in GetOwnProperty() [all …]
|
D | js_api_queue_iterator.cpp | 49 uint32_t length = JSAPIQueue::GetArrayLength(thread, JSHandle<JSAPIQueue>(queue)); in Next() 57 JSHandle<JSTaggedValue> value(thread, JSHandle<JSAPIQueue>::Cast(queue)->Get(thread, index)); in Next()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_api_queue_test.cpp | 51 JSHandle<JSAPIQueue> CreateQueue(int capacaty = JSAPIQueue::DEFAULT_CAPACITY_LENGTH) in CreateQueue() 71 …JSHandle<JSAPIQueue> jsQueue(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), … in CreateQueue() 83 JSHandle<JSAPIQueue> jsQueue = CreateQueue(); in HWTEST_F_L0() 92 JSHandle<JSAPIQueue> jsQueue = CreateQueue(); in HWTEST_F_L0() 98 JSAPIQueue::Add(thread, jsQueue, value); in HWTEST_F_L0() 101 EXPECT_EQ(JSAPIQueue::GetArrayLength(thread, jsQueue), DEFAULT_LENGTH); in HWTEST_F_L0() 122 JSHandle<JSAPIQueue> jsQueue = CreateQueue(); in HWTEST_F_L0() 125 EXPECT_EQ(JSAPIQueue::GetFirst(thread, jsQueue), JSTaggedValue::Undefined()); in HWTEST_F_L0() 126 EXPECT_EQ(JSAPIQueue::Pop(thread, jsQueue), JSTaggedValue::Undefined()); in HWTEST_F_L0() 132 JSAPIQueue::Add(thread, jsQueue, value); in HWTEST_F_L0() [all …]
|
D | js_api_queue_iterator_test.cpp | 53 JSHandle<JSAPIQueue> CreateQueue(int capacaty = JSAPIQueue::DEFAULT_CAPACITY_LENGTH) in CreateQueue() 73 …JSHandle<JSAPIQueue> jsQueue(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), … in CreateQueue() 94 JSHandle<JSAPIQueue> jsQueue = CreateQueue(); in HWTEST_F_L0() 103 JSAPIQueue::Add(thread, jsQueue, value); in HWTEST_F_L0() 138 JSHandle<JSAPIQueue> jsQueue = CreateQueue(); in HWTEST_F_L0() 181 JSHandle<JSAPIQueue> jsQueue1 = CreateQueue(); in HWTEST_F_L0() 182 JSHandle<JSAPIQueue> jsQueue2 = CreateQueue(); in HWTEST_F_L0() 191 JSAPIQueue::Add(thread, jsQueue1, value); in HWTEST_F_L0() 197 JSAPIQueue::Add(thread, jsQueue2, value); in HWTEST_F_L0() 217 JSHandle<JSAPIQueue> jsQueue = CreateQueue(); in HWTEST_F_L0() [all …]
|
D | dump_test.cpp | 360 static JSHandle<JSAPIQueue> NewJSAPIQueue(JSThread *thread, ObjectFactory *factory, JSHandle<JSTagg… in NewJSAPIQueue() 362 …JSHandle<JSHClass> queueClass = factory->NewEcmaHClass(JSAPIQueue::SIZE, JSType::JS_API_QUEUE, pro… in NewJSAPIQueue() 363 …JSHandle<JSAPIQueue> jsQueue = JSHandle<JSAPIQueue>::Cast(factory->NewJSObjectWithInit(queueClass)… in NewJSAPIQueue() 364 … JSHandle<TaggedArray> newElements = factory->NewTaggedArray(JSAPIQueue::DEFAULT_CAPACITY_LENGTH); in NewJSAPIQueue() 1185 CHECK_DUMP_FIELDS(JSObject::SIZE, JSAPIQueue::SIZE, 2U); in HWTEST_F_L0() 1186 JSHandle<JSAPIQueue> jsQueue = NewJSAPIQueue(thread, factory, proto); in HWTEST_F_L0() 1193 JSHandle<JSAPIQueue> jsQueue = NewJSAPIQueue(thread, factory, proto); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/containers/ |
D | containers_queue.cpp | 44 …JSHandle<TaggedArray> newTaggedArray = factory->NewTaggedArray(JSAPIQueue::DEFAULT_CAPACITY_LENGTH… in QueueConstructor() 69 JSAPIQueue::Add(thread, JSHandle<JSAPIQueue>::Cast(self), value); in Add() 91 JSTaggedValue value = JSAPIQueue::GetFirst(thread, JSHandle<JSAPIQueue>::Cast(self)); in GetFirst() 114 JSTaggedValue value = JSAPIQueue::Pop(thread, JSHandle<JSAPIQueue>::Cast(self)); in Pop() 138 JSHandle<JSAPIQueue> queue = JSHandle<JSAPIQueue>::Cast(thisHandle); in ForEach() 140 uint32_t len = JSAPIQueue::GetArrayLength(thread, queue); in ForEach() 194 …JSHandle<JSAPIQueueIterator> iter(factory->NewJSAPIQueueIterator(JSHandle<JSAPIQueue>::Cast(self))… in GetIteratorObj() 216 uint32_t length = JSHandle<JSAPIQueue>::Cast(self)->GetSize(); in GetSize()
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
D | containers_queue_stub_builder.h | 40 GateRef begin = Load(VariableType::INT32(), obj, IntPtr(JSAPIQueue::FRONT_OFFSET)); in GetArrayLength() 41 GateRef end = Load(VariableType::INT32(), obj, IntPtr(JSAPIQueue::TAIL_OFFSET)); in GetArrayLength() 67 GateRef front = Load(VariableType::INT32(), obj, IntPtr(JSAPIQueue::FRONT_OFFSET)); in Get() 82 return Load(VariableType::INT32(), obj, IntPtr(JSAPIQueue::FRONT_OFFSET)); in GetCurrentFront()
|
/arkcompiler/ets_runtime/test/fuzztest/containersqueueforeach_fuzzer/ |
D | containersqueueforeach_fuzzer.cpp | 72 …JSHandle<JSAPIQueue> CreateJSAPIQueue(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIQueue() 82 JSHandle<JSAPIQueue> queue(thread, result); in CreateJSAPIQueue() 105 JSHandle<JSAPIQueue> queue = CreateJSAPIQueue(thread); in ContainersQueueForEachFuzzTest() 115 JSHandle<JSAPIQueue> dlist = CreateJSAPIQueue(thread); in ContainersQueueForEachFuzzTest()
|
/arkcompiler/ets_runtime/ecmascript/containers/tests/ |
D | containers_queue_test.cpp | 80 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/containersqueue_fuzzer/ |
D | containersqueue_fuzzer.cpp | 67 …JSHandle<JSAPIQueue> CreateJSAPIQueue(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIQueue() 77 JSHandle<JSAPIQueue> queue(thread, result); in CreateJSAPIQueue() 100 JSHandle<JSAPIQueue> queue = CreateJSAPIQueue(thread); in ContainersQueueFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containersqueueadd_fuzzer/ |
D | containersqueueadd_fuzzer.cpp | 67 …JSHandle<JSAPIQueue> CreateJSAPIQueue(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIQueue() 77 JSHandle<JSAPIQueue> queue(thread, result); in CreateJSAPIQueue() 99 JSHandle<JSAPIQueue> queue = CreateJSAPIQueue(thread); in ContainersQueueAddFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containersqueuegetsize_fuzzer/ |
D | containersqueuegetsize_fuzzer.cpp | 67 …JSHandle<JSAPIQueue> CreateJSAPIQueue(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIQueue() 77 JSHandle<JSAPIQueue> queue(thread, result); in CreateJSAPIQueue() 100 JSHandle<JSAPIQueue> queue = CreateJSAPIQueue(thread); in ContainersQueueGetSizeFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containersqueuegetiteratorobj_fuzzer/ |
D | containersqueuegetiteratorobj_fuzzer.cpp | 67 …JSHandle<JSAPIQueue> CreateJSAPIQueue(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIQueue() 77 JSHandle<JSAPIQueue> queue(thread, result); in CreateJSAPIQueue() 99 JSHandle<JSAPIQueue> queue = CreateJSAPIQueue(thread); in ContainersQueueGetIteratorObjFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containersqueuegetfirst_fuzzer/ |
D | containersqueuegetfirst_fuzzer.cpp | 67 …JSHandle<JSAPIQueue> CreateJSAPIQueue(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIQueue() 77 JSHandle<JSAPIQueue> queue(thread, result); in CreateJSAPIQueue() 99 JSHandle<JSAPIQueue> queue = CreateJSAPIQueue(thread); in ContainersQueueGetFirstFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containersqueuepop_fuzzer/ |
D | containersqueuepop_fuzzer.cpp | 67 …JSHandle<JSAPIQueue> CreateJSAPIQueue(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIQueue() 77 JSHandle<JSAPIQueue> queue(thread, result); in CreateJSAPIQueue() 100 JSHandle<JSAPIQueue> queue = CreateJSAPIQueue(thread); in ContainersQueuePopFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefismodulenamespace_fuzzer/ |
D | jsvaluerefismodulenamespace_fuzzer.cpp | 198 …JSHandle<JSHClass> queueClass = factory->NewEcmaHClass(JSAPIQueue::SIZE, JSType::JS_API_QUEUE, pro… in IsDequeFuzztest() 199 …JSHandle<JSAPIQueue> jsQueue = JSHandle<JSAPIQueue>::Cast(factory->NewJSObjectWithInit(queueClass)… in IsDequeFuzztest() 200 … JSHandle<TaggedArray> newElements = factory->NewTaggedArray(JSAPIQueue::DEFAULT_CAPACITY_LENGTH); in IsDequeFuzztest()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_tagged_value.cpp | 1154 return JSHandle<JSAPIQueue>::Cast(obj)->Has(key.GetTaggedValue()); in HasContainerProperty() 1201 return JSAPIQueue::OwnKeys(thread, JSHandle<JSAPIQueue>::Cast(obj)); in GetOwnContainerPropertyKeys() 1244 return JSAPIQueue::OwnEnumKeys(thread, JSHandle<JSAPIQueue>::Cast(obj)); in GetOwnContainerEnumPropertyKeys() 1285 return JSAPIQueue::GetOwnProperty(thread, JSHandle<JSAPIQueue>::Cast(obj), key); in GetContainerProperty() 1377 return JSAPIQueue::GetProperty(thread, JSHandle<JSAPIQueue>::Cast(obj), key); in GetJSAPIProperty() 1419 return JSAPIQueue::SetProperty(thread, JSHandle<JSAPIQueue>::Cast(obj), key, value); in SetJSAPIProperty()
|
D | object_fast_operator-inl.h | 792 res = JSAPIQueue::Cast(receiver.GetTaggedObject())->Get(thread, index); in GetContainerProperty() 831 res = JSAPIQueue::Cast(receiver.GetTaggedObject())->Set(thread, index, value); in SetContainerProperty()
|
D | object_factory.h | 129 class JSAPIQueue; variable 611 JSHandle<JSAPIQueueIterator> NewJSAPIQueueIterator(const JSHandle<JSAPIQueue> &queue);
|
D | dump.cpp | 1147 JSAPIQueue::Cast(obj)->Dump(os); in DumpObject() 2329 void JSAPIQueue::Dump(std::ostream &os) const in Dump() 2339 JSAPIQueue *queue = JSAPIQueue::Cast(GetIteratedQueue().GetTaggedObject()); in Dump() 4274 JSAPIQueue::Cast(obj)->DumpForSnapshot(vec); in DumpObject() 4979 void JSAPIQueue::DumpForSnapshot(std::vector<Reference> &vec) const in DumpForSnapshot() 4987 JSAPIQueue *queue = JSAPIQueue::Cast(GetIteratedQueue().GetTaggedObject()); in DumpForSnapshot()
|
D | object_factory.cpp | 1272 JSAPIQueue::Cast(*obj)->SetLength(thread_, JSTaggedValue(0)); in InitializeJSObject() 1273 JSAPIQueue::Cast(*obj)->SetFront(0); in InitializeJSObject() 1274 JSAPIQueue::Cast(*obj)->SetTail(0); in InitializeJSObject() 4202 JSHandle<JSAPIQueueIterator> ObjectFactory::NewJSAPIQueueIterator(const JSHandle<JSAPIQueue> &queue) in NewJSAPIQueueIterator()
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | object_xray.h | 528 JSAPIQueue::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
|
/arkcompiler/ets_runtime/ecmascript/debugger/ |
D | debugger_api.cpp | 61 using ecmascript::JSAPIQueue; 1171 JSHandle<JSAPIQueue> queue(JSNApiHelper::ToJSHandle(value)); in GetQueueValue()
|
/arkcompiler/ets_runtime/ecmascript/napi/test/ |
D | ffi_workload.cpp | 994 …JSHandle<JSAPIQueue> jsQueue = JSHandle<JSAPIQueue>::Cast(factory->NewJSObjectWithInit(queueClass)… in HWTEST_F_L0() 5931 …JSHandle<JSHClass> queueClass = factory->NewEcmaHClass(JSAPIQueue::SIZE, JSType::JS_API_QUEUE, pro… in HWTEST_F_L0() 5932 …JSHandle<JSAPIQueue> jsQueue = JSHandle<JSAPIQueue>::Cast(factory->NewJSObjectWithInit(queueClass)… in HWTEST_F_L0() 5933 … JSHandle<TaggedArray> newElements = factory->NewTaggedArray(JSAPIQueue::DEFAULT_CAPACITY_LENGTH); in HWTEST_F_L0()
|