| /arkcompiler/runtime_core/runtime/tests/ |
| D | rem_set_test.cpp | 97 auto obj2 = static_cast<ObjectHeader *>(allocator.Alloc(allocator.GetMaxRegularObjectSize())); in TEST_F() local 98 obj2->SetClass(cls); in TEST_F() 99 auto region2 = ObjectToRegion(obj2); in TEST_F() 101 // simulate gc process: mark obj2 and update live bitmap with mark bitmap in TEST_F() 102 region2->GetMarkBitmap()->Set(obj2); in TEST_F() 108 remset1->AddRef(obj2); in TEST_F() 115 ASSERT_EQ(first, obj2); in TEST_F() 132 auto obj2 = static_cast<ObjectHeader *>(allocator.Alloc(allocator.GetMaxRegularObjectSize())); in TEST_F() local 133 obj2->SetClass(cls); in TEST_F() 134 auto region2 = ObjectToRegion(obj2); in TEST_F() [all …]
|
| D | region_allocator_test.cpp | 324 …auto *obj2 = reinterpret_cast<ObjectHeader *>(allocator.Alloc(DEFAULT_ALIGNMENT_IN_BYTES + 2)); /… in TEST_F() local 325 ASSERT_TRUE(obj2 != nullptr); in TEST_F() 329 ASSERT_EQ(ToUintPtr(obj2), ToUintPtr(obj1) + DEFAULT_ALIGNMENT_IN_BYTES); in TEST_F() 332 auto *region2 = allocator.GetRegion(obj2); in TEST_F() 368 auto *obj2 = reinterpret_cast<ObjectHeader *>(allocator.Alloc(test_class_->GetObjectSize())); in TEST_F() local 369 obj2->SetClass(test_class_); in TEST_F() 373 …region->IterateOverObjects([this, obj1, obj2, region, &obj1_num, &obj2_num, &allocator](ObjectHead… in TEST_F() 374 ASSERT_TRUE(object == obj1 || object == obj2); in TEST_F() 379 } else if (object == obj2) { in TEST_F()
|
| /arkcompiler/ets_runtime/test/moduletest/multiprotoic/ |
| D | multiprotoic.js | 35 let obj2 = {"c": "3c"}; variable 43 Object.setPrototypeOf(obj2, proto); 53 // obj33 --> proto --> obj2 --> proto --> proto object 56 obj33.__proto__ = obj2; 84 // change proto of obj2 85 // obj33 --> proto --> obj2 --> proto --> protoP2 86 Object.setPrototypeOf(obj2, protoP2);
|
| /arkcompiler/ets_runtime/test/aottest/defineclasswithbuffer/ |
| D | defineclasswithbuffer.ts | 27 class Obj2 { class 36 var obj2 = new Obj2(); variable 37 obj2.fun();
|
| /arkcompiler/ets_runtime/test/moduletest/objectcloneproperties/ |
| D | objectcloneproperties.js | 25 var obj2 = new Int32Array(2); variable 35 var arr = [obj1, obj2, obj3]; 40 1: obj2,
|
| /arkcompiler/ets_runtime/test/moduletest/linkedhashtable/ |
| D | linkedhashtable.js | 29 let obj2 = {i: "aaa", 800000003: "bbbbbb", get a() {}}; variable 30 let flag2 = (i === 800000002) & (obj2[800000002] === obj2[i])
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | js_object_test.cpp | 192 JSHandle<JSObject> obj2 = in HWTEST_F_L0() local 207 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), key1, value1); in HWTEST_F_L0() 208 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), key1, value2); in HWTEST_F_L0() 211 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj2), key1).GetValue().GetTaggedV… in HWTEST_F_L0() 220 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), key2, value1); in HWTEST_F_L0() 222 JSObject::DeleteProperty(thread, (obj2), key2); in HWTEST_F_L0() 225 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj2), key2).GetValue().GetTaggedV… in HWTEST_F_L0() 822 …JSHandle<JSObject> obj2 = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc… in HWTEST_F_L0() local 825 JSHandle<JSHClass> hc2(thread, obj2->GetJSHClass()); in HWTEST_F_L0() 837 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), key1, value); in HWTEST_F_L0() [all …]
|
| D | js_hclass_test.cpp | 239 JSHandle<JSObject> Obj2 = factory->NewJSObject(objClass); in HWTEST_F_L0() local 246 JSObject::SetProperty(thread, Obj2, keyF, JSHandle<JSTaggedValue>(thread, JSTaggedValue(8))); in HWTEST_F_L0() 253 JSHandle<JSHClass> obj2Class(thread, Obj2->GetClass()); in HWTEST_F_L0() 303 JSHandle<JSObject> Obj2 = factory->NewJSObject(obj2Class); in HWTEST_F_L0() local 304 …JSObject::SetProperty(thread, Obj2, keyHandle0, JSHandle<JSTaggedValue>(thread, JSTaggedValue(7))); in HWTEST_F_L0() 305 …JSObject::SetProperty(thread, Obj2, keyHandle1, JSHandle<JSTaggedValue>(thread, JSTaggedValue(8))); in HWTEST_F_L0() 306 …JSObject::SetProperty(thread, Obj2, keyHandle2, JSHandle<JSTaggedValue>(thread, JSTaggedValue(9))); in HWTEST_F_L0() 365 JSHandle<JSObject> Obj2 = JSObject::ObjectCreate(thread, Obj1); in HWTEST_F_L0() local 366 JSHandle<JSHClass> obj2Class(thread, Obj2->GetJSHClass()); in HWTEST_F_L0() 367 JSHandle<JSObject> Obj3 = JSObject::ObjectCreate(thread, Obj2); in HWTEST_F_L0() [all …]
|
| D | js_serializer_test.cpp | 262 EXPECT_TRUE(!objValue2.IsEmpty()) << "[Empty] Deserialize obj2 fail"; in ObjectsPropertyReferenceTest() 733 JSHandle<JSObject> obj2 = factory->NewEmptyJSObject(); in HWTEST_F_L0() local 756 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), key5, value5); in HWTEST_F_L0() 757 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), key6, value6); in HWTEST_F_L0() 758 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), key7, value7); in HWTEST_F_L0() 759 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), key8, value8); in HWTEST_F_L0() 763 bool success2 = serializer->SerializeJSTaggedValue(JSHandle<JSTaggedValue>::Cast(obj2)); in HWTEST_F_L0() 778 JSHandle<JSObject> obj2 = factory->NewEmptyJSObject(); in HWTEST_F_L0() local 799 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), key4, value4); in HWTEST_F_L0() 800 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj2), key5, value5); in HWTEST_F_L0() [all …]
|
| D | js_array_test.cpp | 68 JSHandle<JSTaggedValue> obj2(thread, arr2); in HWTEST_F_L0() local 69 EXPECT_EQ(JSArray::GetProperty(thread, obj2, lengthKeyHandle).GetValue()->GetInt(), 10); in HWTEST_F_L0() 82 JSHandle<JSTaggedValue> obj2(thread, arr2); in HWTEST_F_L0() local 83 EXPECT_EQ(JSArray::GetProperty(thread, obj2, lengthKeyHandle).GetValue()->GetInt(), 10); in HWTEST_F_L0()
|
| D | gc_test.cpp | 197 [[maybe_unused]] JSHandle<JSNativePointer> obj2 = factory->NewJSNativePointer(newData1, in HWTEST_F_L0() local 232 [[maybe_unused]] JSHandle<JSNativePointer> obj2 = factory->NewJSNativePointer(newData1, in HWTEST_F_L0() local
|
| /arkcompiler/ets_runtime/test/moduletest/compareobjecthclass/ |
| D | compareobjecthclass.js | 25 let obj2 = {y : 2, x : 1, z :3}; variable 28 if(!ArkTools.compareHClass(obj1, obj2) && ArkTools.compareHClass(obj1, obj3)) {
|
| /arkcompiler/ets_runtime/test/moduletest/objoperate/ |
| D | objoperate.js | 33 var obj2 = {d:1, ...obj1, e:5}; variable 34 assertEqual(obj2, {d:1, a:2, b:3, c:4, e:5});
|
| /arkcompiler/ets_runtime/test/typeinfer/builtins/ |
| D | builtins.ts | 36 let obj2 = Object(); 37 AssertType(obj2.toString(), "string"); 38 AssertType(obj2.toLocaleString(), "string"); 39 AssertType(obj2.hasOwnProperty("key"), "boolean"); 40 AssertType(obj2.isPrototypeOf({}), "boolean"); 41 AssertType(obj2.propertyIsEnumerable(""), "boolean");
|
| /arkcompiler/runtime_core/compiler/optimizer/optimizations/ |
| D | vn.h | 68 bool operator()(VnObject *obj1, VnObject *obj2) const in operator() 70 return obj1->Compare(obj2); in operator()
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/ |
| D | objectLiteralAssignability.ts | 18 var obj2: { a: number, b: string } | { a: number, b: string, c: number } = { a: 5, b: "foo", ...obj… variable 19 obj2 = { a: 2, b: "bar", c: 3 };
|
| /arkcompiler/ets_runtime/ecmascript/snapshot/tests/ |
| D | snapshot_test.cpp | 148 auto obj2 = constpool1->GetObjectFromCache(100).GetTaggedObject(); in HWTEST_F_L0() local 149 EXPECT_TRUE(Region::ObjectAddressToRange(obj2)->InOldSpace()); in HWTEST_F_L0() 201 auto obj2 = constpool->GetObjectFromCache(100).GetTaggedObject(); in HWTEST_F_L0() local 202 EXPECT_TRUE(Region::ObjectAddressToRange(obj2)->InOldSpace()); in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/test/moduletest/objectentries/ |
| D | objectentries.js | 30 let obj2 = { variable
|
| /arkcompiler/ets_runtime/ecmascript/compiler/tests/ |
| D | satepoint_GC_0.ll | 68 define i64 @test3(i64 addrspace(0)* %obj1, i64 addrspace(0)* %obj2, i64 addrspace(0)* %obj3, i64 a… 73 %obj_2 = load i64, i64 addrspace(0)* %obj2
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_ark_tools.h | 26 // Use through ArkTools.print(msg, [obj1, obj2, ... objn]) in js
|
| D | builtins_ark_tools.cpp | 63 JSHandle<JSTaggedValue> obj2 = GetCallArg(info, 1); in CompareHClass() local 65 JSHClass* obj2Hclass = obj2->GetTaggedObject()->GetClass(); in CompareHClass()
|
| /arkcompiler/runtime_core/runtime/ |
| D | handle_base.h | 52 * | obj7 | | obj2 |
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | return.64.yaml | 211 .record Obj2 <panda.extends=Obj> {} 215 newobj v10, Obj2
|
| D | return.yaml | 220 .record Obj2 <panda.extends=Obj> {} 224 newobj v10, Obj2
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_handle.h | 50 * | obj7 | | obj2 |
|