Home
last modified time | relevance | path

Searched refs:obj2 (Results 1 – 13 of 13) sorted by relevance

/art/runtime/
Djobject_comparator.cc36 Handle<mirror::Object> obj2(hs.NewHandle(soa.Decode<mirror::Object>(jobj2))); in operator ()() local
39 } else if (obj2 == nullptr) { in operator ()()
43 if (obj1->GetClass() != obj2->GetClass()) { in operator ()()
44 return obj1->GetClass()->IdentityHashCode() < obj2->GetClass()->IdentityHashCode(); in operator ()()
48 const size_t count2 = obj2->SizeOf(); in operator ()()
53 return obj1->IdentityHashCode() < obj2->IdentityHashCode(); in operator ()()
Dindirect_reference_table_test.cc70 Handle<mirror::Object> obj2 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F() local
71 ASSERT_TRUE(obj2 != nullptr); in TEST_F()
89 IndirectRef iref2 = irt.Add(cookie, obj2.Get(), &error_msg); in TEST_F()
95 EXPECT_OBJ_PTR_EQ(obj2.Get(), irt.Get(iref2)); in TEST_F()
115 iref2 = irt.Add(cookie, obj2.Get(), &error_msg); in TEST_F()
135 iref2 = irt.Add(cookie, obj2.Get(), &error_msg); in TEST_F()
164 iref2 = irt.Add(cookie, obj2.Get(), &error_msg); in TEST_F()
288 Handle<mirror::Object> obj2 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F() local
289 ASSERT_TRUE(obj2 != nullptr); in TEST_F()
311 IndirectRef iref2 = irt.Add(cookie0, obj2.Get(), &error_msg); in TEST_F()
[all …]
Dreference_table.cc137 ObjPtr<mirror::Object> obj2 = root2.Read<kWithoutReadBarrier>(); in Dump() local
139 DCHECK(obj2 != nullptr); in Dump()
142 DCHECK(!runtime->IsClearedJniWeakGlobal(obj2)); in Dump()
144 if (obj1->GetClass() != obj2->GetClass()) { in Dump()
145 return obj1->GetClass() < obj2->GetClass(); in Dump()
149 const size_t size2 = obj2->SizeOf(); in Dump()
154 return obj1.Ptr() < obj2.Ptr(); in Dump()
Djni_internal.cc696 static jboolean IsSameObject(JNIEnv* env, jobject obj1, jobject obj2) { in IsSameObject() argument
697 if (obj1 == obj2) { in IsSameObject()
701 return (soa.Decode<mirror::Object>(obj1) == soa.Decode<mirror::Object>(obj2)) in IsSameObject()
/art/test/530-checker-lse/src/
DMain.java110 static int test1(TestClass obj1, TestClass obj2) { in test1() argument
112 obj2.j = 2; in test1()
113 return obj1.i + obj2.j; in test1()
159 TestClass obj2 = new TestClass(); // Cannot alias with obj or obj1 which pre-exist. in test3() local
160 obj.next = obj2; // Make obj2 a non-singleton. in test3()
165 obj2.i = 3; in test3()
166 obj2.j = 4; in test3()
167 return obj.i + obj1.j + obj2.i + obj2.j; in test3()
231 static int test6(TestClass obj1, TestClass obj2, boolean b) { in test6() argument
235 obj2.j = 2; in test6()
[all …]
/art/test/088-monitor-verification/src/
DTwoPath.java33 public static void twoPath(Object obj1, Object obj2, int x) { in twoPath() argument
39 synchronized(obj2) { in twoPath()
41 localObj = obj2; in twoPath()
DMain.java68 Object obj2 = new Object(); in main() local
70 TwoPath.twoPath(obj1, obj2, 0); in main()
73 m.triplet(obj1, obj2, 0); in main()
207 public void triplet(Object obj1, Object obj2, int x) { in triplet() argument
214 localObj = obj2; in triplet()
/art/test/537-checker-arraycopy/src/
DMain.java94 public static int arraycopy3(Object[] obj1, Object[] obj2, int input1, int input3, int input4) { in arraycopy3() argument
95 System.arraycopy(obj1, input1, obj2, input3, input4); in arraycopy3()
97 System.out.println(obj2); in arraycopy3()
/art/runtime/gc/accounting/
Dmod_union_table_test.cc200 auto* obj2 = AllocObjectArray(self, space, CardTable::kCardSize); in RunTest() local
201 ASSERT_TRUE(obj2 != nullptr); in RunTest()
207 obj1->Set(0, obj2); in RunTest()
208 obj2->Set(0, obj3); in RunTest()
217 obj2->Set(3, other_space_ref2); in RunTest()
230 ASSERT_TRUE(table->ContainsCardFor(reinterpret_cast<uintptr_t>(obj2))); in RunTest()
/art/test/412-new-array/src/
DMain.java108 Object obj2 = new Object(); in $opt$TestWithInitializations() local
109 Object[] i = {obj1, obj2}; in $opt$TestWithInitializations()
112 assertEquals(obj2, i[1]); in $opt$TestWithInitializations()
/art/test/MyClassNatives/
DMyClassNatives.java63 static native int getText(long val1, Object obj1, long val2, Object obj2); in getText() argument
197 static native int getText_Fast(long val1, Object obj1, long val2, Object obj2); in getText_Fast() argument
/art/runtime/arch/
Dstub_test.cc621 Handle<mirror::String> obj2(hs.NewHandle( in TEST_F() local
624 obj2->IdentityHashCode(); in TEST_F()
626 Invoke3(reinterpret_cast<size_t>(obj2.Get()), 0U, 0U, art_quick_lock_object, self); in TEST_F()
628 LockWord lock_after2 = obj2->GetLockWord(false); in TEST_F()
/art/compiler/jni/
Djni_compiler_test.cc1299 jint my_gettext(JNIEnv* env, jclass klass, jlong val1, jobject obj1, jlong val2, jobject obj2) { in JNI_TEST()
1302 EXPECT_TRUE(env->IsSameObject(JniCompilerTest::jobj_, obj2)); in JNI_TEST()