| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/ |
| D | JsonTest.ets | 65 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), "[]")
|
| D | RegExpMatchAllTest.ets | 18 let emptyArray : RegExpMatchArray[] = [] 20 failure += test(new RegExp("b", "g"), "a", emptyArray)
|
| /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/ets_runtime/ecmascript/compiler/ |
| D | new_object_stub_builder.cpp | 116 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, ¬EmptyArray); 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 …]
|
| D | ntype_hcr_lowering.cpp | 154 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()
|
| D | typed_bytecode_lowering.cpp | 1869 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()
|
| D | mcr_circuit_builder.cpp | 1243 GateRef emptyArray = GetEmptyArray(glue); in GetEnumCacheKind() local 1244 Branch(Int64Equal(enumCache, emptyArray), &isEmptyArray, ¬EmptyArray); in GetEnumCacheKind()
|
| D | typed_hcr_lowering.cpp | 3032 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/ |
| D | builtins_object_stub_builder.cpp | 1075 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/ |
| D | builtins_promise.cpp | 462 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/ |
| D | js_object-inl.h | 497 JSTaggedValue emptyArray = thread->GlobalConstants()->GetEmptyArray(); in GetEnumCacheKind() local 498 if (enumCache == emptyArray) { in GetEnumCacheKind()
|
| D | object_factory.cpp | 424 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 …]
|
| D | js_number_format.cpp | 858 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/ |
| 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.ets | 88 …res += check((): int => { return testIncludesInEmpty()}, "Test includes() method with emptyArray");
|