/art/test/641-checker-arraycopy/src/ |
D | Main.java | 28 public static void typedCopy(Object o, byte[] foo) { in typedCopy() argument 29 System.arraycopy(o, 1, o, 0, 1); in typedCopy() 33 public static void untypedCopy(Object o, Object foo) { in untypedCopy() argument 34 System.arraycopy(o, 1, o, 0, 1); in untypedCopy() 46 public static void untypedCopyCaller(Object o, byte[] array) { in untypedCopyCaller() argument 47 untypedCopy(o, array); in untypedCopyCaller() 59 Object[] o = new Object[2]; in main() local 61 o[0] = a; in main() 62 o[1] = o; in main() 66 untypedCopyCaller(o, a); in main() [all …]
|
/art/test/450-checker-types/src/ |
D | Main.java | 201 public void testInstanceOf(Object o) { in testInstanceOf() argument 202 if (o instanceof SubclassC) { in testInstanceOf() 203 ((SubclassC)o).$noinline$g(); in testInstanceOf() 205 if (o instanceof SubclassB) { in testInstanceOf() 206 ((SubclassB)o).$noinline$g(); in testInstanceOf() 210 public static boolean $inline$InstanceofSubclassB(Object o) { return o instanceof SubclassB; } in $inline$InstanceofSubclassB() argument 211 public static boolean $inline$InstanceofSubclassC(Object o) { return o instanceof SubclassC; } in $inline$InstanceofSubclassC() argument 228 public void testInstanceOf_NotInlined(Object o) { in testInstanceOf_NotInlined() argument 229 if ((o instanceof SubclassC) == true) { in testInstanceOf_NotInlined() 230 ((SubclassC)o).$noinline$g(); in testInstanceOf_NotInlined() [all …]
|
/art/test/486-checker-must-do-null-check/src/ |
D | Main.java | 20 public void InstanceOfPreChecked(Object o) throws Exception { in InstanceOfPreChecked() argument 21 o.toString(); in InstanceOfPreChecked() 22 if (o instanceof Main) { in InstanceOfPreChecked() 29 public void InstanceOf(Object o) throws Exception { in InstanceOf() argument 30 if (o instanceof Main) { in InstanceOf() 37 public void CheckCastPreChecked(Object o) { in CheckCastPreChecked() argument 38 o.toString(); in CheckCastPreChecked() 39 ((Main)o).$noinline$Bar(); in CheckCastPreChecked() 44 public void CheckCast(Object o) { in CheckCast() argument 45 ((Main)o).$noinline$Bar(); in CheckCast()
|
/art/test/639-checker-code-sinking/src/ |
D | Main.java | 72 Object o = new Object(); in testSimpleUse() local 74 throw new Error(o.toString()); in testSimpleUse() 97 Object o = new Object(); in testTwoUses() local 99 throw new Error(o.toString() + o.toString()); in testTwoUses() 191 Object[] o = new Object[1]; in testArrayStores() local 192 o[0] = o; in testArrayStores() 194 throw new Error(o.toString()); in testArrayStores() 201 Object[] o = new Object[1]; // dead allocation, should eventually be removed b/35634932. in testOnlyStoreUses() local 202 o[0] = m; in testOnlyStoreUses() 203 o = null; // Avoid environment uses for the array allocation. in testOnlyStoreUses() [all …]
|
/art/test/521-checker-array-set-null/src/ |
D | Main.java | 26 public static void testWithNull(Object[] o) { in testWithNull() argument 27 o[0] = null; in testWithNull() 32 public static void testWithUnknown(Object[] o, Object obj) { in testWithUnknown() argument 33 o[0] = obj; in testWithUnknown() 38 public static void testWithSame(Object[] o) { in testWithSame() argument 39 o[0] = o[1]; in testWithSame()
|
/art/test/1968-force-early-return/src/art/ |
D | NonStandardExit.java | 28 public static void forceEarlyReturn(Thread thr, Object o) { in forceEarlyReturn() argument 29 if (o instanceof Number && o.getClass().getPackage().equals(Object.class.getPackage())) { in forceEarlyReturn() 30 Number n = (Number)o; in forceEarlyReturn() 42 } else if (o instanceof Character) { in forceEarlyReturn() 43 forceEarlyReturnInt(thr, ((Character)o).charValue()); in forceEarlyReturn() 44 } else if (o instanceof Boolean) { in forceEarlyReturn() 45 forceEarlyReturnInt(thr, ((Boolean)o).booleanValue() ? 1 : 0); in forceEarlyReturn() 47 forceEarlyReturnObject(thr, o); in forceEarlyReturn()
|
/art/test/1969-force-early-return-void/src/art/ |
D | NonStandardExit.java | 28 public static void forceEarlyReturn(Thread thr, Object o) { in forceEarlyReturn() argument 29 if (o instanceof Number && o.getClass().getPackage().equals(Object.class.getPackage())) { in forceEarlyReturn() 30 Number n = (Number)o; in forceEarlyReturn() 42 } else if (o instanceof Character) { in forceEarlyReturn() 43 forceEarlyReturnInt(thr, ((Character)o).charValue()); in forceEarlyReturn() 44 } else if (o instanceof Boolean) { in forceEarlyReturn() 45 forceEarlyReturnInt(thr, ((Boolean)o).booleanValue() ? 1 : 0); in forceEarlyReturn() 47 forceEarlyReturnObject(thr, o); in forceEarlyReturn()
|
/art/test/1970-force-early-return-long/src/art/ |
D | NonStandardExit.java | 28 public static void forceEarlyReturn(Thread thr, Object o) { in forceEarlyReturn() argument 29 if (o instanceof Number && o.getClass().getPackage().equals(Object.class.getPackage())) { in forceEarlyReturn() 30 Number n = (Number)o; in forceEarlyReturn() 42 } else if (o instanceof Character) { in forceEarlyReturn() 43 forceEarlyReturnInt(thr, ((Character)o).charValue()); in forceEarlyReturn() 44 } else if (o instanceof Boolean) { in forceEarlyReturn() 45 forceEarlyReturnInt(thr, ((Boolean)o).booleanValue() ? 1 : 0); in forceEarlyReturn() 47 forceEarlyReturnObject(thr, o); in forceEarlyReturn()
|
/art/test/1971-multi-force-early-return/src/art/ |
D | NonStandardExit.java | 28 public static void forceEarlyReturn(Thread thr, Object o) { in forceEarlyReturn() argument 29 if (o instanceof Number && o.getClass().getPackage().equals(Object.class.getPackage())) { in forceEarlyReturn() 30 Number n = (Number)o; in forceEarlyReturn() 42 } else if (o instanceof Character) { in forceEarlyReturn() 43 forceEarlyReturnInt(thr, ((Character)o).charValue()); in forceEarlyReturn() 44 } else if (o instanceof Boolean) { in forceEarlyReturn() 45 forceEarlyReturnInt(thr, ((Boolean)o).booleanValue() ? 1 : 0); in forceEarlyReturn() 47 forceEarlyReturnObject(thr, o); in forceEarlyReturn()
|
/art/test/jvmti-common/ |
D | NonStandardExit.java | 28 public static void forceEarlyReturn(Thread thr, Object o) { in forceEarlyReturn() argument 29 if (o instanceof Number && o.getClass().getPackage().equals(Object.class.getPackage())) { in forceEarlyReturn() 30 Number n = (Number)o; in forceEarlyReturn() 42 } else if (o instanceof Character) { in forceEarlyReturn() 43 forceEarlyReturnInt(thr, ((Character)o).charValue()); in forceEarlyReturn() 44 } else if (o instanceof Boolean) { in forceEarlyReturn() 45 forceEarlyReturnInt(thr, ((Boolean)o).booleanValue() ? 1 : 0); in forceEarlyReturn() 47 forceEarlyReturnObject(thr, o); in forceEarlyReturn()
|
/art/test/519-bound-load-class/src/ |
D | Main.java | 27 Object o = Main.class; in testInstanceOf() local 28 if (o instanceof Main) { in testInstanceOf() 29 System.out.println((Main)o); in testInstanceOf() 34 Object o = Main.class; in testNull() local 35 if (o != null) { in testNull() 36 System.out.println((Main)o); in testNull()
|
/art/test/120-hashcode/src/ |
D | Main.java | 19 Object o = new Object(); in main() local 21 int hashOrig = o.hashCode(); in main() 23 int hashSystemOrig = System.identityHashCode(o); in main() 26 synchronized (o) { in main() 27 hashInflated = o.hashCode(); in main() 28 hashSystemInflated = System.identityHashCode(o); in main()
|
/art/test/674-hiddenapi/ |
D | hiddenapi-flags.csv | 3 LNullaryConstructorDarkGreylist;-><init>()V,greylist-max-o 7 LParentClass;->fieldPackageDarkGreylist:I,greylist-max-o 11 LParentClass;->fieldPackageStaticDarkGreylist:I,greylist-max-o 15 LParentClass;->fieldPrivateDarkGreylist:I,greylist-max-o 19 LParentClass;->fieldPrivateStaticDarkGreylist:I,greylist-max-o 23 LParentClass;->fieldProtectedDarkGreylist:I,greylist-max-o 27 LParentClass;->fieldProtectedStaticDarkGreylist:I,greylist-max-o 33 LParentClass;->fieldPublicDarkGreylistB:I,greylist-max-o 34 LParentClass;->fieldPublicDarkGreylist:I,greylist-max-o 41 LParentClass;->fieldPublicStaticDarkGreylistB:I,greylist-max-o [all …]
|
/art/test/656-loop-deopt/src/ |
D | Main.java | 38 Object o = $noinline$objectReturned(new SubMain()); in main() local 41 if (o instanceof Cloneable) { in main() 42 System.out.println("Unexpected object type " + o.getClass()); in main() 69 Object o = new Object(); in $noinline$objectUpdate() local 79 o.toString(); in $noinline$objectUpdate() 81 o = m; in $noinline$objectUpdate() 105 Object o = new Object(); in $noinline$objectReturned() local 118 myReturnValue = o; in $noinline$objectReturned() 120 o = m; in $noinline$objectReturned()
|
/art/test/430-live-register-slow-path/src/ |
D | Main.java | 23 Object[] o = bar(); in $opt$TestSlowPath() local 24 assertEquals(0, o.length); in $opt$TestSlowPath() 30 doCall(o instanceof Interface[], o); in $opt$TestSlowPath() 34 public static boolean doCall(boolean val, Object o) { return val; } in doCall() argument
|
/art/test/148-multithread-gc-annotations/src/ |
D | MovingGCThread.java | 33 Object o = new Object(); in testHomogeneousCompaction() local 34 long addressBefore = objectAddress(o); in testHomogeneousCompaction() 42 long addressAfter = objectAddress(o); in testHomogeneousCompaction() 53 Object o = new Object(); in allocateStuff() local 54 treeMap.put(o.hashCode(), o); in allocateStuff() local
|
/art/test/540-checker-rtp-bug/src/ |
D | Main.java | 37 public static Final testKeepCheckCast(Object o, boolean cond) { in testKeepCheckCast() argument 40 x = o; in testKeepCheckCast() 55 public static void testKeepInstanceOf(Object o, boolean cond) { in testKeepInstanceOf() argument 58 x = o; in testKeepInstanceOf() 79 public static String testNoInline(Object o, boolean cond) { in testNoInline() argument 82 x = o; in testNoInline()
|
/art/test/022-interface/src/ |
D | Main.java | 47 ObjectOverridingInterface o = in objectOverrideTests() local 49 public boolean equals(Object o) { in objectOverrideTests() 68 doObjectOverrideTests(o); in objectOverrideTests() 90 static void doObjectOverrideTests(ObjectOverridingInterface o) { in doObjectOverrideTests() argument 91 check(o.equals(null)); in doObjectOverrideTests() 92 check(o.hashCode() == 0xC001D00D); in doObjectOverrideTests() 93 check(o.toString().equals("Mallet's Mallet")); in doObjectOverrideTests()
|
/art/runtime/native/ |
D | java_lang_reflect_Field.cc | 77 ALWAYS_INLINE inline static bool GetFieldValue(ObjPtr<mirror::Object> o, in GetFieldValue() argument 87 value->SetZ(is_volatile ? o->GetFieldBooleanVolatile(offset) : o->GetFieldBoolean(offset)); in GetFieldValue() 90 value->SetB(is_volatile ? o->GetFieldByteVolatile(offset) : o->GetFieldByte(offset)); in GetFieldValue() 93 value->SetC(is_volatile ? o->GetFieldCharVolatile(offset) : o->GetFieldChar(offset)); in GetFieldValue() 97 value->SetI(is_volatile ? o->GetField32Volatile(offset) : o->GetField32(offset)); in GetFieldValue() 101 value->SetJ(is_volatile ? o->GetField64Volatile(offset) : o->GetField64(offset)); in GetFieldValue() 104 value->SetS(is_volatile ? o->GetFieldShortVolatile(offset) : o->GetFieldShort(offset)); in GetFieldValue() 108 value->SetL(is_volatile ? o->GetFieldObjectVolatile<mirror::Object>(offset) : in GetFieldValue() 109 o->GetFieldObject<mirror::Object>(offset)); in GetFieldValue() 158 ObjPtr<mirror::Object> o; in Field_get() local [all …]
|
/art/test/712-varhandle-invocations/src/ |
D | Widget.java | 26 public boolean equals(Object o) { in equals() argument 27 if (this == o) { in equals() 30 if (!(o instanceof Widget)) { in equals() 33 Widget wo = (Widget) o; in equals()
|
/art/test/670-bitstring-type-check/ |
D | build | 80 Object o = createInstance("Level" + i + "Class0"); 81 assertTrue(o instanceof Level1Class0); 82 if (o instanceof Level2Class0) { 87 if (o instanceof Level3Class0) { 92 if (o instanceof Level4Class0) { 97 if (o instanceof Level5Class0) { 102 if (o instanceof Level6Class0) { 107 if (o instanceof Level7Class0) { 112 if (o instanceof Level8Class0) { 117 if (o instanceof Level9Class0) { [all …]
|
/art/test/2231-checker-heap-poisoning/src/ |
D | Main.java | 153 void testSetField(Object o) { in testSetField() argument 154 field = o; in testSetField() 159 Object o = m.testGetField(); in main() local 160 m.testSetField(o); in main()
|
/art/test/581-rtp/src/ |
D | Main.java | 24 Object o = null; in main() local 32 if (o instanceof Main) { in main() 33 field = o; in main() 35 o = f; in main()
|
/art/test/1337-gc-coverage/src/ |
D | Main.java | 30 Object o = new Object(); in allocateStuff() local 31 treeMap.put(o.hashCode(), o); in allocateStuff() local 38 Object o = new Object(); in testHomogeneousCompaction() local 39 long addressBefore = objectAddress(o); in testHomogeneousCompaction() 50 addressAfter = objectAddress(o); in testHomogeneousCompaction()
|
/art/test/679-locks/src/ |
D | Main.java | 40 Object o = Main.myStatic; in run() local 41 if (o != null) { in run() 42 if (o instanceof NotLoaded) { in run() 43 ((NotLoaded)o).foo(); in run()
|