/art/test/704-multiply-accumulate/src/ |
D | Main.java | 25 public static void expectEquals(long expected, long result) { in expectEquals() argument 26 if (expected != result) { in expectEquals() 27 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals() 31 public static void expectEquals(int expected, int result) { in expectEquals() argument 32 if (expected != result) { in expectEquals() 33 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals() 38 int result = 0; in test_int() local 47 result += i*i; in test_int() 48 result = i - tmp; in test_int() 50 expectEquals(result, -891); in test_int() [all …]
|
/art/test/530-checker-loops1/src/ |
D | Main.java | 35 int result = 0; in linear() local 37 result += x[i]; in linear() 39 return result; in linear() 49 int result = 0; in linearDown() local 51 result += x[i]; in linearDown() 53 return result; in linearDown() 63 int result = 0; in linearObscure() local 66 result += x[k - 5]; in linearObscure() 68 return result; in linearObscure() 78 int result = 0; in linearVeryObscure() local [all …]
|
/art/test/110-field-access/src/ |
D | Main.java | 33 int result = 0; in timeField() local 35 result = intVal; in timeField() 37 return result; in timeField() 40 int result = 0; in timeFieldFinal() local 42 result = finalIntVal; in timeFieldFinal() 44 return result; in timeFieldFinal() 47 int result = 0; in timeFieldStatic() local 49 result = staticIntVal; in timeFieldStatic() 51 return result; in timeFieldStatic() 54 int result = 0; in timeFieldStaticFinal() local [all …]
|
/art/test/499-bce-phi-array-length/src/ |
D | Main.java | 19 int result = 0; in foo() local 23 result += array[i]; in foo() 29 result += array[j]; in foo() 32 return result; in foo() 36 int result = 0; in bar() local 38 result += array[i]; in bar() 40 result += array[j]; in bar() 44 result += array[0]; in bar() 45 result += array[1]; in bar() 46 result += array[2]; in bar() [all …]
|
/art/runtime/verifier/ |
D | reg_type_cache-inl.h | 36 const RegType* result = entries_[id]; in GetFromId() local 37 DCHECK(result != nullptr); in GetFromId() 38 return *result; in GetFromId() 91 const ConstantType& result = FromCat1Const(std::numeric_limits<jbyte>::min(), false); in ByteConstant() local 92 DCHECK(result.IsImpreciseConstant()); in ByteConstant() 93 return *down_cast<const ImpreciseConstType*>(&result); in ByteConstant() 98 const ConstantType& result = FromCat1Const(jchar_max, false); in CharConstant() local 99 DCHECK(result.IsImpreciseConstant()); in CharConstant() 100 return *down_cast<const ImpreciseConstType*>(&result); in CharConstant() 104 const ConstantType& result = FromCat1Const(std::numeric_limits<jshort>::min(), false); in ShortConstant() local [all …]
|
/art/test/445-checker-licm/src/ |
D | Main.java | 34 int result = 0; in div() local 36 result += staticField / 42; in div() 38 return result; in div() 51 int result = 0; in innerDiv() local 54 result += staticField / 42; in innerDiv() 57 return result; in innerDiv() 67 int result = 0; in innerMul() local 73 result += staticField * i; in innerMul() 76 return result; in innerMul() 86 int result = 0; in divByA() local [all …]
|
/art/test/563-checker-fakestring/src/ |
D | Main.java | 48 String result = (String) m.invoke(null, new Object[] { testData }); in main() local 49 assertEqual(testString, result); in main() 73 String result = (String) m.invoke(null, new Object[] { testData }); in main() local 74 assertEqual(testString, result); in main() 79 String result = (String) m.invoke(null, new Object[] { testData, true }); in main() local 80 assertEqual(testString, result); in main() 81 result = (String) m.invoke(null, new Object[] { testData, false }); in main() 82 assertEqual(testString, result); in main() 86 String result = (String) m.invoke(null, new Object[] { testData, true }); in main() local 87 assertEqual(testString, result); in main() [all …]
|
/art/test/530-checker-lse3/src/ |
D | Main.java | 28 int result = (Integer)m.invoke(null, 0x12345678); in main() local 29 if (result != (0x78 + 0x78)) { in main() 30 throw new Error("Expected 240, got " + result); in main() 33 result = (Integer)m.invoke(null, 0xdeadbeef); in main() 34 if (result != 0xdeadbeef) { in main() 35 throw new Error("Expected 0xdeadbeef, got " + result); in main() 49 result = (Integer)m.invoke(null, 300); in main() 50 assertIntEquals(result, 300); in main() 51 result = (Integer)m.invoke(null, 301); in main() 52 assertIntEquals(result, 90); in main() [all …]
|
/art/libartbase/base/ |
D | leb128.h | 35 int result = *(ptr++); in DecodeUnsignedLeb128() local 36 if (UNLIKELY(result > 0x7f)) { in DecodeUnsignedLeb128() 38 result = (result & 0x7f) | ((cur & 0x7f) << 7); in DecodeUnsignedLeb128() 41 result |= (cur & 0x7f) << 14; in DecodeUnsignedLeb128() 44 result |= (cur & 0x7f) << 21; in DecodeUnsignedLeb128() 49 result |= cur << 28; in DecodeUnsignedLeb128() 55 return static_cast<uint32_t>(result); in DecodeUnsignedLeb128() 69 int result = *(ptr++); in DecodeUnsignedLeb128Checked() local 70 if (UNLIKELY(result > 0x7f)) { in DecodeUnsignedLeb128Checked() 75 result = (result & 0x7f) | ((cur & 0x7f) << 7); in DecodeUnsignedLeb128Checked() [all …]
|
/art/libdexfile/dex/ |
D | modifiers.cc | 24 std::string result; in PrettyJavaAccessFlags() local 26 result += "public "; in PrettyJavaAccessFlags() 29 result += "protected "; in PrettyJavaAccessFlags() 32 result += "private "; in PrettyJavaAccessFlags() 35 result += "final "; in PrettyJavaAccessFlags() 38 result += "static "; in PrettyJavaAccessFlags() 41 result += "abstract "; in PrettyJavaAccessFlags() 44 result += "interface "; in PrettyJavaAccessFlags() 47 result += "transient "; in PrettyJavaAccessFlags() 50 result += "volatile "; in PrettyJavaAccessFlags() [all …]
|
D | descriptors_names.cc | 29 void AppendPrettyDescriptor(const char* descriptor, std::string* result) { in AppendPrettyDescriptor() argument 56 default: result->append(descriptor); return; in AppendPrettyDescriptor() 68 result->push_back(ch); in AppendPrettyDescriptor() 72 result->append("[]"); in AppendPrettyDescriptor() 77 std::string result; in PrettyDescriptor() local 78 AppendPrettyDescriptor(descriptor, &result); in PrettyDescriptor() 79 return result; in PrettyDescriptor() 100 std::string result; in MangleForJni() local 106 result.push_back(ch); in MangleForJni() 108 result += "_"; in MangleForJni() [all …]
|
D | utf.cc | 240 size_t result = 0; in CountUtf8Bytes() local 245 result++; in CountUtf8Bytes() 249 result += 2; in CountUtf8Bytes() 260 result += 4; in CountUtf8Bytes() 265 result += 3; in CountUtf8Bytes() 267 return result; in CountUtf8Bytes() 275 std::string result; in PrintableChar() local 276 result += '\''; in PrintableChar() 278 StringAppendF(&result, "\\u%04x", ch); in PrintableChar() 280 result += static_cast<std::string::value_type>(ch); in PrintableChar() [all …]
|
/art/test/402-optimizing-control-flow/src/ |
D | Main.java | 29 int result = $opt$testIfEq1(42); in main() local 30 expectEquals(42, result); in main() 32 result = $opt$testIfEq2(42); in main() 33 expectEquals(7, result); in main() 35 result = $opt$testWhileLoop(42); in main() 36 expectEquals(45, result); in main() 38 result = $opt$testDoWhileLoop(42); in main() 39 expectEquals(45, result); in main() 41 result = $opt$testForLoop(42); in main() 42 expectEquals(44, result); in main() [all …]
|
/art/test/593-checker-boolean-2-integral-conv/src/ |
D | Main.java | 144 private static void expectEqualsByte(byte expected, byte result) { in expectEqualsByte() argument 145 if (expected != result) { in expectEqualsByte() 146 throw new Error("Expected: " + expected + ", found: " + result); in expectEqualsByte() 150 private static void expectEqualsShort(short expected, short result) { in expectEqualsShort() argument 151 if (expected != result) { in expectEqualsShort() 152 throw new Error("Expected: " + expected + ", found: " + result); in expectEqualsShort() 156 private static void expectEqualsChar(char expected, char result) { in expectEqualsChar() argument 157 if (expected != result) { in expectEqualsChar() 158 throw new Error("Expected: " + expected + ", found: " + result); in expectEqualsChar() 162 private static void expectEqualsInt(int expected, int result) { in expectEqualsInt() argument [all …]
|
/art/test/530-checker-loops2/src/ |
D | Main.java | 57 int result = 0; in periodicIdiom() local 59 result += x[k]; in periodicIdiom() 62 return result; in periodicIdiom() 76 int result = 0; in periodicSequence2() local 78 result += x[k]; in periodicSequence2() 83 return result; in periodicSequence2() 102 int result = 0; in periodicSequence4() local 104 result += x[k] + x[l] + x[m] + x[n]; // all used at once in periodicSequence4() 111 return result; in periodicSequence4() 124 int result = 0; in periodicXorSequence() local [all …]
|
/art/test/2021-InvokeStatic-Inlining/src/ |
D | Main.java | 20 public static void assertIntEquals(int expected, int result) { in assertIntEquals() argument 21 if (expected != result) { in assertIntEquals() 22 throw new Error("Expected: " + expected + ", found: " + result); in assertIntEquals() 26 public static void assertDoubleEquals(double expected, double result) { in assertDoubleEquals() argument 27 if (expected != result) { in assertDoubleEquals() 28 throw new Error("Expected: " + expected + ", found: " + result); in assertDoubleEquals() 32 public static void assertFloatEquals(float expected, float result) { in assertFloatEquals() argument 33 if (expected != result) { in assertFloatEquals() 34 throw new Error("Expected: " + expected + ", found: " + result); in assertFloatEquals() 38 public static void assertLongEquals(long expected, long result) { in assertLongEquals() argument [all …]
|
/art/test/2020-InvokeVirtual-Inlining/src/ |
D | Main.java | 20 public static void assertIntEquals(int expected, int result) { in assertIntEquals() argument 21 if (expected != result) { in assertIntEquals() 22 throw new Error("Expected: " + expected + ", found: " + result); in assertIntEquals() 26 public static void assertDoubleEquals(double expected, double result) { in assertDoubleEquals() argument 27 if (expected != result) { in assertDoubleEquals() 28 throw new Error("Expected: " + expected + ", found: " + result); in assertDoubleEquals() 32 public static void assertFloatEquals(float expected, float result) { in assertFloatEquals() argument 33 if (expected != result) { in assertFloatEquals() 34 throw new Error("Expected: " + expected + ", found: " + result); in assertFloatEquals() 38 public static void assertLongEquals(long expected, long result) { in assertLongEquals() argument [all …]
|
/art/test/567-checker-builder-intrinsics/src/ |
D | TestFpAbs.java | 135 private static void expectEquals32(int expected, int result) { in expectEquals32() argument 136 if (expected != result) { in expectEquals32() 138 + ", found: 0x" + Integer.toHexString(result)); in expectEquals32() 143 private static void expectEqualsNaN32(int expected, int result) { in expectEqualsNaN32() argument 144 if (expected != result && (expected | SPQUIET) != result) { in expectEqualsNaN32() 148 if (expected == (result & Integer.MAX_VALUE)) { in expectEqualsNaN32() 153 + ", found: 0x" + Integer.toHexString(result)); in expectEqualsNaN32() 157 private static void expectEquals64(long expected, long result) { in expectEquals64() argument 158 if (expected != result) { in expectEquals64() 160 + ", found: 0x" + Long.toHexString(result)); in expectEquals64() [all …]
|
/art/test/529-checker-unresolved/src/ |
D | Main.java | 214 public static void expectEquals(byte expected, byte result) { in expectEquals() argument 215 if (expected != result) { in expectEquals() 216 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals() 220 public static void expectEquals(char expected, char result) { in expectEquals() argument 221 if (expected != result) { in expectEquals() 222 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals() 226 public static void expectEquals(int expected, int result) { in expectEquals() argument 227 if (expected != result) { in expectEquals() 228 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals() 232 public static void expectEquals(long expected, long result) { in expectEquals() argument [all …]
|
/art/runtime/ |
D | reflection_test.cc | 155 JValue result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod() local 156 EXPECT_EQ(0, result.GetB()); in InvokeIdentityByteMethod() 159 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod() 160 EXPECT_EQ(-1, result.GetB()); in InvokeIdentityByteMethod() 163 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod() 164 EXPECT_EQ(SCHAR_MAX, result.GetB()); in InvokeIdentityByteMethod() 168 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod() 169 EXPECT_EQ(SCHAR_MIN, result.GetB()); in InvokeIdentityByteMethod() 181 JValue result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityIntMethod() local 182 EXPECT_EQ(0, result.GetI()); in InvokeIdentityIntMethod() [all …]
|
/art/test/923-monitors/ |
D | monitors.cc | 43 jvmtiError result = jvmti_env->CreateRawMonitor("placeholder", &id); in Java_art_Test923_createRawMonitor() local 44 if (JvmtiErrorToException(env, jvmti_env, result)) { in Java_art_Test923_createRawMonitor() 52 jvmtiError result = jvmti_env->DestroyRawMonitor(LongToMonitor(l)); in Java_art_Test923_destroyRawMonitor() local 53 JvmtiErrorToException(env, jvmti_env, result); in Java_art_Test923_destroyRawMonitor() 58 jvmtiError result = jvmti_env->RawMonitorEnter(LongToMonitor(l)); in Java_art_Test923_rawMonitorEnter() local 59 JvmtiErrorToException(env, jvmti_env, result); in Java_art_Test923_rawMonitorEnter() 64 jvmtiError result = jvmti_env->RawMonitorExit(LongToMonitor(l)); in Java_art_Test923_rawMonitorExit() local 65 JvmtiErrorToException(env, jvmti_env, result); in Java_art_Test923_rawMonitorExit() 70 jvmtiError result = jvmti_env->RawMonitorWait(LongToMonitor(l), millis); in Java_art_Test923_rawMonitorWait() local 71 JvmtiErrorToException(env, jvmti_env, result); in Java_art_Test923_rawMonitorWait() [all …]
|
/art/runtime/interpreter/mterp/x86_64/ |
D | arithmetic.S | 1 %def bindiv(result="", second="", tmp="", wide="", suffix="", rem="0", ext="cdq"): 25 SET_WIDE_VREG $result, rINSTq # eax <- vBB 27 SET_VREG $result, rINSTq # eax <- vBB 32 xor${suffix} $result, $result 34 neg${suffix} $result 39 mov${suffix} $tmp, $result 41 shr${suffix} $$63, $result 43 shr${suffix} $$31, $result 45 add${suffix} $tmp, $result 46 and${suffix} $$-2, $result [all …]
|
/art/test/723-string-init-range/src/ |
D | Main.java | 25 String result = (String)m.invoke(null, expected); in main() local 26 if (!expected.equals(result)) { in main() 27 throw new Error("Expected '" + expected + "', got " + result); in main() 32 result = (String)m.invoke(null, byteArray, 0, 0, 5); in main() 33 if (!expected.equals(result)) { in main() 34 throw new Error("Expected '" + expected + "', got " + result); in main() 38 result = (String)m.invoke(null, expected); in main() 39 if (!expected.equals(result)) { in main() 40 throw new Error("Expected '" + expected + "', got " + result); in main()
|
/art/test/570-checker-osr-locals/src/ |
D | Main.java | 72 int result = (int) c.getDeclaredMethod("weirdLoop").invoke(null); in runSmaliTest() local 73 if (result != 42) { in runSmaliTest() 74 throw new Error("Unexpected result: " + result); in runSmaliTest() 85 public static int $noinline$returnInt(int result) { in $noinline$returnInt() argument 91 return result; in $noinline$returnInt() 94 public static float $noinline$returnFloat(float result) { in $noinline$returnFloat() argument 100 return result; in $noinline$returnFloat() 103 public static double $noinline$returnDouble(double result) { in $noinline$returnDouble() argument 109 return result; in $noinline$returnDouble() 112 public static long $noinline$returnLong(long result) { in $noinline$returnLong() argument [all …]
|
/art/test/711-checker-type-conversion/src/ |
D | Main.java | 19 public static void assertByteEquals(byte expected, byte result) { in assertByteEquals() argument 20 if (expected != result) { in assertByteEquals() 21 throw new Error("Expected: " + expected + ", found: " + result); in assertByteEquals() 25 public static void assertShortEquals(short expected, short result) { in assertShortEquals() argument 26 if (expected != result) { in assertShortEquals() 27 throw new Error("Expected: " + expected + ", found: " + result); in assertShortEquals() 31 public static void assertIntEquals(int expected, int result) { in assertIntEquals() argument 32 if (expected != result) { in assertIntEquals() 33 throw new Error("Expected: " + expected + ", found: " + result); in assertIntEquals() 37 public static void assertLongEquals(long expected, long result) { in assertLongEquals() argument [all …]
|