| /arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
| D | builtins_date_time_format_second_test.cpp | 95 uint32_t arrayLen = keyArray->GetLength(); in BuiltinsDateTimeOptionsSet() local 97 for (uint32_t i = 0; i < arrayLen; i++) { in BuiltinsDateTimeOptionsSet() 290 uint32_t arrayLen = keyArray->GetLength(); in JSDateTimeFormatForObj_001() local 292 for (uint32_t i = 0; i < arrayLen; i++) { in JSDateTimeFormatForObj_001() 387 uint32_t arrayLen = keyArray->GetLength(); in JSDateTimeFormatForObj_002() local 391 for (uint32_t i = 0; i < arrayLen; i++) { in JSDateTimeFormatForObj_002()
|
| D | builtins_date_time_format_first_test.cpp | 116 uint32_t arrayLen = keyArray->GetLength(); in BuiltinsDateTimeOptionsSet() local 118 for (uint32_t i = 0; i < arrayLen; i++) { in BuiltinsDateTimeOptionsSet()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | typed_array_stub_builder.cpp | 436 GateRef arrayLen = GetArrayLength(thisValue); in SubArray() local 450 beginIndex = CalArrayRelativePos(relativeBeginInt, arrayLen); in SubArray() 459 endIndex = arrayLen; in SubArray() 469 endIndex = CalArrayRelativePos(endVal, arrayLen); in SubArray() 486 GateRef elementSize = Int32Div(oldByteLength, arrayLen); in SubArray()
|
| D | stub_builder.h | 802 GateRef CalArrayRelativePos(GateRef index, GateRef arrayLen);
|
| D | stub_builder.cpp | 8008 GateRef StubBuilder::CalArrayRelativePos(GateRef index, GateRef arrayLen) in CalArrayRelativePos() argument 8021 GateRef tempBeginIndex = Int32Add(arrayLen, index); in CalArrayRelativePos() 8034 Branch(Int32LessThan(index, arrayLen), &lessLen, &largeLen); in CalArrayRelativePos() 8042 result = arrayLen; in CalArrayRelativePos()
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/inspector/ |
| D | object_repository.cpp | 158 if (auto arrayLen = extension_->GetLengthIfArray(object)) { in CreateObject() local 160 return RemoteObject::Array(extension_->GetClassName(object), *arrayLen, id); in CreateObject()
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_arraybuffer.cpp | 766 uint32_t arrayLen = items->GetArrayLength(); in TypedArrayToList() local 771 JSHandle<TaggedArray> elements = (oldElements->GetLength() < arrayLen) ? in TypedArrayToList() 772 factory->ExtendArray(oldElements, arrayLen) : oldElements; in TypedArrayToList() 778 while (index < arrayLen) { in TypedArrayToList() 786 JSHandle<JSArray>(newArrayHandle)->SetArrayLength(thread, arrayLen); in TypedArrayToList()
|
| D | builtins_array.cpp | 437 uint32_t arrayLen = 0; in Concat() local 438 …aggedValue newArray = JSArray::ArraySpeciesCreate(thread, thisObjHandle, JSTaggedNumber(arrayLen)); in Concat() 912 int32_t arrayLen = 0; in Filter() local 913 …aggedValue newArray = JSArray::ArraySpeciesCreate(thread, thisObjHandle, JSTaggedNumber(arrayLen)); in Filter() 2816 uint32_t arrayLen = 0; in Flat() local 2817 …aggedValue newArray = JSArray::ArraySpeciesCreate(thread, thisObjHandle, JSTaggedNumber(arrayLen)); in Flat() 2856 uint32_t arrayLen = 0; in FlatMap() local 2857 …aggedValue newArray = JSArray::ArraySpeciesCreate(thread, thisObjHandle, JSTaggedNumber(arrayLen)); in FlatMap()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
| D | builtins_array_stub_builder.cpp | 1773 GateRef arrayLen = GetArrayLength(thisValue); in Splice() local 1796 start = CalArrayRelativePos(intStart, arrayLen); in Splice() 1798 actualDeleteCount = Int32Sub(arrayLen, *start); in Splice() 1818 … Branch(Int32LessThan(Int32Sub(arrayLen, *start), *deleteCount), &lessArrayLen, &checkOverflow); in Splice() 1820 actualDeleteCount = Int32Sub(arrayLen, *start); in Splice() 1823 …Branch(Int64GreaterThan(Int64Sub(Int64Add(ZExtInt32ToInt64(arrayLen), ZExtInt32ToInt64(*insertCoun… in Splice() 1832 GateRef newCapacity = Int32Add(Int32Sub(arrayLen, *actualDeleteCount), *insertCount); in Splice() 1863 … Branch(Int32LessThan(*i, Int32Sub(arrayLen, *actualDeleteCount)), &next, &loopExit); in Splice() 1914 Branch(Int32LessThan(*idx, arrayLen), &next1, &loopExit1); in Splice() 1934 DEFVARIABLE(j, VariableType::INT32(), Int32Sub(arrayLen, *actualDeleteCount)); in Splice()
|
| /arkcompiler/runtime_core/static_core/compiler/tests/ |
| D | checks_elimination_test.cpp | 41 void SimpleTest(int32_t index, int32_t arrayLen) in SimpleTest() argument 46 CONSTANT(0U, arrayLen); in SimpleTest() 63 CONSTANT(0U, arrayLen); in SimpleTest() 78 CONSTANT(0U, arrayLen); in SimpleTest() 95 void ArithmeticTest(int32_t index, int32_t arrayLen, Opcode opc, int32_t val) in ArithmeticTest() argument 100 CONSTANT(0U, arrayLen); in ArithmeticTest() 120 CONSTANT(0U, arrayLen); in ArithmeticTest() 138 CONSTANT(0U, arrayLen); in ArithmeticTest() 158 void ModTest(int32_t arrayLen, int32_t mod) in ModTest() argument 163 CONSTANT(0U, arrayLen); in ModTest() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
| D | Array.ets | 146 public constructor(arrayLen: number) { 147 this.buffer = new NullishType[arrayLen as int]; 148 this.actualLength = arrayLen as int // TODO(kprokopenko): this is incorrect! null-safety
|
| /arkcompiler/ets_runtime/ecmascript/napi/ |
| D | jsnapi_expo.cpp | 2405 JSTaggedNumber arrayLen(length); in New() local 2406 JSHandle<JSTaggedValue> array = JSArray::ArrayCreate(thread, arrayLen); in New()
|