/arkcompiler/ets_runtime/ecmascript/js_api/ |
D | js_api_plain_array.h | 23 class JSAPIPlainArray : public JSObject { 26 static JSAPIPlainArray *Cast(TaggedObject *object) in Cast() 29 return static_cast<JSAPIPlainArray *>(object); in Cast() 31 …static void Add(JSThread *thread, const JSHandle<JSAPIPlainArray> &obj, JSHandle<JSTaggedValue> ke… 33 static bool GetOwnProperty(JSThread *thread, const JSHandle<JSAPIPlainArray> &obj, 36 …static JSHandle<JSAPIPlainArray> Clone(JSThread *thread, const JSHandle<JSAPIPlainArray> &plainArr… 37 …static JSHandle<JSTaggedValue> GetIteratorObj(JSThread *thread, const JSHandle<JSAPIPlainArray> &o… 41 static JSTaggedValue ToString(JSThread *thread, const JSHandle<JSAPIPlainArray> &plainarray); 42 static OperationResult GetProperty(JSThread *thread, const JSHandle<JSAPIPlainArray> &obj, 44 static bool SetProperty(JSThread *thread, const JSHandle<JSAPIPlainArray> &obj, [all …]
|
D | js_api_plain_array.cpp | 28 void JSAPIPlainArray::Add(JSThread *thread, const JSHandle<JSAPIPlainArray> &obj, JSHandle<JSTagged… in Add() 61 JSHandle<TaggedArray> JSAPIPlainArray::CreateSlot(const JSThread *thread, const uint32_t capacity) in CreateSlot() 69 bool JSAPIPlainArray::AdjustForward(JSThread *thread, int32_t index, int32_t forwardSize) in AdjustForward() 81 void JSAPIPlainArray::AdjustArray(JSThread *thread, TaggedArray *srcArray, int32_t fromIndex, in AdjustArray() 106 int32_t JSAPIPlainArray::BinarySearch(TaggedArray *array, int32_t fromIndex, int32_t toIndex, int32… in BinarySearch() 125 void JSAPIPlainArray::Clear(JSThread *thread) in Clear() 137 JSTaggedValue JSAPIPlainArray::RemoveRangeFrom(JSThread *thread, int32_t index, int32_t batchSize) in RemoveRangeFrom() 158 JSTaggedValue JSAPIPlainArray::Set(JSThread *thread, const JSHandle<JSAPIPlainArray> &obj, in Set() 163 JSAPIPlainArray::Add(thread, obj, key, valueHandle); in Set() 167 bool JSAPIPlainArray::GetOwnProperty(JSThread *thread, const JSHandle<JSAPIPlainArray> &obj, in GetOwnProperty() [all …]
|
D | js_api_plain_array_iterator.cpp | 49 JSHandle<JSAPIPlainArray> apiPlainArray(plainArray); in Next() 62 … Cast(JSHandle<JSAPIPlainArray>(plainArray)->GetKeys().GetTaggedObject())); in Next()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_api_plain_array_test.cpp | 62 JSAPIPlainArray *CreatePlainArray() in CreatePlainArray() 83 JSHandle<JSAPIPlainArray> plainArray( in CreatePlainArray() 95 JSAPIPlainArray *plainArray = CreatePlainArray(); in HWTEST_F_L0() 107 JSHandle<JSAPIPlainArray> array(thread, CreatePlainArray()); in HWTEST_F_L0() 116 JSAPIPlainArray::Add(thread, array, key, value); in HWTEST_F_L0() 125 JSAPIPlainArray::Add(thread, array, key, value); in HWTEST_F_L0() 154 JSHandle<JSAPIPlainArray> array(thread, CreatePlainArray()); in HWTEST_F_L0() 161 JSAPIPlainArray::Add(thread, array, key, value); in HWTEST_F_L0() 166 JSHandle<JSAPIPlainArray> newArray(thread, CreatePlainArray()); in HWTEST_F_L0() 168 newArray = JSAPIPlainArray::Clone(thread, array); in HWTEST_F_L0() [all …]
|
D | js_api_plain_array_iterator_test.cpp | 62 JSAPIPlainArray *CreatePlainArray() in CreatePlainArray() 83 JSHandle<JSAPIPlainArray> plainArray( in CreatePlainArray() 101 JSHandle<JSAPIPlainArray> jsPlainArray(thread, CreatePlainArray()); in HWTEST_F_L0()
|
D | dump_test.cpp | 243 static JSHandle<JSAPIPlainArray> NewJSAPIPlainArray(JSThread *thread, ObjectFactory *factory) in NewJSAPIPlainArray() 247 …JSHandle<JSHClass> mapClass = factory->NewEcmaHClass(JSAPIPlainArray::SIZE, JSType::JS_API_PLAIN_A… in NewJSAPIPlainArray() 248 …JSHandle<JSAPIPlainArray> jSAPIPlainArray = JSHandle<JSAPIPlainArray>::Cast(factory->NewJSObjectWi… in NewJSAPIPlainArray() 250 JSAPIPlainArray::CreateSlot(thread, JSAPIPlainArray::DEFAULT_CAPACITY_LENGTH); in NewJSAPIPlainArray() 252 JSAPIPlainArray::CreateSlot(thread, JSAPIPlainArray::DEFAULT_CAPACITY_LENGTH); in NewJSAPIPlainArray() 1141 CHECK_DUMP_FIELDS(JSObject::SIZE, JSAPIPlainArray::SIZE, 3U); in HWTEST_F_L0() 1142 JSHandle<JSAPIPlainArray> jSAPIPlainArray = NewJSAPIPlainArray(thread, factory); in HWTEST_F_L0() 1148 JSHandle<JSAPIPlainArray> jSAPIPlainArray = NewJSAPIPlainArray(thread, factory); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/containers/ |
D | containers_plainarray.cpp | 43 JSHandle<JSAPIPlainArray> plainArray = JSHandle<JSAPIPlainArray>::Cast(obj); in PlainArrayConstructor() 45 JSAPIPlainArray::CreateSlot(thread, JSAPIPlainArray::DEFAULT_CAPACITY_LENGTH); in PlainArrayConstructor() 47 JSAPIPlainArray::CreateSlot(thread, JSAPIPlainArray::DEFAULT_CAPACITY_LENGTH); in PlainArrayConstructor() 79 JSAPIPlainArray::Add(thread, JSHandle<JSAPIPlainArray>::Cast(self), key, value); in Add() 99 JSAPIPlainArray *array = JSAPIPlainArray::Cast(self->GetTaggedObject()); in Clear() 120 JSHandle<JSAPIPlainArray> newPlainArray = in Clone() 121 JSAPIPlainArray::Clone(thread, JSHandle<JSAPIPlainArray>::Cast(self)); in Clone() 150 JSAPIPlainArray *array = JSAPIPlainArray::Cast(self->GetTaggedObject()); in Has() 181 JSAPIPlainArray *array = JSAPIPlainArray::Cast(self->GetTaggedObject()); in Get() 204 …JSAPIPlainArray::GetIteratorObj(thread, JSHandle<JSAPIPlainArray>::Cast(self), IterationKind::KEY_… in GetIteratorObj() [all …]
|
D | containers_private.cpp | 644 …factory->NewEcmaHClass(JSAPIPlainArray::SIZE, JSType::JS_API_PLAIN_ARRAY, plainArrayFuncPrototypeV… in InitializePlainArray()
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
D | containers_plainarray_stub_builder.h | 32 return Load(VariableType::INT32(), obj, IntPtr(JSAPIPlainArray::LENGTH_OFFSET)); in GetSize() 37 GateRef elementsOffset = IntPtr(JSAPIPlainArray::VALUES_OFFSET); in Get() 44 GateRef elementsOffset = IntPtr(JSAPIPlainArray::KEYS_OFFSET); in GetKey()
|
/arkcompiler/ets_runtime/test/fuzztest/containersplainarray_fuzzer/ |
D | containersplainarray_fuzzer.cpp | 68 JSHandle<JSAPIPlainArray> CreateJSAPIPlainArray(JSThread *thread) in CreateJSAPIPlainArray() 76 JSHandle<JSAPIPlainArray> array(thread, result); in CreateJSAPIPlainArray() 99 JSHandle<JSAPIPlainArray> plainArray = CreateJSAPIPlainArray(thread); in ContainersPlainArray_Constructor_FuzzTest() 130 JSHandle<JSAPIPlainArray> plainArray = CreateJSAPIPlainArray(thread); in ContainersPlainArray_Add_Has_FuzzTest() 174 JSHandle<JSAPIPlainArray> plainArray = CreateJSAPIPlainArray(thread); in ContainersPlainArray_Clone_FuzzTest() 212 JSHandle<JSAPIPlainArray> plainArray = CreateJSAPIPlainArray(thread); in ContainersPlainArray_Clear_FuzzTest() 250 JSHandle<JSAPIPlainArray> plainArray = CreateJSAPIPlainArray(thread); in ContainersPlainArray_Get_FuzzTest() 289 JSHandle<JSAPIPlainArray> plainArray = CreateJSAPIPlainArray(thread); in ContainersPlainArray_GetIteratorObj_FuzzTest() 310 … JSHandle<JSAPIPlainArray> plainArray(BuiltinsBase::GetCallArg(argv, 2)); // 2 means the value in TestForEachFunc() 312 JSAPIPlainArray::Add(thread, plainArray, key, newValue); in TestForEachFunc() [all …]
|
/arkcompiler/ets_runtime/ecmascript/containers/tests/ |
D | containers_plainarray_test.cpp | 66 JSHandle<JSAPIPlainArray> plainArray(GetCallArg(argv, 2)); // 2 means the value in TestForEachFunc() 69 JSAPIPlainArray::Add(thread, plainArray, key, newValue); in TestForEachFunc() 98 JSHandle<JSAPIPlainArray> CreateJSAPIPlainArray() in CreateJSAPIPlainArray() 110 JSHandle<JSAPIPlainArray> plain(thread, result); in CreateJSAPIPlainArray() 114 …JSTaggedValue PlainArrayAdd(JSHandle<JSAPIPlainArray> plainArray, JSTaggedValue index, JSTaggedVal… in PlainArrayAdd() 129 … JSTaggedValue PlainArrayRemoveRangeFrom(JSHandle<JSAPIPlainArray> plainArray, JSTaggedValue index, in PlainArrayRemoveRangeFrom() 161 JSHandle<JSAPIPlainArray> arrayHandle(thread, result); in HWTEST_F_L0() 177 JSHandle<JSAPIPlainArray> tArray1 = CreateJSAPIPlainArray(); in HWTEST_F_L0() 208 JSHandle<JSAPIPlainArray> tArray = CreateJSAPIPlainArray(); in HWTEST_F_L0() 253 JSHandle<JSAPIPlainArray> array = CreateJSAPIPlainArray(); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_tagged_value.cpp | 1191 … return JSAPIPlainArray::GetOwnProperty(thread, JSHandle<JSAPIPlainArray>::Cast(obj), key); in GetContainerProperty() 1248 … return JSAPIPlainArray::GetProperty(thread, JSHandle<JSAPIPlainArray>::Cast(obj), key); in GetJSAPIProperty() 1290 … return JSAPIPlainArray::SetProperty(thread, JSHandle<JSAPIPlainArray>::Cast(obj), key, value); in SetJSAPIProperty()
|
D | object_fast_operator-inl.h | 668 res = JSAPIPlainArray::Cast(receiver.GetTaggedObject())->Get(JSTaggedValue(index)); in GetContainerProperty() 707 JSHandle<JSAPIPlainArray> plainArray(thread, receiver); in SetContainerProperty() 708 res = JSAPIPlainArray::Set(thread, plainArray, index, value); in SetContainerProperty()
|
D | object_factory.h | 38 class JSAPIPlainArray; variable 551 JSHandle<JSAPIPlainArray> NewJSAPIPlainArray(uint32_t capacity); 552 …JSHandle<JSAPIPlainArrayIterator> NewJSAPIPlainArrayIterator(const JSHandle<JSAPIPlainArray> &plai…
|
D | dump.cpp | 1106 JSAPIPlainArray::Cast(obj)->Dump(os); in DumpObject() 1802 void JSAPIPlainArray::Dump(std::ostream &os) const in Dump() 1819 void JSAPIPlainArray::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &vec) const in DumpForSnapshot() 1826 JSAPIPlainArray *array = JSAPIPlainArray::Cast(GetIteratedPlainArray().GetTaggedObject()); in Dump() 1834 JSAPIPlainArray *array = JSAPIPlainArray::Cast(GetIteratedPlainArray().GetTaggedObject()); in DumpForSnapshot() 4083 JSAPIPlainArray::Cast(obj)->DumpForSnapshot(vec); in DumpObject()
|
D | object_factory.cpp | 1179 JSAPIPlainArray::Cast(*obj)->SetLength(0); in InitializeJSObject() 1180 JSAPIPlainArray::Cast(*obj)->SetValues(thread_, JSTaggedValue(0)); in InitializeJSObject() 1181 JSAPIPlainArray::Cast(*obj)->SetKeys(thread_, JSTaggedValue(0)); in InitializeJSObject() 3600 JSHandle<JSAPIPlainArray> ObjectFactory::NewJSAPIPlainArray(uint32_t capacity) in NewJSAPIPlainArray() 3604 JSHandle<JSAPIPlainArray> obj = JSHandle<JSAPIPlainArray>(NewJSObjectByConstructor(builtinObj)); in NewJSAPIPlainArray() 3614 …rayIterator> ObjectFactory::NewJSAPIPlainArrayIterator(const JSHandle<JSAPIPlainArray> &plainarray, in NewJSAPIPlainArrayIterator()
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | object_xray.h | 546 JSAPIPlainArray::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
|
/arkcompiler/ets_runtime/ecmascript/debugger/ |
D | debugger_api.cpp | 58 using ecmascript::JSAPIPlainArray; 1063 JSHandle<JSAPIPlainArray> plainarray(JSNApiHelper::ToJSHandle(value)); in GetPlainArrayValue()
|