Home
last modified time | relevance | path

Searched +defs:array +defs:length (Results 1 – 25 of 110) sorted by relevance

12345

/arkcompiler/runtime_core/static_core/runtime/coretypes/
Darray.cpp28 static Array *AllocateArray(ark::BaseClass *arrayClass, size_t elemSize, ArraySizeT length, ark::Sp… in AllocateArray()
50 Array *Array::Create(ark::Class *arrayClass, const uint8_t *data, ArraySizeT length, ark::SpaceType… in Create()
54 auto *array = AllocateArray(arrayClass, elemSize, length, spaceType, pinned); in Create() local
72 Array *Array::Create(ark::Class *arrayClass, ArraySizeT length, ark::SpaceType spaceType, bool pinn… in Create()
75 auto *array = AllocateArray(arrayClass, elemSize, length, spaceType, pinned); in Create() local
90 Array *Array::Create(DynClass *dynarrayclass, ArraySizeT length, ark::SpaceType spaceType, bool pin… in Create()
94 auto *array = AllocateArray(arrayClass, elemSize, length, spaceType, pinned); in Create() local
109 Array *Array::CreateTagged(const PandaVM *vm, ark::BaseClass *arrayClass, ArraySizeT length, ark::S… in CreateTagged()
113 auto *array = AllocateArray(arrayClass, elemSize, length, spaceType, false, vm); in CreateTagged() local
/arkcompiler/ets_runtime/ecmascript/tests/
Dconcurrent_marking_test.cpp43 …JSHandle<TaggedArray> CreateTaggedArray(uint32_t length, JSTaggedValue initVal, MemSpaceType space… in CreateTaggedArray()
52 uint32_t length = 1_KB; in HWTEST_F_L0() local
56 auto array = CreateTaggedArray(length, JSTaggedValue::Undefined(), MemSpaceType::OLD_SPACE); in HWTEST_F_L0() local
62 auto array = CreateTaggedArray(length, JSTaggedValue::Undefined(), MemSpaceType::OLD_SPACE); in HWTEST_F_L0() local
70 uint32_t length = 1_KB; in HWTEST_F_L0() local
74 auto array = CreateTaggedArray(length, JSTaggedValue::Undefined(), MemSpaceType::OLD_SPACE); in HWTEST_F_L0() local
79 auto array = CreateTaggedArray(length, JSTaggedValue::Undefined(), MemSpaceType::OLD_SPACE); in HWTEST_F_L0() local
92 uint32_t length = 1_KB; in HWTEST_F_L0() local
94 [[maybe_unused]] auto array = in HWTEST_F_L0() local
112 uint32_t length = 1_KB; in HWTEST_F_L0() local
[all …]
Dincremental_marking_test.cpp41 …JSHandle<TaggedArray> CreateTaggedArray(uint32_t length, JSTaggedValue initVal, MemSpaceType space… in CreateTaggedArray()
50 uint32_t length = 1_KB; in HWTEST_F_L0() local
54 auto array = CreateTaggedArray(length, JSTaggedValue::Undefined(), MemSpaceType::OLD_SPACE); in HWTEST_F_L0() local
61 auto array = CreateTaggedArray(length, JSTaggedValue::Undefined(), MemSpaceType::OLD_SPACE); in HWTEST_F_L0() local
Dnative_pointer_test.cpp36 char array[] = "Hello World!"; in HWTEST_F_L0() local
55 size_t length = 4; in HWTEST_F_L0() local
/arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/
Darray_native_test.cpp74 ets_booleanArray array = env_->NewBooleanArray(src.size()); in TEST_F() local
77 ets_size length = env_->GetArrayLength(array); in TEST_F() local
113 ets_byteArray array = env_->NewByteArray(src.size()); in TEST_F() local
116 ets_size length = env_->GetArrayLength(array); in TEST_F() local
152 ets_charArray array = env_->NewCharArray(src.size()); in TEST_F() local
155 ets_size length = env_->GetArrayLength(array); in TEST_F() local
191 ets_shortArray array = env_->NewShortArray(src.size()); in TEST_F() local
194 ets_size length = env_->GetArrayLength(array); in TEST_F() local
230 ets_intArray array = env_->NewIntArray(src.size()); in TEST_F() local
233 ets_size length = env_->GetArrayLength(array); in TEST_F() local
[all …]
/arkcompiler/ets_runtime/ecmascript/base/
Dbuiltins_base.cpp24 uint32_t length = msg->GetArgsNumber(); in GetArgsArray() local
25 JSHandle<TaggedArray> array = factory->NewTaggedArray(length); in GetArgsArray() local
/arkcompiler/ets_runtime/test/moduletest/arrayValuesCase/
DarrayValuesCase.js31 length: 3, property
47 const array = ["a", "b", "c", "d", "e"]; variable
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_lightweightmap.cpp49 JSHandle<TaggedArray> array = GetArrayByKind(thread, lightWeightMap, kind); in InsertValue() local
59 JSHandle<TaggedArray> array = GetArrayByKind(thread, lightWeightMap, kind); in ReplaceValue() local
67 JSHandle<TaggedArray> array = GetArrayByKind(thread, lightWeightMap, kind); in RemoveValue() local
103 uint32_t length = newLightWeightMap->GetSize(); in HasAll() local
146 uint32_t length = lightWeightMap->GetSize(); in HasValue() local
166 int32_t length = static_cast<int32_t>(lightWeightMap->GetSize()); in GetStateOfKey() local
195 uint32_t length = lightWeightMap->GetSize(); in GetIndexOfValue() local
208 int32_t length = static_cast<int32_t>(lightWeightMap->GetSize()); in GetKeyAt() local
227 int32_t length = static_cast<int32_t>(lightWeightMap->GetSize()); in GetValueAt() local
250 uint32_t length = needLightWeightMap->GetSize(); in SetAll() local
[all …]
Djs_api_plain_array_iterator.cpp48 uint32_t length = apiPlainArray->GetLength(); in Next() local
61 JSHandle<TaggedArray> array(factory->NewTaggedArray(2)); // 2 means the length of array in Next() local
Djs_api_lightweightset_iterator.cpp46 uint32_t length = 0; in Next() local
65 JSHandle<TaggedArray> array = factory->NewTaggedArray(2); // 2 means the length of array in Next() local
/arkcompiler/ets_runtime/ecmascript/shared_objects/
Djs_shared_array_iterator.cpp42 JSHandle<JSTaggedValue> array(thread, iter->GetIteratedArray()); in Next() local
58 JSHandle<JSTaggedValue> &array) in NextInternal()
65 uint32_t length; in NextInternal() local
Djs_shared_array.cpp75 JSHandle<JSTaggedValue> JSSharedArray::ArrayCreate(JSThread *thread, JSTaggedNumber length, ArrayMo… in ArrayCreate()
83 JSHandle<JSTaggedValue> JSSharedArray::ArrayCreate(JSThread *thread, JSTaggedNumber length, in ArrayCreate()
118 JSTaggedNumber length) in ArraySpeciesCreate()
204 …TaggedArray> JSSharedArray::SetCapacity(const JSThread *thread, const JSHandle<TaggedArray> &array, in SetCapacity()
213 void JSSharedArray::SetCapacity(JSThread *thread, const JSHandle<JSObject> &array, uint32_t oldLen,… in SetCapacity()
233 bool JSSharedArray::ArraySetLength(JSThread *thread, const JSHandle<JSObject> &array, const Propert… in ArraySetLength()
312 bool JSSharedArray::DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &array, in DefineOwnProperty()
352 uint32_t length = elements->GetLength(); in CreateArrayFromList() local
508 int32_t length = static_cast<int32_t>(arrayObj->GetArrayLength()); in IncludeInSortedValue() local
552 uint32_t length = elements->GetLength(); in DeleteInElementMode() local
/arkcompiler/ets_runtime/ecmascript/compiler/
Dntype_hcr_lowering.cpp62 GateRef length = builder_.Int32(0); in LowerCreateEmptyArray() local
67 auto array = NewJSArrayLiteral(glue, gate, elements, length, hintLength); in LowerCreateEmptyArray() local
74 GateRef length = builder_.IntPtr(elementsLength); in LowerCreateArrayWithOwn() local
77 auto array = NewJSArrayLiteral(glue, gate, elements, length); in LowerCreateArrayWithOwn() local
108 GateRef length = Circuit::NullGate(); in LowerCreateArrayWithBuffer() local
121 auto array = NewJSArrayLiteral(glue, gate, elements, length); in LowerCreateArrayWithBuffer() local
129 size_t length = argAcc.ArgsCount() - funcIdx; in NewActualArgv() local
130 GateRef array = CreateElementsWithLength(gate, glue, length); in NewActualArgv() local
193 GateRef length = builder_.IntPtr(arrayLength); in CreateElementsWithLength() local
202 …f NTypeHCRLowering::NewJSArrayLiteral(GateRef glue, GateRef gate, GateRef elements, GateRef length, in NewJSArrayLiteral()
[all …]
Darray_bounds_check_elimination.cpp578 bool ArrayBoundsCheckElimination::InArrayBound(Bound *bound, GateRef length, GateRef array) in InArrayBound()
607 bool ArrayBoundsCheckElimination::CheckLoop(GateRef array, GateRef lowerGate, int lower, GateRef up… in CheckLoop()
666 void ArrayBoundsCheckElimination::LoopInvariantMotionForIndexCheck(GateRef array, GateRef length, in LoopInvariantMotionForIndexCheck()
712 auto length = FindBoundGate(acc_.GetValueIn(gate, 0)); in ProcessIndexCheck() local
713 auto array = FindBoundGate(acc_.GetValueIn(length, 0)); in ProcessIndexCheck() local
840 GateRef length = FindBoundGate(acc_.GetValueIn(indexCheck, 0)); in InBlockMotion() local
842 GateRef array = FindBoundGate(acc_.GetValueIn(length, 0)); in InBlockMotion() local
887 GateRef length = FindBoundGate(acc_.GetValueIn(insertAfter, 0)); in InBlockMotion() local
927 GateRef length = FindBoundGate(acc_.GetValueIn(firIndexCheckGate, 0)); in InBlockMotion() local
967 auto length = FindBoundGate(acc_.GetValueIn(gate, 0)); in CalcBounds() local
[all …]
/arkcompiler/ets_runtime/test/moduletest/arrayFindIndexCase/
DfindIndex.js28 length: 3, property
57 var array = ["first", "second"]; variable
/arkcompiler/ets_runtime/test/moduletest/arrayfind/
Darrayfind.js22 length: 3, property
29 const array = [0, 1, , , , 5, 6]; variable
43 function isPrime(element, index, array) { argument
79 log.push({value: x, index: i, array: [...arr]}); property
88 log.push({value: x, index: i, array: [...arr]}); property
97 log.push({value: x, index: i, array: [...arr]}); property
106 log.push({value: x, index: i, array: [...arr]}); property
115 log.push({value: x, index: i, array: [...arr]}); property
124 log.push({value: x, index: i, array: [...arr]}); property
134 log.push({value: x, index: i, array: [...arrRef]}); property
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltin_test_util.h40 static JSTaggedValue CreateBuiltinsArrayBuffer(JSThread *thread, int32_t length) in CreateBuiltinsArrayBuffer()
57 static JSTaggedValue CreateBuiltinsSendableArrayBuffer(JSThread *thread, int32_t length) in CreateBuiltinsSendableArrayBuffer()
74 static JSTaggedValue CreateBuiltinsSharedArrayBuffer(JSThread *thread, int32_t length) in CreateBuiltinsSharedArrayBuffer()
91 static JSTypedArray *CreateTypedArray(JSThread *thread, const JSHandle<TaggedArray> &array) in CreateTypedArray()
114 …ic JSSharedTypedArray *CreateSharedTypedArray(JSThread *thread, const JSHandle<TaggedArray> &array) in CreateSharedTypedArray()
/arkcompiler/ets_runtime/ecmascript/
Dtagged_array.cpp32 uint32_t length = GetLength(); in GetIdx() local
67 uint32_t length = firstLength + secondLength; in Append() local
111 uint32_t length = GetLength(); in HasDuplicateEntry() local
122 void TaggedArray::InitializeWithSpecialValue(JSTaggedValue initValue, uint32_t length, uint32_t ext… in InitializeWithSpecialValue()
138 …e<TaggedArray> TaggedArray::SetCapacity(const JSThread *thread, const JSHandle<TaggedArray> &array, in SetCapacity()
148const JSHandle<TaggedArray> &array, uint32_t capa) in SetCapacityInOldSpace()
223 void MutantTaggedArray::InitializeWithSpecialValue(JSTaggedType initValue, uint32_t length, uint32_… in InitializeWithSpecialValue()
Djs_array_iterator.cpp44 JSHandle<JSTaggedValue> array(thread, iter->GetIteratedArray()); in NextInternal() local
55 uint32_t length; in NextInternal() local
Dproperty_accessor.cpp127 …uint32_t length = JSObject::GetAllEnumKeys(thread_, receiverObj, EnumCache::ENUM_CACHE_HEADER_SIZE… in InitSimplePropertiesEnumCache() local
139 inline void PropertyAccessor::AccumulateKeyLength(uint32_t length) in AccumulateKeyLength()
144 inline void PropertyAccessor::AccumulateShadowKeyLength(uint32_t length) in AccumulateShadowKeyLength()
159 inline void PropertyAccessor::SetActualKeyLength(uint32_t length) in SetActualKeyLength()
243 uint32_t length = proxyArr->GetLength(); in PushRemainingKeys() local
258 …JSHandle<TaggedArray> array = JSTaggedValue::GetOwnEnumPropertyKeys(thread_, JSHandle<JSTaggedValu… in PushRemainingKeys() local
259 uint32_t length = array->GetLength(); in PushRemainingKeys() local
Dshared_object_factory.cpp383 JSHandle<TaggedArray> ObjectFactory::ExtendSArray(const JSHandle<TaggedArray> &old, uint32_t length, in ExtendSArray()
409 JSHandle<TaggedArray> ObjectFactory::NewSTaggedArrayWithoutInit(uint32_t length, MemSpaceType space… in NewSTaggedArrayWithoutInit()
426 JSHandle<TaggedArray> array(thread_, header); in NewSTaggedArrayWithoutInit() local
454 JSHandle<TaggedArray> ObjectFactory::NewSJsonFixedArray(size_t start, size_t length, in NewSJsonFixedArray()
461 JSHandle<TaggedArray> array = NewTaggedArrayWithoutInit(length, MemSpaceType::SHARED_OLD_SPACE); in NewSJsonFixedArray() local
480 JSHandle<TaggedArray> ObjectFactory::NewSDictionaryArray(uint32_t length) in NewSDictionaryArray()
487 JSHandle<TaggedArray> array(thread_, header); in NewSDictionaryArray() local
516 const JSHandle<Method> &method, const JSHandle<JSTaggedValue> &module, int32_t length) in NewSFunctionTemplate()
535 JSHandle<TaggedArray> array(thread_, header); in NewSEmptyArray() local
546 JSHandle<MutantTaggedArray> array(thread_, header); in NewSEmptyMutantArray() local
[all …]
/arkcompiler/ets_runtime/test/moduletest/array/
Darray.js489 Array.prototype.length = 3000; method in Array
551 function testEvery(element, index, array) { argument
558 function testEvery4(element, index, array) { argument
588 function testReduceRight(accumulator, element, index, array) { argument
595 function testReduceRight4(accumulator, element, index, array) { argument
624 function testSome(element, index, array) { argument
1118 const array5 = Array.from({ length: 5 }, (_, index) => index + 1); property
1121 const array6 = Array.from({ length: 5 }, (_, index) => index + 1); property
1201 const array = [6, 7, 8, 9, 10, NaN, undefined, null, "", false, {name: "John"}, [1, 2, 3]]; variable
1217 const array = [1, 2, 3, 4, 5]; variable
[all …]
/arkcompiler/runtime_core/static_core/runtime/tests/
Dstatic_analyzer_test.cpp71 coretypes::Array *AllocStringArray(size_t length) in AllocStringArray()
84 coretypes::Array *array = AllocStringArray(2); in TEST_F() local
137 coretypes::Array *array = AllocStringArray(2); in TEST_F() local
/arkcompiler/runtime_core/static_core/runtime/tooling/
Dpt_default_lang_extension.cpp27 static TypedValue GetArrayElementValueStatic(const coretypes::Array &array, size_t offset, panda_fi… in GetArrayElementValueStatic()
137 auto &array = *coretypes::Array::Cast(const_cast<ObjectHeader *>(object)); in EnumerateProperties() local
190 auto length = coretypes::Array::Cast(const_cast<ObjectHeader *>(object))->GetLength(); in GetLengthIfArray() local
203 auto &array = *coretypes::Array::Cast(const_cast<ObjectHeader *>(object)); in EnumerateProperties() local
/arkcompiler/ets_runtime/test/sharedtest/sharedarray/
Dsharedarray.ts366 function length(): void { function
456 const array = SendableArray.from<number>([1, 2, 3]); constant
537 const array = new SendableArray<string>('a', 'b', 'c'); constant
547 const array = new SendableArray<number>(1, 4, 9, 16); constant
573 const array = new SendableArray<number>(1, 2, 3, 4); constant
598 const array = new SendableArray<string>('Jan', 'March', 'April', 'June'); constant
635 const array = SendableArray.create<number>(10, 5); constant
638 const array = SendableArray.create<number>(5); constant
644 const array = SendableArray.create<number>(-1, 5); constant
650 const array = SendableArray.create<number>(13107200, 1); // 13107200: 12.5MB constant
[all …]

12345