/arkcompiler/ets_runtime/test/moduletest/objoperate/ |
H A D | objoperate.js | 32 var obj1 = {a:2, b:3, c:4};
33 var obj2 = {d:1, ...obj1, e:5};
61 var obj1 = {};
63 obj1.__proto__ = v1;
65 print(obj1[str]);
66 obj1[str] = 5;
67 print(obj1[str]);
71 print(obj1[str1]);
72 obj1[str1] = 5;
73 print(obj1[str [all...] |
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | rem_set_test.cpp | 96 auto obj1 = static_cast<ObjectHeader *>(allocator.Alloc(allocator.GetMaxRegularObjectSize())); in TEST_F() local 97 obj1->SetClass(cls); in TEST_F() 98 auto region1 = ObjectToRegion(obj1); in TEST_F() 130 auto obj1 = static_cast<ObjectHeader *>(allocator.Alloc(allocator.GetMaxRegularObjectSize())); in TEST_F() local 131 obj1->SetClass(cls); in TEST_F() 132 auto region1 = ObjectToRegion(obj1); in TEST_F() 138 region1->CreateLiveBitmap()->Set(obj1); in TEST_F() 140 RemSetWithCommonLock::AddRefWithAddr(obj1, 0, obj2); in TEST_F() 149 ASSERT_EQ(first, obj1); in TEST_F() 165 auto obj1 in TEST_F() local [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
H A D | ets_stubs.cpp | 57 static bool EtsBigIntEquality(EtsBigInt *obj1, EtsBigInt *obj2) in EtsBigIntEquality() argument 59 auto bytes1 = obj1->GetBytes(); in EtsBigIntEquality() 87 static bool CompareBoxedPrimitive(EtsObject *obj1, EtsObject *obj2) in CompareBoxedPrimitive() argument 89 return EtsBoxPrimitive<BoxedType>::FromCoreType(obj1)->GetValue() == in CompareBoxedPrimitive() 93 bool EtsValueTypedEquals(EtsCoroutine *coro, EtsObject *obj1, EtsObject *obj2) in EtsValueTypedEquals() argument 95 auto ecls1 = obj1->GetClass(); in EtsValueTypedEquals() 105 coretypes::String::Cast(obj1->GetCoreType())->Compare(coretypes::String::Cast(obj2->GetCoreType())) == 0; in EtsValueTypedEquals() 108 return cls2 == ext->GetBoxBooleanClass() && CompareBoxedPrimitive<EtsBoolean>(obj1, obj2); in EtsValueTypedEquals() 111 return cls2 == ext->GetBoxCharClass() && CompareBoxedPrimitive<EtsChar>(obj1, obj2); in EtsValueTypedEquals() 114 return ecls2->IsBigInt() && EtsBigIntEquality(EtsBigInt::FromEtsObject(obj1), EtsBigIn in EtsValueTypedEquals() [all...] |
H A D | ets_stubs.h | 34 bool EtsValueTypedEquals(EtsCoroutine *coro, EtsObject *obj1, EtsObject *obj2);
|
/arkcompiler/ets_runtime/test/moduletest/multiprotoic/ |
H A D | multiprotoic.js | 34 let obj1 = {"b": "2b"}; 42 Object.setPrototypeOf(obj1, proto); 51 // obj11 --> proto --> obj1 --> proto --> proto object 52 // obj22 --> proto --> obj1 --> proto --> proto object 54 obj11.__proto__ = obj1; 55 obj22.__proto__ = obj1; 65 obj1["www"] = "100www"; 78 // change proto of obj1 79 // obj11 --> proto --> obj1 --> proto --> protoP1 80 // obj22 --> proto --> obj1 [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
H A D | branch_elimination.h | 31 bool operator()(const ConditionOps &obj1, const ConditionOps &obj2) const in operator ()() 33 return std::tie(obj1.lhs, obj1.rhs) == std::tie(obj2.lhs, obj2.rhs) || in operator ()() 34 std::tie(obj1.lhs, obj1.rhs) == std::tie(obj2.rhs, obj2.lhs); in operator ()()
|
H A D | vn.h | 48 void Add(HalfObjType obj1, HalfObjType obj2); 74 bool operator()(VnObject *obj1, VnObject *obj2) const 76 return obj1->Compare(obj2);
|
/arkcompiler/ets_runtime/test/moduletest/compareobjecthclass/ |
H A D | compareobjecthclass.js | 24 let obj1 = {x : 1, y : 2, z :3}; 28 if(!ArkTools.compareHClass(obj1, obj2) && ArkTools.compareHClass(obj1, obj3)) {
|
/arkcompiler/ets_runtime/test/moduletest/objectcloneproperties/ |
H A D | objectcloneproperties.js | 26 var obj1 = { 29 toString() {return 'obj1';} 35 var arr = [obj1, obj2, obj3]; 39 0: obj1,
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | js_object_test.cpp | 183 JSHandle<JSObject> obj1 = in HWTEST_F_L0() local 198 JSObject::DefineOwnProperty(thread, obj1, key1, desc); in HWTEST_F_L0() 199 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1, value2); in HWTEST_F_L0() 202 EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1).GetValue().GetTaggedValue(), in HWTEST_F_L0() 211 JSObject::DefineOwnProperty(thread, obj1, key2, desc1); in HWTEST_F_L0() 212 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key2, value1); in HWTEST_F_L0() 214 JSObject::DeleteProperty(thread, (obj1), key2); in HWTEST_F_L0() 216 EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj1), key2).GetValue().GetTaggedValue(), in HWTEST_F_L0() 484 JSHandle<JSObject> obj1 = in HWTEST_F_L0() local 486 EXPECT_TRUE(*obj1 ! in HWTEST_F_L0() 509 JSHandle<JSObject> obj1 = HWTEST_F_L0() local 534 JSHandle<JSObject> obj1 = HWTEST_F_L0() local 558 JSHandle<JSObject> obj1 = HWTEST_F_L0() local 785 JSHandle<JSObject> obj1 = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc); HWTEST_F_L0() local 821 JSHandle<JSObject> obj1 = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc); HWTEST_F_L0() local 859 JSHandle<JSObject> obj1 = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc); HWTEST_F_L0() local 896 JSHandle<JSObject> obj1 = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc); HWTEST_F_L0() local 956 JSHandle<JSObject> obj1 = JSObject::ObjectCreate(thread, nullHandle); HWTEST_F_L0() local 1002 JSHandle<JSObject> obj1 = JSObject::ObjectCreate(thread, nullHandle); HWTEST_F_L0() local 1085 JSHandle<JSObject> obj1 = JSObject::ObjectCreate(thread, nullHandle); HWTEST_F_L0() local 1160 JSHandle<JSObject> obj1 = JSObject::ObjectCreate(thread, nullHandle); HWTEST_F_L0() local 1287 JSHandle<JSObject> obj1 = factory->NewJSObject(hc0); HWTEST_F_L0() local [all...] |
/arkcompiler/runtime_core/compiler/tests/ |
H A D | compiler_optimizations_test.cpp | 57 uint32_t obj1 = 1U; in HWTEST_F() local 59 vn_obj.Add(obj1); in HWTEST_F() 132 uint32_t obj1 = 1U; in HWTEST_F() local 134 vn_obj.Add(obj1); in HWTEST_F() 145 obj1 = 2U; in HWTEST_F() 147 vn_obj1.Add(obj1); in HWTEST_F()
|
/arkcompiler/ets_runtime/test/moduletest/loadicbyvalue/ |
H A D | loadicbyvalue.js | 46 var obj1 = { 54 for (let item in obj1) { 55 print(item + " " + obj1[item]);
|
/arkcompiler/ets_runtime/test/moduletest/linkedhashtable/ |
H A D | linkedhashtable.js | 23 let obj1 = {"code": 800000005}; 24 let res = JSON.stringify(obj1);
|
/arkcompiler/ets_runtime/test/moduletest/object/ |
H A D | object.js | 46 let obj1 = new Int8Array([-5, 10, 20, 30, 40, 50, 60.6]); 177 print(Object.getOwnPropertyNames(obj1)); 184 print(Object.getOwnPropertySymbols(obj1).length); 211 let desc1 = Object.getOwnPropertyDescriptors(obj1);
|
/arkcompiler/ets_runtime/test/moduletest/stubbuilder/ |
H A D | stubbuilder.js | 583 var obj1 = {"qq":10}; 586 obj1.field1 = obj2; 587 obj1.field2 = obj3; 588 print(obj1) 736 let obj1 = { 743 for (let key in obj1) { 744 obj2[key] = obj1[key]; 746 obj1.name = "Tom" 747 print(obj1.name);
|
/arkcompiler/runtime_core/compiler/optimizer/optimizations/ |
H A D | vn.h | 68 bool operator()(VnObject *obj1, VnObject *obj2) const 70 return obj1->Compare(obj2);
|
/arkcompiler/ets_runtime/test/moduletest/setobjectwithproto/ |
H A D | setobjectwithproto.js | 31 let obj1 = new C32(); 32 print(obj1.__proto__ == C32.prototype);
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/napi/lib/ |
H A D | EtsnapiNameTest.cpp | 47 [[maybe_unused]] EtsEnv *env, [[maybe_unused]] ets_class, [[maybe_unused]] ets_object obj1, in ETS_EtsnapiNameTest_methodOverloaded__Lstd_core_Object_2Lstd_core_String_2_3D() 50 ASSERT(obj1 == nullptr && s != nullptr && obj2 != nullptr); in ETS_EtsnapiNameTest_methodOverloaded__Lstd_core_Object_2Lstd_core_String_2_3D() 46 ETS_EtsnapiNameTest_methodOverloaded__Lstd_core_Object_2Lstd_core_String_2_3D( [[maybe_unused]] EtsEnv *env, [[maybe_unused]] ets_class, [[maybe_unused]] ets_object obj1, [[maybe_unused]] ets_string s, [[maybe_unused]] ets_object obj2) ETS_EtsnapiNameTest_methodOverloaded__Lstd_core_Object_2Lstd_core_String_2_3D() argument
|
/arkcompiler/ets_frontend/es2panda/test/parser/binder/ |
H A D | object-scope-name-js.js | 33 const obj1 = {
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_finalization_registry_test.cpp | 202 auto obj1 = in HWTEST_F_L0() local 209 target1 = obj1.GetTaggedValue(); in HWTEST_F_L0() 239 auto obj1 = in HWTEST_F_L0() local 242 target1 = obj1.GetTaggedValue(); in HWTEST_F_L0() 273 auto obj1 = in HWTEST_F_L0() local 276 target1 = obj1.GetTaggedValue(); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/test/moduletest/jsonstringifier/ |
H A D | jsonstringifier.js | 232 let obj1 = { 239 Object.keys(obj1); 240 print(JSON.stringify(obj1));
|
/arkcompiler/ets_runtime/test/moduletest/loadicbyname/ |
H A D | loadicbyname.js | 104 let obj1 = { 108 __proto__: obj1,
|
/arkcompiler/ets_runtime/test/moduletest/arraysort/ |
H A D | arraysort.js | 107 let obj1 = {0: 1, 1: 3, a: 6, 2: 2, length: 3}; 108 Array.prototype.sort.call(obj1, (a, b) => { 111 print(JSON.stringify(obj1));
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/ |
H A D | ets_object_test.cpp | 168 EtsObject *obj1 = EtsObject::Create(klass1); in TEST_F() local 171 ASSERT_TRUE(obj1->IsInstanceOf(klass1)); in TEST_F() 173 ASSERT_FALSE(obj1->IsInstanceOf(klass2)); in TEST_F()
|
/arkcompiler/toolchain/tooling/test/testcases/js/ |
H A D | module_variable.js | 127 var obj1 = { 153 var weakref1 = new WeakRef(obj1); 158 export {obj1};
|