Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 105) sorted by relevance

12345

/art/test/055-enum-performance/src/
DMain.java78 Class<SamePackagePublicEnum> c = SamePackagePublicEnum.class; in preTest() local
80 System.out.println(Enum.valueOf(c, "FOUR")); in preTest()
81 System.out.println(Enum.valueOf(c, "ONE")); in preTest()
82 System.out.println(Enum.valueOf(c, "FOURTEEN")); in preTest()
83 System.out.println(Enum.valueOf(c, "NINE")); in preTest()
84 System.out.println(Enum.valueOf(c, "FIVE")); in preTest()
85 System.out.println(Enum.valueOf(c, "TWELVE")); in preTest()
87 System.out.println(Enum.valueOf(c, "ZERO").getClass().getName()); in preTest()
133 Class<SamePackagePublicEnum> c = SamePackagePublicEnum.class; in test1() local
135 Enum.valueOf(c, "ZERO"); in test1()
[all …]
/art/test/StaticLeafMethods/
DStaticLeafMethods.java29 static int sum(int a, int b, int c) { in sum() argument
30 return a + b + c; in sum()
32 static int sum(int a, int b, int c, int d) { in sum() argument
33 return a + b + c + d; in sum()
35 static int sum(int a, int b, int c, int d, int e) { in sum() argument
36 return a + b + c + d + e; in sum()
44 static double sum(double a, double b, double c) { in sum() argument
45 return a + b + c; in sum()
47 static double sum(double a, double b, double c, double d) { in sum() argument
48 return a + b + c + d; in sum()
[all …]
/art/test/NonStaticLeafMethods/
DNonStaticLeafMethods.java31 int sum(int a, int b, int c) { in sum() argument
32 return a + b + c; in sum()
34 int sum(int a, int b, int c, int d) { in sum() argument
35 return a + b + c + d; in sum()
37 int sum(int a, int b, int c, int d, int e) { in sum() argument
38 return a + b + c + d + e; in sum()
46 double sum(double a, double b, double c) { in sum() argument
47 return a + b + c; in sum()
49 double sum(double a, double b, double c, double d) { in sum() argument
50 return a + b + c + d; in sum()
[all …]
/art/test/105-invoke/src/
DMain.java27 int virI_III(int a, int b, int c) { in virI_III() argument
28 return a + b + c + 432; in virI_III()
31 int virI_IIII(int a, int b, int c, int d) { in virI_IIII() argument
32 return a + b + c + d + 919; in virI_IIII()
35 int virI_IIIII(int a, int b, int c, int d, int e) { in virI_IIIII() argument
36 return a + b + c + d + e + 1010; in virI_IIIII()
39 int virI_IIIIII(int a, int b, int c, int d, int e, int f) { in virI_IIIIII() argument
40 return a + b + c + d + e + f + 2020; in virI_IIIIII()
51 static int statI_III(int a, int b, int c) { in statI_III() argument
52 return a + b + c + 432; in statI_III()
[all …]
/art/test/042-new-instance/src/
DMain.java36 Class c = Class.forName("LocalClass"); in testClassNewInstance() local
37 Object obj = c.newInstance(); in testClassNewInstance()
46 Class c = Class.forName("otherpackage.PackageAccess"); in testClassNewInstance() local
47 Object obj = c.newInstance(); in testClassNewInstance()
74 Class c = Class.forName("LocalClass"); in testConstructorNewInstance() local
75 Constructor cons = c.getConstructor(new Class[0] /*(Class[])null*/); in testConstructorNewInstance()
86 Class c = Class.forName("LocalClass2"); in testConstructorNewInstance() local
87 Constructor cons = c.getConstructor((Class[]) null); in testConstructorNewInstance()
97 Class c = Class.forName("Main$InnerClass"); in testConstructorNewInstance() local
98 Constructor cons = c.getDeclaredConstructor(new Class<?>[]{Main.class}); in testConstructorNewInstance()
[all …]
/art/test/405-optimizing-long-allocator/src/
DMain.java63 long c = 0; in $opt$TestThreeLive() local
67 c += 2; in $opt$TestThreeLive()
69 return a - b - c; in $opt$TestThreeLive()
75 long c = 0; in $opt$TestFourLive() local
80 c += 2; in $opt$TestFourLive()
89 long c = 0; in $opt$TestMultipleLive() local
97 c++; in $opt$TestMultipleLive()
122 public static long $opt$testSpillInIf(long a, long b, long c) { in $opt$testSpillInIf() argument
127 c++; in $opt$testSpillInIf()
132 return a - b - c - d - e; in $opt$testSpillInIf()
[all …]
/art/test/404-optimizing-allocator/src/
DMain.java57 int c = 0; in $opt$reg$TestThreeLive() local
61 c += 2; in $opt$reg$TestThreeLive()
63 return a - b - c; in $opt$reg$TestThreeLive()
69 int c = 0; in $opt$reg$TestFourLive() local
74 c += 2; in $opt$reg$TestFourLive()
83 int c = 0; in $opt$reg$TestMultipleLive() local
91 c++; in $opt$reg$TestMultipleLive()
116 public static int $opt$reg$testSpillInIf(int a, int b, int c) { in $opt$reg$testSpillInIf() argument
121 c++; in $opt$reg$testSpillInIf()
126 return a - b - c - d - e; in $opt$reg$testSpillInIf()
[all …]
/art/runtime/native/
Djava_lang_reflect_Constructor.cc41 Handle<mirror::Class> c(hs.NewHandle(m->GetDeclaringClass())); in Constructor_newInstance() local
42 if (UNLIKELY(c->IsAbstract())) { in Constructor_newInstance()
46 c->IsInterface() ? "interface" : "abstract class", in Constructor_newInstance()
47 PrettyDescriptor(c.Get()).c_str()); in Constructor_newInstance()
51 if (!Runtime::Current()->GetClassLinker()->EnsureInitialized(c, true, true)) { in Constructor_newInstance()
57 if (!kMovingMethods && c->IsArtMethodClass()) { in Constructor_newInstance()
59 } else if (!kMovingFields && c->IsArtFieldClass()) { in Constructor_newInstance()
61 } else if (!kMovingClasses && c->IsClassClass()) { in Constructor_newInstance()
65 movable ? c->AllocObject(soa.Self()) : c->AllocNonMovableObject(soa.Self()); in Constructor_newInstance()
Djava_lang_Class.cc34 mirror::Class* c = soa.Decode<mirror::Class*>(java_class); in DecodeClass() local
35 DCHECK(c != NULL); in DecodeClass()
36 DCHECK(c->IsClass()); in DecodeClass()
40 return c; in DecodeClass()
66 Handle<mirror::Class> c( in Class_classForName() local
68 if (c.Get() == nullptr) { in Class_classForName()
81 class_linker->EnsureInitialized(c, true, true); in Class_classForName()
83 return soa.AddLocalReference<jclass>(c.Get()); in Class_classForName()
89 mirror::Class* const c = DecodeClass(soa, javaThis); in Class_getNameNative() local
90 return soa.AddLocalReference<jstring>(mirror::Class::ComputeName(hs.NewHandle(c))); in Class_getNameNative()
[all …]
Djava_lang_VMClassLoader.cc37 mirror::Class* c = cl->LookupClass(descriptor.c_str(), descriptor_hash, loader); in VMClassLoader_findLoadedClass() local
38 if (c != nullptr && c->IsResolved()) { in VMClassLoader_findLoadedClass()
39 return soa.AddLocalReference<jclass>(c); in VMClassLoader_findLoadedClass()
44 c = cl->FindClassInPathClassLoader(soa, soa.Self(), descriptor.c_str(), descriptor_hash, in VMClassLoader_findLoadedClass()
46 if (c != nullptr) { in VMClassLoader_findLoadedClass()
47 return soa.AddLocalReference<jclass>(c); in VMClassLoader_findLoadedClass()
/art/runtime/
Dindenter.h33 int_type overflow(int_type c) { in overflow() argument
34 if (UNLIKELY(c == std::char_traits<char>::eof())) { in overflow()
36 return c; in overflow()
48 indent_next_ = (c == '\n'); in overflow()
49 int_type r = out_sbuf_->sputc(c); in overflow()
50 if (UNLIKELY(r != c)) { in overflow()
52 r = out_sbuf_->sputc(c); in overflow()
53 CHECK_EQ(r, c) << "Error writing to buffer. Disk full?"; in overflow()
Dverify_object-inl.h38 mirror::Class* c = obj->GetClass<kVerifyNone>(); in VerifyObject() local
39 failed = failed || !IsAligned<kObjectAlignment>(c); in VerifyObject()
40 failed = failed || !VerifyClassClass(c); in VerifyObject()
49 inline bool VerifyClassClass(mirror::Class* c) { in VerifyClassClass() argument
50 if (UNLIKELY(c == nullptr)) { in VerifyClassClass()
54 mirror::Class* c_c = c->GetClass<kVerifyNone>(); in VerifyClassClass()
Dnative_bridge_art_interface.cc41 mirror::Class* c = soa.Decode<mirror::Class*>(clazz); in GetNativeMethodCount() local
44 for (uint32_t i = 0; i < c->NumDirectMethods(); ++i) { in GetNativeMethodCount()
45 mirror::ArtMethod* m = c->GetDirectMethod(i); in GetNativeMethodCount()
50 for (uint32_t i = 0; i < c->NumVirtualMethods(); ++i) { in GetNativeMethodCount()
51 mirror::ArtMethod* m = c->GetVirtualMethod(i); in GetNativeMethodCount()
65 mirror::Class* c = soa.Decode<mirror::Class*>(clazz); in GetNativeMethods() local
68 for (uint32_t i = 0; i < c->NumDirectMethods(); ++i) { in GetNativeMethods()
69 mirror::ArtMethod* m = c->GetDirectMethod(i); in GetNativeMethods()
81 for (uint32_t i = 0; i < c->NumVirtualMethods(); ++i) { in GetNativeMethods()
82 mirror::ArtMethod* m = c->GetVirtualMethod(i); in GetNativeMethods()
Dcheck_jni.cc261 mirror::Class* c = o->GetClass(); in CheckInstanceFieldID() local
262 if (c->FindInstanceField(f->GetName(), f->GetTypeDescriptor()) == nullptr) { in CheckInstanceFieldID()
309 mirror::Class* c = soa_.Decode<mirror::Class*>(java_class); in CheckStaticFieldID() local
314 if (f->GetDeclaringClass() != c) { in CheckStaticFieldID()
316 fid, PrettyClass(c).c_str()); in CheckStaticFieldID()
335 mirror::Class* c = soa_.Decode<mirror::Class*>(java_class); in CheckStaticMethod() local
336 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckStaticMethod()
338 PrettyMethod(m).c_str(), PrettyClass(c).c_str()); in CheckStaticMethod()
427 jchar c = va_arg(ap, int); in Check() local
428 if (c < 0x7f && c >= ' ') { in Check()
[all …]
Djni_internal_test.cc96 mirror::Class* c = class_linker_->FindPrimitiveClass(descriptor); in GetPrimitiveClass() local
97 CHECK(c != nullptr); in GetPrimitiveClass()
98 return soa.AddLocalReference<jclass>(c); in GetPrimitiveClass()
109 jclass c = env_->FindClass("java/lang/String"); in TEST_F() local
110 ASSERT_NE(c, nullptr); in TEST_F()
111 jobject o = env_->AllocObject(c); in TEST_F()
115 ASSERT_TRUE(env_->IsInstanceOf(o, c)); in TEST_F()
118 ASSERT_EQ(0, env_->GetIntField(o, env_->GetFieldID(c, "count", "I"))); in TEST_F()
119 ASSERT_EQ(0, env_->GetIntField(o, env_->GetFieldID(c, "offset", "I"))); in TEST_F()
120 ASSERT_TRUE(env_->GetObjectField(o, env_->GetFieldID(c, "value", "[C")) == nullptr); in TEST_F()
[all …]
Dclass_linker_test.cc375 CheckOffset(size_t c, const char* j) : cpp_offset(c), java_name(j) {} in CheckOffset()
801 mirror::Class* c; in TEST_F() local
802 c = class_linker_->FindClass(soa.Self(), "Ljava/lang/Boolean;", class_loader); in TEST_F()
803 EXPECT_STREQ("value", c->GetIFields()->Get(0)->GetName()); in TEST_F()
804 c = class_linker_->FindClass(soa.Self(), "Ljava/lang/Byte;", class_loader); in TEST_F()
805 EXPECT_STREQ("value", c->GetIFields()->Get(0)->GetName()); in TEST_F()
806 c = class_linker_->FindClass(soa.Self(), "Ljava/lang/Character;", class_loader); in TEST_F()
807 EXPECT_STREQ("value", c->GetIFields()->Get(0)->GetName()); in TEST_F()
808 c = class_linker_->FindClass(soa.Self(), "Ljava/lang/Double;", class_loader); in TEST_F()
809 EXPECT_STREQ("value", c->GetIFields()->Get(0)->GetName()); in TEST_F()
[all …]
Dutils_test.cc117 mirror::Class* c = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/String;"); in TEST_F() local
118 ASSERT_TRUE(c != NULL); in TEST_F()
119 mirror::Object* o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0); in TEST_F()
127 mirror::Class* c = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/String;"); in TEST_F() local
128 ASSERT_TRUE(c != NULL); in TEST_F()
129 mirror::Object* o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0); in TEST_F()
136 mirror::Class* c = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/String;"); in TEST_F() local
137 ASSERT_TRUE(c != NULL); in TEST_F()
138 mirror::Object* o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0); in TEST_F()
217 mirror::Class* c = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/String;"); in TEST_F() local
[all …]
Dutils.cc245 const char* c = descriptor; in PrettyDescriptor() local
247 while (*c == '[') { in PrettyDescriptor()
249 c++; in PrettyDescriptor()
253 if (*c == 'L') { in PrettyDescriptor()
255 c++; // Skip the 'L'. in PrettyDescriptor()
260 switch (*c) { in PrettyDescriptor()
261 case 'B': c = "byte;"; break; in PrettyDescriptor()
262 case 'C': c = "char;"; break; in PrettyDescriptor()
263 case 'D': c = "double;"; break; in PrettyDescriptor()
264 case 'F': c = "float;"; break; in PrettyDescriptor()
[all …]
/art/compiler/utils/
Dassembler_thumb_test_expected.cc.inc25 " c: ea41 0002 orr.w r0, r1, r2\n",
29 " 1c: eb61 0002 sbc.w r0, r1, r2\n",
35 " 2c: 4048 eors r0, r1\n",
42 " 3c: 4288 cmp r0, r1\n",
67 " 3c: 2055 movs r0, #85 ; 0x55\n",
75 " c: f1a1 1055 sub.w r0, r1, #5570645 ; 0x550055\n",
79 " 1c: f021 1055 bic.w r0, r1, #5570645 ; 0x550055\n",
83 " 2c: f010 1f55 tst.w r0, #5570645 ; 0x550055\n",
93 " c: f04f 4055 mov.w r0, #3573547008 ; 0xd5000000\n",
105 " c: 0128 lsls r0, r5, #4\n",
[all …]
/art/runtime/mirror/
Dobject_test.cc166 Class* c = class_linker_->FindSystemClass(soa.Self(), "[I"); in TEST_F() local
169 hs.NewHandle(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSize(), in TEST_F()
171 EXPECT_TRUE(c == a->GetClass()); in TEST_F()
174 c = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"); in TEST_F()
175 a.Assign(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSize(), in TEST_F()
177 EXPECT_TRUE(c == a->GetClass()); in TEST_F()
180 c = class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Object;"); in TEST_F()
181 a.Assign(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSize(), in TEST_F()
183 EXPECT_TRUE(c == a->GetClass()); in TEST_F()
189 Class* c = class_linker_->FindSystemClass(soa.Self(), "[B"); in TEST_F() local
[all …]
Dobject.cc87 Class* c = src->GetClass(); in CopyObject() local
88 if (c->IsArrayClass()) { in CopyObject()
89 if (!c->GetComponentType()->IsPrimitive()) { in CopyObject()
96 if (c->IsFinalizable()) { in CopyObject()
200 Class* c = GetClass(); in CheckFieldAssignmentImpl() local
203 !runtime->GetHeap()->IsObjectValidationEnabled() || !c->IsResolved()) { in CheckFieldAssignmentImpl()
206 for (Class* cur = c; cur != NULL; cur = cur->GetSuperClass()) { in CheckFieldAssignmentImpl()
222 if (c->IsArrayClass()) { in CheckFieldAssignmentImpl()
243 << " of type " << PrettyDescriptor(c) << " at offset " << field_offset; in CheckFieldAssignmentImpl()
/art/test/401-optimizing-compiler/src/
DMain.java124 static int $opt$TestInvokeWith3Parameters(int a, int b, int c) { in $opt$TestInvokeWith3Parameters() argument
125 return a - b - c; in $opt$TestInvokeWith3Parameters()
128 static int $opt$TestInvokeWith5Parameters(int a, int b, int c, int d, int e) { in $opt$TestInvokeWith5Parameters() argument
129 return a - b - c - d - e; in $opt$TestInvokeWith5Parameters()
132 static int $opt$TestInvokeWith7Parameters(int a, int b, int c, int d, int e, int f, int g) { in $opt$TestInvokeWith7Parameters() argument
133 return a - b - c - d - e - f - g; in $opt$TestInvokeWith7Parameters()
176 public static void printStaticMethodWith5Args(int a, int b, int c, int d, int e) { in printStaticMethodWith5Args() argument
178 + a + " " + b + " " + c + " " + d + " " + e); in printStaticMethodWith5Args()
181 public static void printStaticMethodWith7Args(int a, int b, int c, int d, int e, int f, int g) { in printStaticMethodWith7Args() argument
183 + a + " " + b + " " + c + " " + d + " " + e + " " + f + " " + g); in printStaticMethodWith7Args()
/art/test/700-LoadArgRegs/
Dexpected.txt23 a, b, c
24 a, b, c, d
25 a, b, c, d, e
26 a, b, c, d, e, f
27 a, b, c, d, e, f, g
/art/test/027-arithmetic/src/
DMain.java55 long c = 0x33; in shiftTest2() local
62 long result = ((a << 56) | (b << 48) | (c << 40) | (d << 32) | in shiftTest2()
134 char c = 0xfffc; in unsignedShiftTest() local
139 c >>>= 4; in unsignedShiftTest()
142 System.out.println("b=" + b + ", s=" + s + ", c=" + (int)c + ", i=" +i); in unsignedShiftTest()
145 + ", c=0x" + Integer.toHexString((int)c) in unsignedShiftTest()
/art/test/403-optimizing-long/src/
DMain.java96 static long $opt$TakeOneLong4(int a, int b, int c, long l) { in $opt$TakeOneLong4() argument
100 static long $opt$TakeOneLong5(int a, int b, int c,int d, long l) { in $opt$TakeOneLong5() argument
108 static long $opt$AddThreeLongs(long a, long b, long c) { in $opt$AddThreeLongs() argument
109 return a + b + c; in $opt$AddThreeLongs()

12345