| /arkcompiler/ets_runtime/test/moduletest/array/ |
| D | array.js | 1405 const emptyArray = [1, [2, [], [3, []]]]; variable 1406 print(emptyArray.flat()); 1744 let emptyArray = []; variable 1745 emptyArray.reverse(); 1746 print(emptyArray); 1768 let emptyArray = []; variable 1769 let shiftedElement2 = emptyArray.shift(); 1771 print(emptyArray); 1794 let emptyArray = []; variable 1795 let slicedEmptyArray = emptyArray.slice(1, 3); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | concurrent_marking_test.cpp | 149 JSHandle<TaggedArray> emptyArray = factory->EmptyArray(); in HWTEST_F_L0() local 152 obj->SetElements(thread, emptyArray, SKIP_BARRIER); in HWTEST_F_L0() 153 obj->SetProperties(thread, emptyArray, SKIP_BARRIER); in HWTEST_F_L0()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/ |
| D | RegExpMatchAllTest.sts | 18 let emptyArray : RegExpMatchArray[] = [] 20 failure += test(new RegExp("b", "g"), "a", emptyArray) 26 failure += test(new RegExp("b"), "a", emptyArray)
|
| D | JsonTest.sts | 68 let emptyArray : Boolean[] = [] 71 … test(equalObjectArrays(JSON.parse<Object>("[]", booleanType) as Boolean[], emptyArray), "[]") 83 let emptyArray : Double[] = [] 86 test(equalObjectArrays(JSON.parse<Object>("[]", doubleType) as Double[], emptyArray), "[]") 91 let emptyArray : String[] = [] 94 test(equalObjectArrays(JSON.parse<Object>("[]", stringType) as String[], emptyArray), "[]")
|
| D | ReadonlyArrayTest.sts | 146 const emptyArray: ReadonlyArray<Number> = new Array<Number>; 147 if (!emptyArray.every(filterPositiveElement)) return RESULT_FAILURE; 281 const emptyArray: ReadonlyArray<Number> = new Array<Number>; 282 const iterator = emptyArray.$_iterator();
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | shared_object_factory.cpp | 299 JSHandle<TaggedArray> emptyArray = SharedEmptyArray(); in NewSharedOldSpaceJSObject() local 301 obj->SetElements(thread_, emptyArray); in NewSharedOldSpaceJSObject() 302 obj->SetProperties(thread_, emptyArray); in NewSharedOldSpaceJSObject() 607 JSHandle<TaggedArray> emptyArray = EmptyArray(); in NewSClassLiteral() local 610 classLiteral->SetArray(thread_, emptyArray); in NewSClassLiteral() 625 JSHandle<TaggedArray> emptyArray = EmptyArray(); in NewSClassInfoExtractor() local 626 obj->SetNonStaticKeys(thread_, emptyArray, SKIP_BARRIER); in NewSClassInfoExtractor() 627 obj->SetNonStaticProperties(thread_, emptyArray, SKIP_BARRIER); in NewSClassInfoExtractor() 628 obj->SetNonStaticElements(thread_, emptyArray, SKIP_BARRIER); in NewSClassInfoExtractor() 629 obj->SetStaticKeys(thread_, emptyArray, SKIP_BARRIER); in NewSClassInfoExtractor() [all …]
|
| D | js_object-inl.h | 508 JSTaggedValue emptyArray = thread->GlobalConstants()->GetEmptyArray(); in GetEnumCacheKind() local 509 if (enumCache == emptyArray) { in GetEnumCacheKind()
|
| D | object_factory.cpp | 484 JSHandle<TaggedArray> emptyArray = EmptyArray(); in NewJSObject() local 486 obj->SetElements(thread_, emptyArray, SKIP_BARRIER); in NewJSObject() 487 obj->SetProperties(thread_, emptyArray, SKIP_BARRIER); in NewJSObject() 4075 JSHandle<TaggedArray> emptyArray = EmptyArray(); in NewClassInfoExtractor() local 4076 obj->SetNonStaticKeys(thread_, emptyArray, SKIP_BARRIER); in NewClassInfoExtractor() 4077 obj->SetNonStaticProperties(thread_, emptyArray, SKIP_BARRIER); in NewClassInfoExtractor() 4078 obj->SetNonStaticElements(thread_, emptyArray, SKIP_BARRIER); in NewClassInfoExtractor() 4079 obj->SetStaticKeys(thread_, emptyArray, SKIP_BARRIER); in NewClassInfoExtractor() 4080 obj->SetStaticProperties(thread_, emptyArray, SKIP_BARRIER); in NewClassInfoExtractor() 4081 obj->SetStaticElements(thread_, emptyArray, SKIP_BARRIER); in NewClassInfoExtractor() [all …]
|
| D | js_number_format.cpp | 876 JSHandle<JSArray> emptyArray = factory->NewJSArray(); in FormatNumericToParts() local 877 THROW_RANGE_ERROR_AND_RETURN(thread, "icu formatter format failed", emptyArray); in FormatNumericToParts()
|
| /arkcompiler/runtime_core/static_core/libpandabase/tests/ |
| D | json_parser_test.cpp | 81 auto &emptyArray = *obj.GetValue<JsonObject::ArrayT>("key_1"); in TEST() local 84 ASSERT_EQ(emptyArray.size(), 0U); in TEST()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/utils/ |
| D | test_core_typedarray_bignum.j2 | 83 let emptyArray = new {{.item.objectType}}(new ArrayBuffer(0)); 84 let emptyIterator = emptyArray.$_iterator();
|
| D | test_core_typeduarray_function1.j2 | 234 let emptyArray = new {{.item.objectType}}(new ArrayBuffer(0)); 235 let emptyIterator = emptyArray.$_iterator();
|
| D | test_core_typedarray_function1.j2 | 232 let emptyArray = new {{.item.objectType}}(new ArrayBuffer(0)); 233 let emptyIterator = emptyArray.$_iterator();
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | new_object_stub_builder.cpp | 418 auto emptyArray = GetGlobalConstantValue( in NewJSObject() local 423 glue_, result->ReadVariable(), emptyArray, MemoryAttribute::NoBarrier()); in NewJSObject() 425 glue_, result->ReadVariable(), emptyArray, MemoryAttribute::NoBarrier()); in NewJSObject() 461 auto emptyArray = GetGlobalConstantValue( in NewSObject() local 466 glue_, result->ReadVariable(), emptyArray, MemoryAttribute::NoBarrier()); in NewSObject() 468 glue_, result->ReadVariable(), emptyArray, MemoryAttribute::NoBarrier()); in NewSObject() 556 auto emptyArray = GetGlobalConstantValue( in NewJSObject() local 561 glue_, result->ReadVariable(), emptyArray, MemoryAttribute::NoBarrier()); in NewJSObject() 563 glue_, result->ReadVariable(), emptyArray, MemoryAttribute::NoBarrier()); in NewJSObject() 859 Label emptyArray(env); in CopyArray() local [all …]
|
| D | ntype_hcr_lowering.cpp | 222 GateRef emptyArray = builder_.GetGlobalConstantValue(ConstantIndex::EMPTY_ARRAY_OBJECT_INDEX); in NewJSArrayLiteral() local 235 …ilder_.StoreConstOffset(VariableType::JS_POINTER(), array, JSObject::PROPERTIES_OFFSET, emptyArray, in NewJSArrayLiteral()
|
| D | typed_native_inline_lowering.cpp | 418 GateRef emptyArray = builder_.GetGlobalConstantValue(ConstantIndex::EMPTY_ARRAY_OBJECT_INDEX); in AllocateArrayIterator() local 430 …uilder_.StoreConstOffset(VariableType::INT64(), iterator, JSObject::PROPERTIES_OFFSET, emptyArray); in AllocateArrayIterator() 431 … builder_.StoreConstOffset(VariableType::INT64(), iterator, JSObject::ELEMENTS_OFFSET, emptyArray); in AllocateArrayIterator() 1147 GateRef emptyArray = builder->GetGlobalConstantValue(ConstantIndex::EMPTY_ARRAY_OBJECT_INDEX); in AllocateNewNumber() local 1156 …lder->StoreConstOffset(VariableType::JS_POINTER(), object, JSObject::PROPERTIES_OFFSET, emptyArray, in AllocateNewNumber() 1158 …uilder->StoreConstOffset(VariableType::JS_POINTER(), object, JSObject::ELEMENTS_OFFSET, emptyArray, in AllocateNewNumber()
|
| D | typed_bytecode_lowering.cpp | 2286 GateRef emptyArray = builder_.GetGlobalConstantValue(ConstantIndex::EMPTY_ARRAY_OBJECT_INDEX); in LowerCreateEmptyObject() local 2300 …lder_.StoreConstOffset(VariableType::JS_POINTER(), object, JSObject::PROPERTIES_OFFSET, emptyArray, in LowerCreateEmptyObject() 2302 …uilder_.StoreConstOffset(VariableType::JS_POINTER(), object, JSObject::ELEMENTS_OFFSET, emptyArray, in LowerCreateEmptyObject()
|
| D | mcr_circuit_builder.cpp | 1450 GateRef emptyArray = GetEmptyArray(glue); in GetEnumCacheKind() local 1451 BRANCH_CIR2(Int64Equal(enumCache, emptyArray), &isEmptyArray, ¬EmptyArray); in GetEnumCacheKind()
|
| D | typed_hcr_lowering.cpp | 3324 GateRef emptyArray = builder_.GetGlobalConstantValue(ConstantIndex::EMPTY_ARRAY_OBJECT_INDEX); in LowerTypedCreateObjWithBuffer() local 3335 … builder_.StoreConstOffset(VariableType::INT64(), newObj, JSObject::PROPERTIES_OFFSET, emptyArray); in LowerTypedCreateObjWithBuffer() 3336 … builder_.StoreConstOffset(VariableType::INT64(), newObj, JSObject::ELEMENTS_OFFSET, emptyArray); in LowerTypedCreateObjWithBuffer()
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_promise.cpp | 450 JSHandle<TaggedArray> emptyArray = factory->EmptyArray(); in PerformPromiseAll() local 451 values->SetValue(thread, emptyArray); in PerformPromiseAll() 713 JSHandle<TaggedArray> emptyArray = factory->EmptyArray(); in PerformPromiseAny() local 714 errors->SetValue(thread, emptyArray); in PerformPromiseAny() 898 JSHandle<TaggedArray> emptyArray = factory->EmptyArray(); in PerformPromiseAllSettled() local 899 values->SetValue(thread, emptyArray); in PerformPromiseAllSettled()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
| D | builtins_object_stub_builder.cpp | 1013 GateRef emptyArray = GetEmptyArray(glue); in GetAllEnumKeys() local 1014 result = emptyArray; in GetAllEnumKeys() 1072 GateRef emptyArray = GetEmptyArray(glue); in GetAllEnumKeys() local 1073 result = emptyArray; in GetAllEnumKeys() 1188 GateRef emptyArray = GetEmptyArray(glue); in GetEnumElementKeys() local 1189 result = emptyArray; in GetEnumElementKeys() 1261 GateRef emptyArray = GetEmptyArray(glue_); in Keys() local 1262 *result = CreateArrayFromList(glue_, emptyArray); in Keys() 1902 GateRef emptyArray = GetEmptyArray(glue_); in Entries() local 1903 *result = CreateArrayFromList(glue_, emptyArray); in Entries()
|
| /arkcompiler/ets_runtime/test/sharedtest/sharedarray/ |
| D | sharedarray.ts | 297 const emptyArray = new SendableArray<number>(); constant 298 print(emptyArray.shift());
|
| /arkcompiler/ets_frontend/legacy_bin/api8/src/ |
| D | index.js | 2 …emptyArray}function E(e){return S(e,!1)}function T(t,r){var n=t.name.escapedText;return N(t.parent…
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/escompat/ |
| D | escompat_Array_misc.sts | 40 …ures += check((): int => { return testIncludesInEmpty()}, "Test includes() method with emptyArray")
|