/arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
H A D | ets_vtable_builder.cpp | 29 auto *desc1 = info1.GetClassName(); in IsInSamePackage() local 32 while (ClassHelper::IsArrayDescriptor(desc1)) { in IsInSamePackage() 33 desc1 = ClassHelper::GetComponentDescriptor(desc1); in IsInSamePackage() 40 Span sp1(desc1, 1); in IsInSamePackage()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | js_shared_array_test.cpp | 100 PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(0)), true, true, true); in HWTEST_F_L0() 101 ASSERT_FALSE(JSSharedArray::ArraySetLength(thread, obj, desc1)); in HWTEST_F_L0() 117 EXPECT_TRUE(desc1.IsWritable()); in HWTEST_F_L0() 150 PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(0)), false, true, false); in HWTEST_F_L0() 152 ASSERT_FALSE(JSSharedArray::ArraySetLength(thread, obj, desc1)); in HWTEST_F_L0() 168 PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)), true, false, false); in HWTEST_F_L0() 169 ASSERT_TRUE(JSSharedArray::ArraySetLength(thread, obj, desc1)); in HWTEST_F_L0() 247 PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>(thread, in HWTEST_F_L0() 249 ASSERT_FALSE(JSSharedArray::ArraySetLength(thread, obj, desc1)); in HWTEST_F_L0()
|
H A D | js_object_test.cpp | 208 PropertyDescriptor desc1(thread); in HWTEST_F_L0() 209 desc1.SetValue(value1); in HWTEST_F_L0() 210 desc1.SetConfigurable(false); in HWTEST_F_L0() 211 JSObject::DefineOwnProperty(thread, obj1, key2, desc1); in HWTEST_F_L0() 282 PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)), true, true, true); in HWTEST_F_L0() 283 bool success = JSTaggedValue::DefinePropertyOrThrow(thread, JSHandle<JSTaggedValue>(obj), key, desc1); in HWTEST_F_L0() 498 PropertyDescriptor desc1(thread); in HWTEST_F_L0() 499 bool success1 = JSObject::GetOwnProperty(thread, jsobject, key1, desc1); in HWTEST_F_L0() 501 EXPECT_EQ(true, desc1.IsWritable()); in HWTEST_F_L0() 502 EXPECT_EQ(true, desc1 in HWTEST_F_L0() [all...] |
H A D | locale_helper_test.cpp | 83 PropertyDescriptor desc1(thread, localeStr1, true, true, true); in HWTEST_F_L0() 85 JSArray::DefineOwnProperty(thread, JSHandle<JSObject>(localeObj), key1, desc1); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/test/moduletest/object/ |
H A D | object.js | 211 let desc1 = Object.getOwnPropertyDescriptors(obj1); 218 print(JSON.stringify(desc1[0]));
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_promise_test.cpp | 298 PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>::Cast(resolvePromise)); in HWTEST_F_L0() 299 JSArray::DefineOwnProperty(thread, array, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)), desc1); in HWTEST_F_L0() 348 PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>::Cast(resolvePromise)); in HWTEST_F_L0() 349 JSArray::DefineOwnProperty(thread, array, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)), desc1); in HWTEST_F_L0() 418 PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>::Cast(resolvePromise2)); in HWTEST_F_L0() 419 JSArray::DefineOwnProperty(thread, array, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)), desc1); in HWTEST_F_L0()
|
H A D | builtins_collator_test.cpp | 187 PropertyDescriptor desc1(thread, value1, true, true, true); in HWTEST_F_L0() 188 JSArray::DefineOwnProperty(thread, jsObject, key1, desc1); in HWTEST_F_L0() 225 PropertyDescriptor desc1(thread, value1, true, true, true); in HWTEST_F_L0() 226 JSArray::DefineOwnProperty(thread, jsObject, key1, desc1); in HWTEST_F_L0()
|
H A D | builtins_json_test.cpp | 353 PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(200)), true, true, true); in HWTEST_F_L0() 354 JSArray::DefineOwnProperty(thread, obj, key1, desc1); in HWTEST_F_L0() 387 PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(2.5)), true, true, true); in HWTEST_F_L0() 388 JSArray::DefineOwnProperty(thread, obj, key1, desc1); in HWTEST_F_L0()
|
H A D | builtins_function_test.cpp | 149 PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(40))); in HWTEST_F_L0() 150 JSArray::DefineOwnProperty(thread, array, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)), desc1); in HWTEST_F_L0()
|
H A D | builtins_shared_function_test.cpp | 165 PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(40))); in HWTEST_F_L0() 166 JSArray::DefineOwnProperty(thread, array, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)), desc1); in HWTEST_F_L0()
|
H A D | builtins_reflect_test.cpp | 90 PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(44))); in HWTEST_F_L0() 91 JSArray::DefineOwnProperty(thread, argumentsList, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)), desc1); in HWTEST_F_L0()
|
H A D | builtins_array_test.cpp | 978 PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(2)), true, true, true); in HWTEST_F_L0() 979 JSArray::DefineOwnProperty(thread, obj, key1, desc1); in HWTEST_F_L0() 1031 PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(2)), true, true, true); in HWTEST_F_L0() 1032 JSArray::DefineOwnProperty(thread, obj, key1, desc1); in HWTEST_F_L0() 1378 PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(2)), true, true, true); in HWTEST_F_L0() 1379 JSArray::DefineOwnProperty(thread, obj2, key0, desc1); in HWTEST_F_L0()
|
H A D | builtins_shared_array_test.cpp | 776 PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(2)), true, true, true); in HWTEST_F_L0() 777 JSSharedArray::DefineOwnProperty(thread, obj, key1, desc1, SCheckMode::SKIP); in HWTEST_F_L0() 807 PropertyDescriptor desc1(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(2)), true, true, true); in HWTEST_F_L0() 808 JSSharedArray::DefineOwnProperty(thread, obj, key1, desc1, SCheckMode::SKIP); in HWTEST_F_L0()
|
H A D | builtins_string_test.cpp | 904 PropertyDescriptor desc1(thread, bar); in HWTEST_F_L0() 905 JSArray::DefineOwnProperty(thread, obj, key1, desc1); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/napi/test/ |
H A D | jsnapi_first_tests.cpp | 1180 PropertyDescriptor desc1 = PropertyDescriptor(thread_, func); in HWTEST_F_L0() local 1181 bool success1 = JSObject::DefineOwnProperty(thread_, JSHandle<JSObject>::Cast(set), property1String, desc1); in HWTEST_F_L0() 1231 PropertyDescriptor desc1 = PropertyDescriptor(thread_, func); in HWTEST_F_L0() local 1232 bool success1 = JSObject::DefineOwnProperty(thread_, JSHandle<JSObject>::Cast(weakMap), property1String, desc1); in HWTEST_F_L0() 1283 PropertyDescriptor desc1 = PropertyDescriptor(thread_, func); in HWTEST_F_L0() local 1284 JSObject::DefineOwnProperty(thread_, JSHandle<JSObject>::Cast(protoFunc), propertyString, desc1); in HWTEST_F_L0() 1321 PropertyDescriptor desc1 = PropertyDescriptor(thread_, addMethod); in HWTEST_F_L0() local 1322 JSObject::DefineOwnProperty(thread_, JSHandle<JSObject>::Cast(protoFunc), addString, desc1); in HWTEST_F_L0()
|