Home
last modified time | relevance | path

Searched refs:o (Results 1 – 25 of 130) sorted by relevance

123456

/art/test/641-checker-arraycopy/src/
DMain.java28 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/
DMain.java201 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
223 public void testInstanceOf_Inlined(Object o) { in testInstanceOf_Inlined() argument
224 if (!$inline$InstanceofSubclassC(o)) { in testInstanceOf_Inlined()
227 ((SubclassC)o).$noinline$g(); in testInstanceOf_Inlined()
[all …]
/art/test/486-checker-must-do-null-check/src/
DMain.java20 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/
DMain.java70 Object o = new Object(); in testSimpleUse() local
72 throw new Error(o.toString()); in testSimpleUse()
95 Object o = new Object(); in testTwoUses() local
97 throw new Error(o.toString() + o.toString()); in testTwoUses()
189 Object[] o = new Object[1]; in testArrayStores() local
190 o[0] = o; in testArrayStores()
192 throw new Error(o.toString()); in testArrayStores()
199 Object[] o = new Object[1]; // dead allocation, should eventually be removed b/35634932. in testOnlyStoreUses() local
200 o[0] = m; in testOnlyStoreUses()
201 o = null; // Avoid environment uses for the array allocation. in testOnlyStoreUses()
[all …]
/art/test/521-checker-array-set-null/src/
DMain.java26 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/1337-gc-coverage/src/
DMain.java31 Object o = new Object(); in allocateStuff() local
32 treeMap.put(o.hashCode(), o); in allocateStuff() local
39 Object o = new Object(); in testHomogeneousCompaction() local
40 long addressBefore = objectAddress(o); in testHomogeneousCompaction()
51 addressAfter = objectAddress(o); in testHomogeneousCompaction()
73 Object o = new Object(); in testCollectorTransitions() local
78 long addressBefore = objectAddress(o); in testCollectorTransitions()
80 long addressAfter = objectAddress(o); in testCollectorTransitions()
88 addressBefore = objectAddress(o); in testCollectorTransitions()
90 addressAfter = objectAddress(o); in testCollectorTransitions()
/art/test/519-bound-load-class/src/
DMain.java27 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/
DMain.java19 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/430-live-register-slow-path/src/
DMain.java23 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/
DMovingGCThread.java33 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/
DMain.java37 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/runtime/native/
Djava_lang_reflect_Field.cc73 ALWAYS_INLINE inline static bool GetFieldValue(ObjPtr<mirror::Object> o, in GetFieldValue() argument
83 value->SetZ(is_volatile ? o->GetFieldBooleanVolatile(offset) : o->GetFieldBoolean(offset)); in GetFieldValue()
86 value->SetB(is_volatile ? o->GetFieldByteVolatile(offset) : o->GetFieldByte(offset)); in GetFieldValue()
89 value->SetC(is_volatile ? o->GetFieldCharVolatile(offset) : o->GetFieldChar(offset)); in GetFieldValue()
93 value->SetI(is_volatile ? o->GetField32Volatile(offset) : o->GetField32(offset)); in GetFieldValue()
97 value->SetJ(is_volatile ? o->GetField64Volatile(offset) : o->GetField64(offset)); in GetFieldValue()
100 value->SetS(is_volatile ? o->GetFieldShortVolatile(offset) : o->GetFieldShort(offset)); in GetFieldValue()
104 value->SetL(is_volatile ? o->GetFieldObjectVolatile<mirror::Object>(offset) : in GetFieldValue()
105 o->GetFieldObject<mirror::Object>(offset)); in GetFieldValue()
152 ObjPtr<mirror::Object> o; in Field_get() local
[all …]
/art/test/022-interface/src/
DMain.java47 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/test/633-checker-rtp-getclass/src/
DMain.java35 public static int $opt$noinline$foo(Main o) { in $opt$noinline$foo() argument
38 if (o.getClass() == Main.class || o.getClass() != SubMain.class) { in $opt$noinline$foo()
39 return o.foo(); in $opt$noinline$foo()
43 return o.bar(); in $opt$noinline$foo()
/art/test/004-checker-UnsafeTest18/src/
DMain.java40 public Object o = null; field in Main
53 private static int set32(Object o, long offset, int newValue) { in set32() argument
54 return unsafe.getAndSetInt(o, offset, newValue); in set32()
60 private static long set64(Object o, long offset, long newValue) { in set64() argument
61 return unsafe.getAndSetLong(o, offset, newValue); in set64()
67 private static Object setObj(Object o, long offset, Object newValue) { in setObj() argument
68 return unsafe.getAndSetObject(o, offset, newValue); in setObj()
78 private static int add32(Object o, long offset, int delta) { in add32() argument
79 return unsafe.getAndAddInt(o, offset, delta); in add32()
85 private static long add64(Object o, long offset, long delta) { in add64() argument
[all …]
/art/test/581-rtp/src/
DMain.java24 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/061-out-of-memory/src/
DMain.java112 Object[] o = new Object[2000000]; in testOomeToCharArray() local
116 for (; i < o.length; ++i) o[i] = new char[1000000]; in testOomeToCharArray()
119 for (; i < o.length; ++i) { in testOomeToCharArray()
120 o[i] = test.toCharArray(); in testOomeToCharArray()
123 o = null; in testOomeToCharArray()
/art/test/529-checker-unresolved/src/
DMain.java64 Object o = new Object(); in callUnresolvedStaticFieldAccess() local
71 UnresolvedClass.staticObject = o; in callUnresolvedStaticFieldAccess()
79 expectEquals(o, UnresolvedClass.staticObject); in callUnresolvedStaticFieldAccess()
109 Object o = new Object(); in callUnresolvedInstanceFieldAccess() local
116 c.instanceObject = o; in callUnresolvedInstanceFieldAccess()
124 expectEquals(o, c.instanceObject); in callUnresolvedInstanceFieldAccess()
164 static public void testInstanceOf(Object o) { in testInstanceOf() argument
165 if (o instanceof UnresolvedSuperClass) { in testInstanceOf()
170 static public UnresolvedSuperClass testCheckCast(Object o) { in testCheckCast() argument
171 UnresolvedSuperClass c = (UnresolvedSuperClass) o; in testCheckCast()
/art/test/903-hello-tagging/src/art/
DTest903.java42 Object o = new Object(); in testTags() local
43 long[] res = testTagsInDifferentEnvs(o, 100, 10); in testTags()
75 private static void checkTag(Object o, long expectedTag) { in checkTag() argument
76 long tag = Main.getTag(o); in checkTag()
88 Integer o = new Integer(i); in testGetTaggedObjects() local
89 l.add(o); in testGetTaggedObjects()
91 Main.setTag(o, i % 10); in testGetTaggedObjects()
136 public Pair(Object o, long t) { in Pair() argument
137 obj = o; in Pair()
176 private static native long[] testTagsInDifferentEnvs(Object o, long baseTag, int n); in testTagsInDifferentEnvs() argument
/art/test/631-checker-get-class/src/
DMain.java57 Object o = new SubMain(); in classEquality2() local
58 return o.getClass() == Main.class; in classEquality2()
82 Object o = new SubMain(); in classEquality4() local
83 return o.getClass() != Main.class; in classEquality4()
/art/test/201-built-in-except-detail-messages/src/
DMain.java96 Object o = os[2]; in arrayAccess() local
106 Object o = new Exception(); in arrayStore() local
107 array[0] = o; in arrayStore()
116 Object o = new Integer(5); in arrayStore() local
117 array[0] = o; in arrayStore()
126 Object o = new C[4]; in arrayStore() local
127 array[0] = o; in arrayStore()
196 Object o = new Exception(); in classCast() local
197 String s = (String) o; in classCast()
205 Object o = (C) makeArray(String.class); in classCast() local
[all …]
/art/test/920-objects/src/art/
DTest920.java45 private static void testObjectSize(Object o) { in testObjectSize() argument
46 System.out.println(o.getClass() + " " + getObjectSize(o)); in testObjectSize()
84 private static native long getObjectSize(Object o); in getObjectSize() argument
85 private static native int getObjectHashCode(Object o); in getObjectHashCode() argument
/art/test/440-stmp/src/
DMain.java24 baz(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o); in bar()
28 float h, float i, float j, float k, float l, float m, float n, float o) { in baz() argument
29 System.out.println(a - b - c - d - e - f - g - h - i - j - k - l - m - n - o); in baz()
46 float o = 15.0f; field in Main
/art/test/483-dce-block/src/
DMain.java18 public static void foo(Object o, int a) { in foo() argument
20 if (o instanceof Main) { in foo()
26 result = o; in foo()
/art/test/557-checker-ref-equivalent/src/
DMain.java22 Object o = null; in testRedundantPhiCycle() local
25 o = null; in testRedundantPhiCycle()
27 System.out.println(o); in testRedundantPhiCycle()

123456