Home
last modified time | relevance | path

Searched defs:array (Results 1 – 25 of 279) sorted by relevance

12345678910>>...12

/arkcompiler/ets_runtime/test/jittest/uint32_array/
Duint32_array.ts17 const array = new Uint32Array(element); constant
18 const elementOne = array[array.length / 2]; constant
19 const elementTwo = array[array.length % 2]; constant
/arkcompiler/ets_runtime/test/sharedtest/sharedarray/
Dsharedarray.ts303 const array = SendableArray.from<number>([1, 2, 3]); constant
370 const array = new SendableArray<string>('a', 'b', 'c'); constant
380 const array = new SendableArray<number>(1, 4, 9, 16); constant
401 const array = new SendableArray<number>(1, 2, 3, 4); constant
426 const array = new SendableArray<string>('Jan', 'March', 'April', 'June'); constant
461 const array = SendableArray.create<number>(10, 5); constant
464 const array = SendableArray.create<number>(5); constant
470 const array = SendableArray.create<number>(-1, 5); constant
476 const array = SendableArray.create<number>(13107200, 1); // 13107200: 12.5MB constant
482 const array = SendableArray.create<number>(0x100000000, 5); constant
[all …]
/arkcompiler/toolchain/tooling/base/
Dpt_returns.cpp24 std::unique_ptr<PtJson> array = PtJson::CreateArray(); in ToJson() local
37 std::unique_ptr<PtJson> array = PtJson::CreateArray(); in ToJson() local
52 std::unique_ptr<PtJson> array = PtJson::CreateArray(); in ToJson() local
68 std::unique_ptr<PtJson> array = PtJson::CreateArray(); in ToJson() local
98 std::unique_ptr<PtJson> array = PtJson::CreateArray(); in ToJson() local
126 std::unique_ptr<PtJson> array = PtJson::CreateArray(); in ToJson() local
142 std::unique_ptr<PtJson> array = PtJson::CreateArray(); in ToJson() local
179 std::unique_ptr<PtJson> array = PtJson::CreateArray(); in ToJson() local
203 std::unique_ptr<PtJson> array = PtJson::CreateArray(); in ToJson() local
336 std::unique_ptr<PtJson> array = PtJson::CreateArray(); in ToJson() local
[all …]
/arkcompiler/ets_runtime/test/sharedtest/sharedtypedarray/
Dsharedtypedarray.ts328 let array = new ctor([1, 21, 11, 31]); variable
351 let array = new ctor([1, 21, 11, 31]); variable
414 let array = new ctor([10, 20, 30, 40, 50]); variable
441 const array = new ctor([10, 20, 30, 40, 50]); constant
459 const array = new ctor([10, -20, 30, -40, 50]); constant
479 const array = new ctor([10, -20, 30, -40, 50]); constant
510 const array = new ctor([-10, 20, -30, 40, -50]); constant
529 let array = new ctor([1, 2, 3, 4, 5, 6, 7, 8]); variable
549 let array = new ctor([25, 36, 49]); variable
566 const array = new ctor([10, 20, 30]); constant
[all …]
/arkcompiler/ets_runtime/ecmascript/tests/
Dconcurrent_marking_test.cpp56 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
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
94 [[maybe_unused]] auto array = in HWTEST_F_L0() local
114 [[maybe_unused]] auto array = in HWTEST_F_L0() local
Djs_iterator_test.cpp43 JSHandle<JSTaggedValue> array(JSArray::CreateArrayFromList(thread, data)); in HWTEST_F_L0() local
57 JSHandle<JSTaggedValue> array(JSArray::CreateArrayFromList(thread, data)); in HWTEST_F_L0() local
70 JSHandle<JSTaggedValue> array(JSArray::CreateArrayFromList(thread, data)); in HWTEST_F_L0() local
88 JSHandle<JSTaggedValue> array(JSArray::CreateArrayFromList(thread, data)); in HWTEST_F_L0() local
101 JSHandle<JSTaggedValue> array(JSArray::CreateArrayFromList(thread, data)); in HWTEST_F_L0() local
Dweak_ref_semi_gc_test.cpp33 JSHandle<TaggedArray> array = thread->GetEcmaVM()->GetFactory()->NewTaggedArray(2); in ArrayTestCreate() local
50 JSTaggedValue array(ArrayTestCreate(thread)); in HWTEST_F_L0() local
61 JSHandle<TaggedArray> array(thread, ArrayTestCreate(thread)); in HWTEST_F_L0() local
Dthrow_oom_error_test.cpp43 [[maybe_unused]] JSHandle<TaggedArray> array = in HWTEST_F_L0() local
64 [[maybe_unused]] JSHandle<TaggedArray> array = in HWTEST_F_L0() local
71 [[maybe_unused]] JSHandle<TaggedArray> array = in HWTEST_F_L0() local
Dweak_ref_old_gc_test.cpp45 JSHandle<TaggedArray> array = thread->GetEcmaVM()->GetFactory()->NewTaggedArray(2); in ArrayTestCreate() local
52 auto array = vm->GetFactory()->NewTaggedArray(2, JSTaggedValue::Undefined(), true); in HWTEST_F_L0() local
80 JSTaggedValue array(ArrayTestCreate(thread)); in HWTEST_F_L0() local
91 JSHandle<TaggedArray> array(thread, ArrayTestCreate(thread)); in HWTEST_F_L0() local
Dincremental_marking_test.cpp54 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
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_shared_typedarray_test.cpp54 JSHandle<TaggedArray> array(factory->NewTaggedArray(2)); in HWTEST_F_L0() local
78 JSHandle<TaggedArray> array(factory->NewTaggedArray(2)); in HWTEST_F_L0() local
103 JSHandle<TaggedArray> array(factory->NewTaggedArray(2)); in HWTEST_F_L0() local
126 JSHandle<TaggedArray> array(factory->NewTaggedArray(2)); in HWTEST_F_L0() local
149 JSHandle<TaggedArray> array(factory->NewTaggedArray(2)); in HWTEST_F_L0() local
172 JSHandle<TaggedArray> array(factory->NewTaggedArray(2)); in HWTEST_F_L0() local
195 JSHandle<TaggedArray> array(factory->NewTaggedArray(2)); in HWTEST_F_L0() local
218 JSHandle<TaggedArray> array(factory->NewTaggedArray(2)); in HWTEST_F_L0() local
241 JSHandle<TaggedArray> array(factory->NewTaggedArray(2)); in HWTEST_F_L0() local
264 JSHandle<TaggedArray> array(factory->NewTaggedArray(2)); in HWTEST_F_L0() local
[all …]
Dbuiltins_atomics_test.cpp41 JSTypedArray *CreateTypedArray(JSThread *thread, const JSHandle<TaggedArray> &array, DataViewType t… in CreateTypedArray()
249 JSHandle<TaggedArray> array(factory->NewTaggedArray(maxLen)); in CreateArrayList() local
260 auto array = CreateArrayList(thread, arrVals, 3); in HWTEST_F_L0() local
271 JSHandle<TaggedArray> array(factory->NewTaggedArray(10)); // 10: array len in AddCommon() local
302 auto array = CreateArrayList(thread, arrVals, arrVals.size()); in HWTEST_F_L0() local
323 auto array = CreateArrayList(thread, arrVals, 10); in HWTEST_F_L0() local
335 auto array = CreateArrayList(thread, arrVals, 10); in HWTEST_F_L0() local
352 auto array = CreateArrayList(thread, arrVals, arrVals.size()); in HWTEST_F_L0() local
364 auto array = CreateArrayList(thread, arrVals, arrVals.size()); in HWTEST_F_L0() local
380 auto array = CreateArrayList(thread, arrVals, arrVals.size()); in HWTEST_F_L0() local
[all …]
/arkcompiler/ets_runtime/test/moduletest/stackoverflow/
Dstackoverflow.js23 var array = new Uint8Array(1000000); variable
32 var array = new Uint8Array(15000); variable
/arkcompiler/runtime_core/static_core/runtime/coretypes/
Darray.cpp53 auto *array = AllocateArray(arrayClass, elemSize, length, spaceType, pinned); in Create() local
74 auto *array = AllocateArray(arrayClass, elemSize, length, spaceType, pinned); in Create() local
93 auto *array = AllocateArray(arrayClass, elemSize, length, spaceType, pinned); in Create() local
112 auto *array = AllocateArray(arrayClass, elemSize, length, spaceType, false, vm); in CreateTagged() local
/arkcompiler/ets_runtime/test/moduletest/array/
Darray.js551 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
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
1224 const array = [1, 2, 3, 4, 5]; variable
1250 const array = [6, 7, 8, 9, 10, NaN, undefined, null, "", false, {name: "John"}, [1, 2, 3]]; variable
1266 const array = [1, 2, 3, 4, 5]; variable
[all …]
/arkcompiler/ets_runtime/test/moduletest/arrayfind/
Darrayfind.js29 const array = [0, 1, , , , 5, 6]; variable
43 function isPrime(element, index, array) { argument
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_plainarray.cpp99 JSAPIPlainArray *array = JSAPIPlainArray::Cast(self->GetTaggedObject()); in Clear() local
153 JSAPIPlainArray *array = JSAPIPlainArray::Cast(self->GetTaggedObject()); in Has() local
187 JSAPIPlainArray *array = JSAPIPlainArray::Cast(self->GetTaggedObject()); in Get() local
288 JSAPIPlainArray *array = JSAPIPlainArray::Cast(self->GetTaggedObject()); in GetIndexOfKey() local
309 JSAPIPlainArray *array = JSAPIPlainArray::Cast(self->GetTaggedObject()); in GetIndexOfValue() local
330 JSAPIPlainArray *array = JSAPIPlainArray::Cast(self->GetTaggedObject()); in IsEmpty() local
362 JSAPIPlainArray *array = JSAPIPlainArray::Cast(self->GetTaggedObject()); in GetKeyAt() local
395 JSAPIPlainArray *array = JSAPIPlainArray::Cast(self->GetTaggedObject()); in Remove() local
427 JSAPIPlainArray *array = JSAPIPlainArray::Cast(self->GetTaggedObject()); in RemoveAt() local
473 JSAPIPlainArray *array = JSAPIPlainArray::Cast(self->GetTaggedObject()); in RemoveRangeFrom() local
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/
Darray_native_test.cpp74 ets_booleanArray array = env_->NewBooleanArray(src.size()); in TEST_F() local
113 ets_byteArray array = env_->NewByteArray(src.size()); in TEST_F() local
152 ets_charArray array = env_->NewCharArray(src.size()); in TEST_F() local
191 ets_shortArray array = env_->NewShortArray(src.size()); in TEST_F() local
230 ets_intArray array = env_->NewIntArray(src.size()); in TEST_F() local
269 ets_longArray array = env_->NewLongArray(src.size()); in TEST_F() local
308 ets_floatArray array = env_->NewFloatArray(src.size()); in TEST_F() local
347 ets_doubleArray array = env_->NewDoubleArray(src.size()); in TEST_F() local
409 ets_objectArray array = env_->NewObjectsArray(src.size(), cls, etsSrc[0]); in TEST_F() local
/arkcompiler/ets_frontend/es2panda/test/parser/js/language/statements/for-statement/
Dasync-in-for-of-statement-with-declaration.js16 let array = [1, 2, 3]; variable
Dasync-in-for-in-statement.js16 let array = [1, 2, 3]; variable
Dasync-in-for-of-statement-with-escapes.js16 let array = [1, 2, 3]; variable
Dasync-in-for-of-statement.js16 let array = [1, 2, 3]; variable
/arkcompiler/ets_runtime/ecmascript/compiler/tests/
Dtyped_array_lowering_test.cpp53 auto array = builder.Arguments(1); in HWTEST_F_L0() local
82 auto array = builder.Arguments(1); in HWTEST_F_L0() local
117 auto array = builder.Arguments(1); in HWTEST_F_L0() local
149 auto array = builder.Arguments(1); in HWTEST_F_L0() local
181 auto array = builder.Arguments(1); in HWTEST_F_L0() local
216 auto array = builder.Arguments(1); in HWTEST_F_L0() local
251 auto array = builder.Arguments(1); in HWTEST_F_L0() local
286 auto array = builder.Arguments(1); in HWTEST_F_L0() local
321 auto array = builder.Arguments(1); in HWTEST_F_L0() local
356 auto array = builder.Arguments(1); in HWTEST_F_L0() local
[all …]
/arkcompiler/ets_runtime/ecmascript/ic/
Dproto_change_details.cpp18 …<ChangeListener> ChangeListener::Add(const JSThread *thread, const JSHandle<ChangeListener> &array, in Add()
55 uint32_t ChangeListener::CheckHole(const JSHandle<ChangeListener> &array) in CheckHole()
/arkcompiler/ets_runtime/test/aottest/exception_case5/
Dexception_case5.js22 let array = stack.split('\n') variable

12345678910>>...12