Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 338) sorted by relevance

12345678910>>...14

/art/test/660-checker-simd-sad-short3/src/
DMain.java47 private static int sadShort2IntParamRight(short[] s, short param) { in sadShort2IntParamRight() argument
49 for (int i = 0; i < s.length; i++) { in sadShort2IntParamRight()
50 sad += Math.abs(s[i] - param); in sadShort2IntParamRight()
78 private static int sadShort2IntParamLeft(short[] s, short param) { in sadShort2IntParamLeft() argument
80 for (int i = 0; i < s.length; i++) { in sadShort2IntParamLeft()
81 sad += Math.abs(param - s[i]); in sadShort2IntParamLeft()
109 private static int sadShort2IntConstRight(short[] s) { in sadShort2IntConstRight() argument
111 for (int i = 0; i < s.length; i++) { in sadShort2IntConstRight()
112 sad += Math.abs(s[i] - 32767); in sadShort2IntConstRight()
140 private static int sadShort2IntConstLeft(short[] s) { in sadShort2IntConstLeft() argument
[all …]
/art/test/004-StackWalk/src/
DMain.java64 String s = new String(); in shlemiel() local
65 s += s0; in shlemiel()
66 s += s1; in shlemiel()
67 s += s2; in shlemiel()
68 s += s3; in shlemiel()
69 s += s4; in shlemiel()
70 s += s5; in shlemiel()
71 s += s6; in shlemiel()
72 s += s7; in shlemiel()
73 s += s8; in shlemiel()
[all …]
/art/test/684-checker-simd-dotprod/src/other/
DTestByte.java52 int s = 1; in testDotProdSimple() local
55 s += temp; in testDotProdSimple()
57 return s - 1; in testDotProdSimple()
93 int s = 1; in testDotProdComplex() local
96 s += temp; in testDotProdComplex()
98 return s - 1; in testDotProdComplex()
127 int s = 1; in testDotProdSimpleUnsigned() local
130 s += temp; in testDotProdSimpleUnsigned()
132 return s - 1; in testDotProdSimpleUnsigned()
168 int s = 1; in testDotProdComplexUnsigned() local
[all …]
DTestCharShort.java52 int s = 1; in testDotProdSimple() local
55 s += temp; in testDotProdSimple()
57 return s - 1; in testDotProdSimple()
93 int s = 1; in testDotProdComplex() local
96 s += temp; in testDotProdComplex()
98 return s - 1; in testDotProdComplex()
127 int s = 1; in testDotProdSimpleUnsigned() local
130 s += temp; in testDotProdSimpleUnsigned()
132 return s - 1; in testDotProdSimpleUnsigned()
168 int s = 1; in testDotProdComplexUnsigned() local
[all …]
DTestVarious.java51 int s = 1; in testDotProdConstRight() local
54 s += temp; in testDotProdConstRight()
56 return s; in testDotProdConstRight()
86 int s = 1; in testDotProdConstLeft() local
89 s += temp; in testDotProdConstLeft()
91 return s; in testDotProdConstLeft()
129 int s = 1; in testDotProdLoopInvariantConvRight() local
132 s += temp; in testDotProdLoopInvariantConvRight()
134 return s; in testDotProdLoopInvariantConvRight()
140 int s = 1; in testDotProdByteToChar() local
[all …]
/art/benchmark/string-indexof/src/
DStringIndexOfBenchmark.java22 String s = string36; in timeIndexOf0() local
24 $noinline$indexOf(s, c); in timeIndexOf0()
30 String s = string36; in timeIndexOf1() local
32 $noinline$indexOf(s, c); in timeIndexOf1()
38 String s = string36; in timeIndexOf2() local
40 $noinline$indexOf(s, c); in timeIndexOf2()
46 String s = string36; in timeIndexOf3() local
48 $noinline$indexOf(s, c); in timeIndexOf3()
54 String s = string36; in timeIndexOf4() local
56 $noinline$indexOf(s, c); in timeIndexOf4()
[all …]
/art/libartbase/base/
Dmemory_tool.h34 # define MEMORY_TOOL_MAKE_NOACCESS(p, s) __asan_poison_memory_region(p, s) argument
35 # define MEMORY_TOOL_MAKE_UNDEFINED(p, s) __asan_unpoison_memory_region(p, s) argument
36 # define MEMORY_TOOL_MAKE_DEFINED(p, s) __asan_unpoison_memory_region(p, s) argument
39 # define MEMORY_TOOL_MAKE_NOACCESS(p, s) do { (void)(p); (void)(s); } while (0)
40 # define MEMORY_TOOL_MAKE_UNDEFINED(p, s) do { (void)(p); (void)(s); } while (0)
41 # define MEMORY_TOOL_MAKE_DEFINED(p, s) do { (void)(p); (void)(s); } while (0)
56 # define MEMORY_TOOL_MAKE_NOACCESS(p, s) do { (void)(p); (void)(s); } while (0)
57 # define MEMORY_TOOL_MAKE_UNDEFINED(p, s) do { (void)(p); (void)(s); } while (0)
58 # define MEMORY_TOOL_MAKE_DEFINED(p, s) do { (void)(p); (void)(s); } while (0)
Dindenter.h40 std::streamsize xsputn(const char* s, std::streamsize n) override { in xsputn() argument
42 const char* eol = static_cast<const char*>(memchr(s, '\n', n)); in xsputn()
44 size_t to_write = eol + 1 - s; in xsputn()
45 Write(s, to_write); in xsputn()
46 s += to_write; in xsputn()
49 eol = static_cast<const char*>(memchr(s, '\n', n)); in xsputn()
52 Write(s, n); in xsputn()
72 void Write(const char* s, std::streamsize n) { in Write() argument
82 RawWrite(s, n); in Write()
85 void RawWrite(const char* s, std::streamsize n) { in RawWrite() argument
[all …]
/art/test/478-checker-clinit-check-pruning/
Dexpected.txt1 Main$ClassWithClinit1's static initializer
2 Main$ClassWithClinit2's static initializer
3 Main$ClassWithClinit3Static's static initializer
4 Main$ClassWithClinit3Instance's static initializer
5 Main$ClassWithClinit4Static's static initializer
6 Main$ClassWithClinit4Instance's static initializer
7 Main$ClassWithClinit5's static initializer
8 Main$SubClassOfClassWithoutClinit5's static initializer
9 Main$ClassWithClinit6's static initializer
10 Main$SubClassOfClassWithoutClinit6's static initializer
[all …]
/art/test/569-checker-pattern-replacement/src/
DMain.java34 public static void nop(Second s) { in nop() argument
35 s.nop(); in nop()
71 public static long returnArg1(Second s, long value) { in returnArg1() argument
72 return s.returnArg1(value); in returnArg1()
105 public static int return7(Second s) { in return7() argument
106 return s.return7(null); in return7()
139 public static Object returnNull(Second s) { in returnNull() argument
140 return s.returnNull(); in returnNull()
152 public static int getInt(Second s) { in getInt() argument
153 return s.getInstanceIntField(); in getInt()
[all …]
/art/test/ProfileTestMultiDex/
DMain.java30 public int inlineMonomorphic(Super s) { in inlineMonomorphic() argument
31 return s.getValue(); in inlineMonomorphic()
34 public int inlinePolymorphic(Super s) { in inlinePolymorphic() argument
35 return s.getValue(); in inlinePolymorphic()
38 public int inlineMegamorphic(Super s) { in inlineMegamorphic() argument
39 return s.getValue(); in inlineMegamorphic()
42 public int inlineMissingTypes(Super s) { in inlineMissingTypes() argument
43 return s.getValue(); in inlineMissingTypes()
46 public int noInlineCache(Super s) { in noInlineCache() argument
47 return s.getValue(); in noInlineCache()
/art/libdexfile/dex/
Ddescriptors_names.cc99 std::string MangleForJni(const std::string& s) { in MangleForJni() argument
101 size_t char_count = CountModifiedUtf8Chars(s.c_str()); in MangleForJni()
102 const char* cp = &s[0]; in MangleForJni()
265 bool IsValidMemberName(const char* s) { in IsValidMemberName() argument
268 switch (*s) { in IsValidMemberName()
274 s++; in IsValidMemberName()
279 switch (*s) { in IsValidMemberName()
283 return angle_name && s[1] == '\0'; in IsValidMemberName()
286 if (!IsValidPartOfMemberNameUtf8(&s)) { in IsValidMemberName()
294 static bool IsValidClassName(const char* s) { in IsValidClassName() argument
[all …]
Ddescriptors_names.h37 std::string MangleForJni(const std::string& s);
53 bool IsValidBinaryClassName(const char* s); // "java.lang.String"
54 bool IsValidJniClassName(const char* s); // "java/lang/String"
55 bool IsValidDescriptor(const char* s); // "Ljava/lang/String;"
59 bool IsValidMemberName(const char* s);
/art/runtime/
Dintern_table.cc92 ObjPtr<mirror::String> InternTable::LookupWeak(Thread* self, ObjPtr<mirror::String> s) { in LookupWeak() argument
94 return LookupWeakLocked(s); in LookupWeak()
97 ObjPtr<mirror::String> InternTable::LookupStrong(Thread* self, ObjPtr<mirror::String> s) { in LookupStrong() argument
99 return LookupStrongLocked(s); in LookupStrong()
113 ObjPtr<mirror::String> InternTable::LookupWeakLocked(ObjPtr<mirror::String> s) { in LookupWeakLocked() argument
114 return weak_interns_.Find(s); in LookupWeakLocked()
117 ObjPtr<mirror::String> InternTable::LookupStrongLocked(ObjPtr<mirror::String> s) { in LookupStrongLocked() argument
118 return strong_interns_.Find(s); in LookupStrongLocked()
127 ObjPtr<mirror::String> InternTable::InsertStrong(ObjPtr<mirror::String> s) { in InsertStrong() argument
130 runtime->RecordStrongStringInsertion(s); in InsertStrong()
[all …]
/art/test/003-omnibus-opcodes/src/
DInternedString.java29 String s = "blah"; in makeWeakString() local
30 s = s + s; in makeWeakString()
31 WeakReference<String> strRef = new WeakReference<String>(s.intern()); in makeWeakString()
51 String s = CONST; in testImmortalInternedString() local
53 strRef = new WeakReference<String>(s.intern()); in testImmortalInternedString()
55 s = ""; in testImmortalInternedString()
/art/test/660-checker-simd-sad-short/src/
DMain.java41 short s = s1[i]; in sadShort2ShortAlt() local
43 sad += s >= p ? s - p : p - s; in sadShort2ShortAlt()
52 short s = s1[i]; in sadShort2ShortAlt2() local
54 int x = s - p; in sadShort2ShortAlt2()
118 short s = s1[i]; in sadShort2IntAlt() local
120 sad += s >= p ? s - p : p - s; in sadShort2IntAlt()
151 short s = s1[i]; in sadShort2IntAlt2() local
153 int x = s - p; in sadShort2IntAlt2()
184 private static int sadShort2IntConstant1(short[] s) { in sadShort2IntConstant1() argument
186 for (int i = 0; i < s.length; i++) { in sadShort2IntConstant1()
[all …]
/art/test/569-checker-pattern-replacement/src-multidex/
DSecond.java62 public static int staticGetInstanceIntField(Second s) { in staticGetInstanceIntField() argument
63 return s.instanceIntField; in staticGetInstanceIntField()
66 public double getInstanceDoubleFieldFromParam(Second s) { in getInstanceDoubleFieldFromParam() argument
67 return s.instanceDoubleField; in getInstanceDoubleFieldFromParam()
83 public static void staticSetInstanceLongField(Second s, long value) { in staticSetInstanceLongField() argument
84 s.instanceLongField = value; in staticSetInstanceLongField()
87 public void setInstanceLongFieldThroughParam(Second s, long value) { in setInstanceLongFieldThroughParam() argument
88 s.instanceLongField = value; in setInstanceLongFieldThroughParam()
/art/test/021-string2/src/
DMain.java508 for (String s : suffixes) { in testIndexOf()
509 String full = p + c + s; in testIndexOf()
755 public static boolean $noinline$equalsConstString0(String s) { in $noinline$equalsConstString0() argument
756 return s.equals(""); in $noinline$equalsConstString0()
759 public static boolean $noinline$equalsConstString3(String s) { in $noinline$equalsConstString3() argument
760 return s.equals("012"); in $noinline$equalsConstString3()
763 public static boolean $noinline$equalsConstString7(String s) { in $noinline$equalsConstString7() argument
764 return s.equals("0123456"); in $noinline$equalsConstString7()
767 public static boolean $noinline$equalsConstString12(String s) { in $noinline$equalsConstString12() argument
768 return s.equals("012345678901"); in $noinline$equalsConstString12()
[all …]
/art/test/536-checker-intrinsic-optimization/src/
DMain.java125 static public int $opt$noinline$getStringLength(String s) { in $opt$noinline$getStringLength() argument
127 return s.length(); in $opt$noinline$getStringLength()
145 static public boolean $opt$noinline$isStringEmpty(String s) { in $opt$noinline$isStringEmpty() argument
147 return s.isEmpty(); in $opt$noinline$isStringEmpty()
166 static public char $opt$noinline$stringCharAt(String s, int pos) { in $opt$noinline$stringCharAt() argument
168 return s.charAt(pos); in $opt$noinline$stringCharAt()
193 static public char $opt$noinline$stringCharAtCatch(String s, int pos) { in $opt$noinline$stringCharAtCatch() argument
196 return s.charAt(pos); in $opt$noinline$stringCharAtCatch()
223 static public int $opt$noinline$stringSumChars(String s) { in $opt$noinline$stringSumChars() argument
226 int len = s.length(); in $opt$noinline$stringSumChars()
[all …]
/art/test/450-checker-types/src/
DMain.java86 Super s = new SubclassA(); in testSimpleRemove() local
87 ((SubclassA)s).$noinline$g(); in testSimpleRemove()
95 public void testSimpleKeep(Super s) { in testSimpleKeep() argument
96 ((SubclassA)s).$noinline$f(); in testSimpleKeep()
105 Object s = SubclassA.class; in testClassRemove() local
106 return ((Class<?>)s).getName(); in testClassRemove()
115 Object s = SubclassA.class; in testClassKeep() local
116 return ((SubclassA)s).$noinline$h(); in testClassKeep()
125 Super s; in testIfRemove() local
127 s = new SubclassA(); in testIfRemove()
[all …]
/art/compiler/optimizing/
Dside_effects_test.cc181 SideEffects s = SideEffects::None(); in TEST() local
184 s = s.Union(SideEffects::FieldWriteOfType(type, /* is_volatile= */ false)); in TEST()
185 s = s.Union(SideEffects::ArrayWriteOfType(type)); in TEST()
186 s = s.Union(SideEffects::FieldReadOfType(type, /* is_volatile= */ false)); in TEST()
187 s = s.Union(SideEffects::ArrayReadOfType(type)); in TEST()
189 EXPECT_TRUE(s.DoesAllReadWrite()); in TEST()
256 SideEffects s = SideEffects::None(); in TEST() local
257 s = s.Union(SideEffects::FieldWriteOfType(DataType::Type::kUint16, /* is_volatile= */ false)); in TEST()
258 s = s.Union(SideEffects::FieldWriteOfType(DataType::Type::kInt64, /* is_volatile= */ false)); in TEST()
259 s = s.Union(SideEffects::ArrayWriteOfType(DataType::Type::kInt16)); in TEST()
[all …]
Dloop_optimization_test.cc94 std::string s; in LoopStructureRecurse() local
96 s.append("["); in LoopStructureRecurse()
97 s.append(LoopStructureRecurse(node->inner)); in LoopStructureRecurse()
98 s.append("]"); in LoopStructureRecurse()
100 return s; in LoopStructureRecurse()
132 HBasicBlock* s = return_block_; in TEST_F() local
134 s = AddLoop(b, s); in TEST_F()
135 b = s->GetSuccessors()[0]; in TEST_F()
143 HBasicBlock* s = return_block_; in TEST_F() local
145 b = AddLoop(b, s); in TEST_F()
[all …]
/art/test/921-hello-failure/src/
DIface4.java18 default void sayHiTwice(String s) { in sayHiTwice() argument
19 sayHi(s); in sayHiTwice()
20 sayHi(s); in sayHiTwice()
22 void sayHi(String s); in sayHi() argument
/art/test/660-checker-simd-sad-byte/src/
DMain.java37 byte s = b1[i]; in sadByte2ByteAlt()
39 sad += s >= p ? s - p : p - s; in sadByte2ByteAlt()
48 byte s = b1[i]; in sadByte2ByteAlt2()
50 int x = s - p; in sadByte2ByteAlt2()
70 byte s = b1[i]; in sadByte2ShortAlt()
72 sad += s >= p ? s - p : p - s; in sadByte2ShortAlt()
81 byte s = b1[i]; in sadByte2ShortAlt2()
83 int x = s - p; in sadByte2ShortAlt2()
147 byte s = b1[i]; in sadByte2IntAlt()
149 sad += s >= p ? s - p : p - s; in sadByte2IntAlt()
[all …]
/art/test/655-checker-simd-arm-opt/src/
DMain.java51 …private static void encodableConstants(byte[] b, short[] s, char[] c, int[] a, long[] l, float[] f… in encodableConstants() argument
56 s[i] += 2; in encodableConstants()
75 …private static int sumArray(byte[] b, short[] s, char[] c, int[] a, long[] l, float[] f, double[] … in sumArray() argument
78 sum += b[i] + s[i] + c[i] + a[i] + l[i] + f[i] + d[i]; in sumArray()
87 short[] s = new short[ARRAY_SIZE]; in main() local
94 encodableConstants(b, s, c, a, l, f, d); in main()
95 expectEquals(3700, sumArray(b, s, c, a, l, f, d)); in main()

12345678910>>...14