/arkcompiler/ets_runtime/ecmascript/js_api/ |
D | js_api_vector.h | 23 class JSAPIVector : public JSObject { 26 static JSAPIVector *Cast(TaggedObject *object) in Cast() 29 return static_cast<JSAPIVector *>(object); in Cast() 32 …static bool Add(JSThread *thread, const JSHandle<JSAPIVector> &vector, const JSHandle<JSTaggedValu… 34 static void Insert(JSThread *thread, const JSHandle<JSAPIVector> &vector, 37 static void SetLength(JSThread *thread, const JSHandle<JSAPIVector> &vector, uint32_t newSize); 41 …static void IncreaseCapacityTo(JSThread *thread, const JSHandle<JSAPIVector> &vector, int32_t newC… 43 static int32_t GetIndexOf(JSThread *thread, const JSHandle<JSAPIVector> &vector, 46 static int32_t GetIndexFrom(JSThread *thread, const JSHandle<JSAPIVector> &vector, 53 static int32_t GetLastIndexOf(JSThread *thread, const JSHandle<JSAPIVector> &vector, [all …]
|
D | js_api_vector.cpp | 30 bool JSAPIVector::Add(JSThread *thread, const JSHandle<JSAPIVector> &vector, const JSHandle<JSTagge… in Add() 43 void JSAPIVector::Insert(JSThread *thread, const JSHandle<JSAPIVector> &vector, in Insert() 62 void JSAPIVector::SetLength(JSThread *thread, const JSHandle<JSAPIVector> &vector, uint32_t newSize) in SetLength() 71 uint32_t JSAPIVector::GetCapacity() in GetCapacity() 78 void JSAPIVector::IncreaseCapacityTo(JSThread *thread, const JSHandle<JSAPIVector> &vector, int32_t… in IncreaseCapacityTo() 95 int32_t JSAPIVector::GetIndexOf(JSThread *thread, const JSHandle<JSAPIVector> &vector, in GetIndexOf() 98 return JSAPIVector::GetIndexFrom(thread, vector, obj, 0); in GetIndexOf() 101 int32_t JSAPIVector::GetIndexFrom(JSThread *thread, const JSHandle<JSAPIVector> &vector, in GetIndexFrom() 123 bool JSAPIVector::IsEmpty() const in IsEmpty() 128 JSTaggedValue JSAPIVector::GetLastElement() in GetLastElement() [all …]
|
D | js_api_vector_iterator.cpp | 49 const uint32_t length = static_cast<uint32_t>(JSHandle<JSAPIVector>::Cast(vector)->GetSize()); in Next() 60 …JSHandle<JSTaggedValue> value(thread, JSAPIVector::Get(thread, JSHandle<JSAPIVector>::Cast(vector), in Next()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_api_vector_test.cpp | 64 JSAPIVector *CreateVector() in CreateVector() 84 …JSHandle<JSAPIVector> vector(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), … in CreateVector() 92 JSAPIVector *vector = CreateVector(); in HWTEST_F_L0() 102 JSHandle<JSAPIVector> toor(thread, CreateVector()); in HWTEST_F_L0() 112 bool result = JSAPIVector::Add(thread, toor, value); in HWTEST_F_L0() 114 EXPECT_EQ(JSAPIVector::Get(thread, toor, i), value.GetTaggedValue()); in HWTEST_F_L0() 122 JSAPIVector::Get(thread, toor, -1); in HWTEST_F_L0() 124 JSAPIVector::Get(thread, toor, static_cast<int32_t>(NODE_NUMBERS)); in HWTEST_F_L0() 136 JSHandle<JSAPIVector> toor(thread, CreateVector()); in HWTEST_F_L0() 142 bool result = JSAPIVector::Add(thread, toor, value); in HWTEST_F_L0() [all …]
|
D | js_api_vector_iterator_test.cpp | 55 JSHandle<JSAPIVector> CreateVector() in CreateVector() 75 JSHandle<JSAPIVector> jsVector( in CreateVector() 94 JSHandle<JSAPIVector> jsVector = CreateVector(); in HWTEST_F_L0() 102 JSAPIVector::Add(thread, jsVector, value); in HWTEST_F_L0() 105 …JSHandle<JSAPIVector> VectorTo(thread, JSAPIVector::Cast(vectorIterator->GetIteratedVector().GetTa… in HWTEST_F_L0() 110 EXPECT_EQ(JSAPIVector::Get(thread, jsVector, i), value.GetTaggedValue()); in HWTEST_F_L0() 125 JSHandle<JSAPIVector> jsVector = CreateVector(); in HWTEST_F_L0() 149 JSHandle<JSAPIVector> jsVector = CreateVector(); in HWTEST_F_L0() 154 JSAPIVector::Add(thread, jsVector, value); in HWTEST_F_L0() 189 JSHandle<JSAPIVector> jsVector = CreateVector(); in HWTEST_F_L0()
|
D | dump_test.cpp | 382 static JSHandle<JSAPIVector> NewJSAPIVector(ObjectFactory *factory, JSHandle<JSTaggedValue> proto) in NewJSAPIVector() 384 …JSHandle<JSHClass> vectorClass = factory->NewEcmaHClass(JSAPIVector::SIZE, JSType::JS_API_VECTOR, … in NewJSAPIVector() 385 …JSHandle<JSAPIVector> jsVector = JSHandle<JSAPIVector>::Cast(factory->NewJSObjectWithInit(vectorCl… in NewJSAPIVector() 1213 CHECK_DUMP_FIELDS(JSObject::SIZE, JSAPIVector::SIZE, 1U); in HWTEST_F_L0() 1214 JSHandle<JSAPIVector> jsVector = NewJSAPIVector(factory, proto); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/containers/ |
D | containers_vector.cpp | 42 JSHandle<JSAPIVector> obj = in VectorConstructor() 43 …JSHandle<JSAPIVector>(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), newTarg… in VectorConstructor() 45 …JSHandle<TaggedArray> newTaggedArray = factory->NewTaggedArray(JSAPIVector::DEFAULT_CAPACITY_LENGT… in VectorConstructor() 67 JSAPIVector::Add(thread, JSHandle<JSAPIVector>::Cast(self), value); in Add() 94 JSAPIVector::Insert(thread, JSHandle<JSAPIVector>::Cast(self), value, indexInt); in Insert() 122 …JSAPIVector::SetLength(thread, JSHandle<JSAPIVector>::Cast(self), JSTaggedValue::ToUint32(thread, … in SetLength() 142 uint32_t capacity = JSHandle<JSAPIVector>::Cast(self)->GetCapacity(); in GetCapacity() 167 JSAPIVector::IncreaseCapacityTo(thread, in IncreaseCapacityTo() 168 JSHandle<JSAPIVector>::Cast(self), in IncreaseCapacityTo() 195 JSTaggedValue value = JSAPIVector::Get(thread, JSHandle<JSAPIVector>::Cast(self), indexInt); in Get() [all …]
|
D | containers_private.cpp | 776 factory->NewEcmaHClass(JSAPIVector::SIZE, JSType::JS_API_VECTOR, vectorFuncPrototypeValue); in InitializeVector()
|
/arkcompiler/ets_runtime/test/fuzztest/containersvectorcommon_fuzzer/ |
D | containersvectorcommon_fuzzer.h | 56 static JSHandle<JSAPIVector> CreateJSAPIVector(JSThread *thread) in CreateJSAPIVector() 80 JSHandle<JSAPIVector> vector(thread, list); in CreateJSAPIVector() 84 … static JSHandle<JSAPIVector> GetVectorWithData(JSThread *thread, const uint8_t* data, size_t size) in GetVectorWithData() 86 JSHandle<JSAPIVector> vector = CreateJSAPIVector(thread); in GetVectorWithData() 117 JSHandle<JSAPIVector> vector = CreateJSAPIVector(thread); in ContainersVectorAddFuzzTest() 138 JSHandle<JSAPIVector> vector = CreateJSAPIVector(thread); in ContainersVectorGetFirstElementFuzzTest() 165 JSHandle<JSAPIVector> vector = CreateJSAPIVector(thread); in ContainersVectorGetIndexOfFuzzTest() 193 JSHandle<JSAPIVector> vector = CreateJSAPIVector(thread); in ContainersVectorGetLastElementFuzzTest() 220 JSHandle<JSAPIVector> vector = CreateJSAPIVector(thread); in ContainersVectorHasFuzzTest() 248 JSHandle<JSAPIVector> vector = CreateJSAPIVector(thread); in ContainersVectorInsertFuzzTest() [all …]
|
/arkcompiler/ets_runtime/ecmascript/containers/tests/ |
D | containers_vector_test.cpp | 69 … TaggedArray *elements = TaggedArray::Cast(JSAPIVector::Cast(vector.GetTaggedValue(). in TestForEachFunc() 87 … JSHandle<JSAPIVector>::Cast(vector)->Set(thread, index->GetNumber(), newValue.GetTaggedValue()); in TestReplaceAllElementsFunc() 116 JSHandle<JSAPIVector> CreateJSAPIVector(JSTaggedValue compare = JSTaggedValue::Undefined()) in CreateJSAPIVector() 129 JSHandle<JSAPIVector> vector(thread, result); in CreateJSAPIVector() 151 JSHandle<JSAPIVector> setHandle(thread, result); in HWTEST_F_L0() 167 JSHandle<JSAPIVector> vector = CreateJSAPIVector(); in HWTEST_F_L0() 248 JSHandle<JSAPIVector> vector = CreateJSAPIVector(); in HWTEST_F_L0() 320 JSHandle<JSAPIVector> vector = CreateJSAPIVector(); in HWTEST_F_L0() 425 JSHandle<JSAPIVector> vector = CreateJSAPIVector(); in HWTEST_F_L0() 442 JSHandle<JSAPIVector> vec = CreateJSAPIVector(); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
D | containers_vector_stub_builder.h | 32 return Load(VariableType::INT32(), obj, IntPtr(JSAPIVector::ELEMENT_COUNT_OFFSET)); in GetSize()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_tagged_value.cpp | 1071 return JSHandle<JSAPIVector>::Cast(obj)->Has(key.GetTaggedValue()); in HasContainerProperty() 1116 return JSAPIVector::OwnKeys(thread, JSHandle<JSAPIVector>::Cast(obj)); in GetOwnContainerPropertyKeys() 1192 return JSAPIVector::GetOwnProperty(thread, JSHandle<JSAPIVector>::Cast(obj), key); in GetContainerProperty() 1249 return JSAPIVector::GetProperty(thread, JSHandle<JSAPIVector>::Cast(obj), key); in GetJSAPIProperty() 1291 … return JSAPIVector::SetProperty(thread, JSHandle<JSAPIVector>::Cast(obj), key, value); in SetJSAPIProperty()
|
D | object_fast_operator-inl.h | 678 res = JSAPIVector::Get(thread, JSHandle<JSAPIVector>::Cast(self), index); in GetContainerProperty() 718 res = JSAPIVector::Cast(receiver.GetTaggedObject())->Set(thread, index, value); in SetContainerProperty()
|
D | object_factory.h | 133 class JSAPIVector; variable 574 JSHandle<JSAPIVector> NewJSAPIVector(uint32_t capacity); 575 JSHandle<JSAPIVectorIterator> NewJSAPIVectorIterator(const JSHandle<JSAPIVector> &vector);
|
D | dump.cpp | 1046 JSAPIVector::Cast(obj)->Dump(os); in DumpObject() 2220 void JSAPIVector::Dump(std::ostream &os) const in Dump() 2228 JSAPIVector *vector = JSAPIVector::Cast(GetIteratedVector().GetTaggedObject()); in Dump() 4023 JSAPIVector::Cast(obj)->DumpForSnapshot(vec); in DumpObject() 4646 void JSAPIVector::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &vec) const in DumpForSnapshot() 4653 JSAPIVector *vector = JSAPIVector::Cast(GetIteratedVector().GetTaggedObject()); in DumpForSnapshot()
|
D | object_factory.cpp | 1205 JSAPIVector::Cast(*obj)->SetLength(0); in InitializeJSObject() 3754 JSHandle<JSAPIVector> ObjectFactory::NewJSAPIVector(uint32_t capacity) in NewJSAPIVector() 3758 JSHandle<JSAPIVector> obj = JSHandle<JSAPIVector>(NewJSObjectByConstructor(builtinObj)); in NewJSAPIVector() 3765 JSHandle<JSAPIVectorIterator> ObjectFactory::NewJSAPIVectorIterator(const JSHandle<JSAPIVector> &ve… in NewJSAPIVectorIterator()
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | object_xray.h | 564 JSAPIVector::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
|
/arkcompiler/ets_runtime/ecmascript/debugger/ |
D | debugger_api.cpp | 63 using ecmascript::JSAPIVector; 1183 JSHandle<JSAPIVector> vector(JSNApiHelper::ToJSHandle(value)); in GetVectorValue()
|