Home
last modified time | relevance | path

Searched refs:emptyArray (Results 1 – 24 of 24) sorted by relevance

/arkcompiler/ets_runtime/test/moduletest/array/
Darray.js1405 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/
Dconcurrent_marking_test.cpp149 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/
DRegExpMatchAllTest.sts18 let emptyArray : RegExpMatchArray[] = []
20 failure += test(new RegExp("b", "g"), "a", emptyArray)
26 failure += test(new RegExp("b"), "a", emptyArray)
DJsonTest.sts68 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), "[]")
DReadonlyArrayTest.sts146 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/
Dshared_object_factory.cpp299 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 …]
Djs_object-inl.h508 JSTaggedValue emptyArray = thread->GlobalConstants()->GetEmptyArray(); in GetEnumCacheKind() local
509 if (enumCache == emptyArray) { in GetEnumCacheKind()
Dobject_factory.cpp484 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 …]
Djs_number_format.cpp876 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/
Djson_parser_test.cpp81 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/
Dtest_core_typedarray_bignum.j283 let emptyArray = new {{.item.objectType}}(new ArrayBuffer(0));
84 let emptyIterator = emptyArray.$_iterator();
Dtest_core_typeduarray_function1.j2234 let emptyArray = new {{.item.objectType}}(new ArrayBuffer(0));
235 let emptyIterator = emptyArray.$_iterator();
Dtest_core_typedarray_function1.j2232 let emptyArray = new {{.item.objectType}}(new ArrayBuffer(0));
233 let emptyIterator = emptyArray.$_iterator();
/arkcompiler/ets_runtime/ecmascript/compiler/
Dnew_object_stub_builder.cpp418 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 …]
Dntype_hcr_lowering.cpp222 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()
Dtyped_native_inline_lowering.cpp418 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()
Dtyped_bytecode_lowering.cpp2286 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()
Dmcr_circuit_builder.cpp1450 GateRef emptyArray = GetEmptyArray(glue); in GetEnumCacheKind() local
1451 BRANCH_CIR2(Int64Equal(enumCache, emptyArray), &isEmptyArray, &notEmptyArray); in GetEnumCacheKind()
Dtyped_hcr_lowering.cpp3324 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/
Dbuiltins_promise.cpp450 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/
Dbuiltins_object_stub_builder.cpp1013 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/
Dsharedarray.ts297 const emptyArray = new SendableArray<number>(); constant
298 print(emptyArray.shift());
/arkcompiler/ets_frontend/legacy_bin/api8/src/
Dindex.js2emptyArray}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/
Descompat_Array_misc.sts40 …ures += check((): int => { return testIncludesInEmpty()}, "Test includes() method with emptyArray")