Home
last modified time | relevance | path

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

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DJsonTest.ets65 let emptyArray : Boolean[] = []
68 … test(equalObjectArrays(JSON.parse<Object>("[]", booleanType) as Boolean[], emptyArray), "[]")
73 let emptyArray : Double[] = []
76 test(equalObjectArrays(JSON.parse<Object>("[]", doubleType) as Double[], emptyArray), "[]")
81 let emptyArray : String[] = []
84 test(equalObjectArrays(JSON.parse<Object>("[]", stringType) as String[], emptyArray), "[]")
DRegExpMatchAllTest.ets18 let emptyArray : RegExpMatchArray[] = []
20 failure += test(new RegExp("b", "g"), "a", emptyArray)
/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/ets_runtime/ecmascript/compiler/
Dnew_object_stub_builder.cpp116 auto emptyArray = GetGlobalConstantValue( in NewJSObject() local
120 glue_, result->ReadVariable(), emptyArray); in NewJSObject()
122 glue_, result->ReadVariable(), emptyArray); in NewJSObject()
346 Label emptyArray(env); in CopyArray() local
348 Branch(Int32Equal(newLen, Int32(0)), &emptyArray, &notEmptyArray); in CopyArray()
349 Bind(&emptyArray); in CopyArray()
685 GateRef emptyArray = GetEmptyArray(glue); in EnumerateObjectProperties() local
686 result = NewJSForinIterator(glue, Undefined(), emptyArray, Undefined()); in EnumerateObjectProperties()
1227 GateRef emptyArray = GetGlobalConstantValue( in CreateEmptyArrayCommon() local
1230 …NewJSArrayLiteral(&result, &exit, RegionSpaceFlag::IN_YOUNG_SPACE, emptyArray, hclass, trackInfo, … in CreateEmptyArrayCommon()
[all …]
Dntype_hcr_lowering.cpp154 GateRef emptyArray = builder_.GetGlobalConstantValue(ConstantIndex::EMPTY_ARRAY_OBJECT_INDEX); in NewJSArrayLiteral() local
167 …lder_.StoreConstOffset(VariableType::JS_POINTER(), array, JSObject::PROPERTIES_OFFSET, emptyArray); in NewJSArrayLiteral()
Dtyped_bytecode_lowering.cpp1869 GateRef emptyArray = builder_.GetGlobalConstantValue(ConstantIndex::EMPTY_ARRAY_OBJECT_INDEX); in LowerCreateEmptyObject() local
1882 …der_.StoreConstOffset(VariableType::JS_POINTER(), object, JSObject::PROPERTIES_OFFSET, emptyArray); in LowerCreateEmptyObject()
1883 …ilder_.StoreConstOffset(VariableType::JS_POINTER(), object, JSObject::ELEMENTS_OFFSET, emptyArray); in LowerCreateEmptyObject()
Dmcr_circuit_builder.cpp1243 GateRef emptyArray = GetEmptyArray(glue); in GetEnumCacheKind() local
1244 Branch(Int64Equal(enumCache, emptyArray), &isEmptyArray, &notEmptyArray); in GetEnumCacheKind()
Dtyped_hcr_lowering.cpp3032 GateRef emptyArray = builder_.GetGlobalConstantValue(ConstantIndex::EMPTY_ARRAY_OBJECT_INDEX); in LowerTypedCreateObjWithBuffer() local
3042 … builder_.StoreConstOffset(VariableType::INT64(), newObj, JSObject::PROPERTIES_OFFSET, emptyArray); in LowerTypedCreateObjWithBuffer()
3043 … builder_.StoreConstOffset(VariableType::INT64(), newObj, JSObject::ELEMENTS_OFFSET, emptyArray); in LowerTypedCreateObjWithBuffer()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dbuiltins_object_stub_builder.cpp1075 GateRef emptyArray = GetEmptyArray(glue); in GetAllEnumKeys() local
1076 result = emptyArray; in GetAllEnumKeys()
1122 GateRef emptyArray = GetEmptyArray(glue); in GetAllEnumKeys() local
1123 result = emptyArray; in GetAllEnumKeys()
1233 GateRef emptyArray = GetEmptyArray(glue); in GetEnumElementKeys() local
1234 result = emptyArray; in GetEnumElementKeys()
1298 GateRef emptyArray = GetEmptyArray(glue_); in Keys() local
1299 *result = CreateArrayFromList(glue_, emptyArray); in Keys()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_promise.cpp462 JSHandle<TaggedArray> emptyArray = factory->EmptyArray(); in PerformPromiseAll() local
463 values->SetValue(thread, emptyArray); in PerformPromiseAll()
725 JSHandle<TaggedArray> emptyArray = factory->EmptyArray(); in PerformPromiseAny() local
726 errors->SetValue(thread, emptyArray); in PerformPromiseAny()
910 JSHandle<TaggedArray> emptyArray = factory->EmptyArray(); in PerformPromiseAllSettled() local
911 values->SetValue(thread, emptyArray); in PerformPromiseAllSettled()
/arkcompiler/ets_runtime/ecmascript/
Djs_object-inl.h497 JSTaggedValue emptyArray = thread->GlobalConstants()->GetEmptyArray(); in GetEnumCacheKind() local
498 if (enumCache == emptyArray) { in GetEnumCacheKind()
Dobject_factory.cpp424 JSHandle<TaggedArray> emptyArray = EmptyArray(); in NewJSObject() local
426 obj->SetElements(thread_, emptyArray, SKIP_BARRIER); in NewJSObject()
427 obj->SetProperties(thread_, emptyArray, SKIP_BARRIER); in NewJSObject()
3719 JSHandle<TaggedArray> emptyArray = EmptyArray(); in NewClassInfoExtractor() local
3720 obj->SetNonStaticKeys(thread_, emptyArray, SKIP_BARRIER); in NewClassInfoExtractor()
3721 obj->SetNonStaticProperties(thread_, emptyArray, SKIP_BARRIER); in NewClassInfoExtractor()
3722 obj->SetNonStaticElements(thread_, emptyArray, SKIP_BARRIER); in NewClassInfoExtractor()
3723 obj->SetStaticKeys(thread_, emptyArray, SKIP_BARRIER); in NewClassInfoExtractor()
3724 obj->SetStaticProperties(thread_, emptyArray, SKIP_BARRIER); in NewClassInfoExtractor()
3725 obj->SetStaticElements(thread_, emptyArray, SKIP_BARRIER); in NewClassInfoExtractor()
[all …]
Djs_number_format.cpp858 JSHandle<JSArray> emptyArray = factory->NewJSArray(); in FormatNumericToParts() local
859 THROW_RANGE_ERROR_AND_RETURN(thread, "icu formatter format failed", emptyArray); in FormatNumericToParts()
/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.ets88 …res += check((): int => { return testIncludesInEmpty()}, "Test includes() method with emptyArray");