Home
last modified time | relevance | path

Searched refs:JSAPIPlainArray (Results 1 – 18 of 18) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_plain_array.h23 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 …]
Djs_api_plain_array.cpp28 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 …]
Djs_api_plain_array_iterator.cpp49 JSHandle<JSAPIPlainArray> apiPlainArray(plainArray); in Next()
62 … Cast(JSHandle<JSAPIPlainArray>(plainArray)->GetKeys().GetTaggedObject())); in Next()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_api_plain_array_test.cpp62 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 …]
Djs_api_plain_array_iterator_test.cpp62 JSAPIPlainArray *CreatePlainArray() in CreatePlainArray()
83 JSHandle<JSAPIPlainArray> plainArray( in CreatePlainArray()
101 JSHandle<JSAPIPlainArray> jsPlainArray(thread, CreatePlainArray()); in HWTEST_F_L0()
Ddump_test.cpp243 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/
Dcontainers_plainarray.cpp43 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()
204JSAPIPlainArray::GetIteratorObj(thread, JSHandle<JSAPIPlainArray>::Cast(self), IterationKind::KEY_… in GetIteratorObj()
[all …]
Dcontainers_private.cpp644 …factory->NewEcmaHClass(JSAPIPlainArray::SIZE, JSType::JS_API_PLAIN_ARRAY, plainArrayFuncPrototypeV… in InitializePlainArray()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dcontainers_plainarray_stub_builder.h32 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/
Dcontainersplainarray_fuzzer.cpp68 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/
Dcontainers_plainarray_test.cpp66 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/
Djs_tagged_value.cpp1191 … 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()
Dobject_fast_operator-inl.h668 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()
Dobject_factory.h38 class JSAPIPlainArray; variable
551 JSHandle<JSAPIPlainArray> NewJSAPIPlainArray(uint32_t capacity);
552 …JSHandle<JSAPIPlainArrayIterator> NewJSAPIPlainArrayIterator(const JSHandle<JSAPIPlainArray> &plai…
Ddump.cpp1106 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()
Dobject_factory.cpp1179 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/
Dobject_xray.h546 JSAPIPlainArray::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
/arkcompiler/ets_runtime/ecmascript/debugger/
Ddebugger_api.cpp58 using ecmascript::JSAPIPlainArray;
1063 JSHandle<JSAPIPlainArray> plainarray(JSNApiHelper::ToJSHandle(value)); in GetPlainArrayValue()