/art/test/570-checker-select/src/ |
D | Main.java | 37 public static int BoolCond_IntVarVar(boolean cond, int x, int y) { in BoolCond_IntVarVar() argument 38 return cond ? x : y; in BoolCond_IntVarVar() 81 public static int BoolCond_IntCstVar(boolean cond, int y) { in BoolCond_IntCstVar() argument 82 return cond ? 1 : y; in BoolCond_IntCstVar() 104 public static long BoolCond_LongVarVar(boolean cond, long x, long y) { in BoolCond_LongVarVar() argument 105 return cond ? x : y; in BoolCond_LongVarVar() 150 public static long BoolCond_LongCstVar(boolean cond, long y) { in BoolCond_LongCstVar() argument 151 return cond ? 1L : y; in BoolCond_LongCstVar() 162 public static float BoolCond_FloatVarVar(boolean cond, float x, float y) { in BoolCond_FloatVarVar() argument 163 return cond ? x : y; in BoolCond_FloatVarVar() [all …]
|
/art/test/561-shared-slowpaths/src/ |
D | Main.java | 27 private static void init(int[] x, int [] y, int l1, int h1, int l2, int h2) { in init() argument 32 y[i] = i; in init() 40 int[] y = new int[100]; in main() local 45 reset(x, y); in main() 47 init(x, y, 0, 100, 0, 100); in main() 54 expectEquals(y[i], i); in main() 59 reset(x, y); in main() 61 init(null, y, 0, 100, 0, 100); in main() 68 expectEquals(y[i], 0); in main() 73 reset(x, y); in main() [all …]
|
/art/test/474-checker-boolean-input/src/ |
D | Main.java | 54 public static boolean InlineAnd(boolean x, boolean y) { in InlineAnd() argument 55 return x & y; in InlineAnd() 58 public static boolean TestAndAsBoolean(boolean x, boolean y) { in TestAndAsBoolean() argument 59 return InlineAnd(x, y) != true ? true : false; in TestAndAsBoolean() 71 public static boolean InlineOr(boolean x, boolean y) { in InlineOr() argument 72 return x | y; in InlineOr() 75 public static boolean TestOrAsBoolean(boolean x, boolean y) { in TestOrAsBoolean() argument 76 return InlineOr(x, y) != true ? true : false; in TestOrAsBoolean() 88 public static boolean InlineXor(boolean x, boolean y) { in InlineXor() argument 89 return x ^ y; in InlineXor() [all …]
|
/art/test/463-checker-boolean-simplifier/src/ |
D | Main.java | 97 public static boolean GreaterThan(int x, int y) { in GreaterThan() argument 98 return (x <= y) ? false : true; in GreaterThan() 125 public static boolean LessThan(int x, int y) { in LessThan() argument 126 return (x < y) ? true : false; in LessThan() 165 public static boolean ValuesOrdered(int x, int y, int z) { in ValuesOrdered() argument 166 return (x <= y) == (y <= z); in ValuesOrdered() 203 public static int SimpleTrueBlock(boolean x, int y) { in SimpleTrueBlock() argument 204 return x ? y + 42 : 43; in SimpleTrueBlock() 219 public static int SimpleFalseBlock(boolean x, int y) { in SimpleFalseBlock() argument 220 return x ? 42 : y + 43; in SimpleFalseBlock() [all …]
|
/art/test/ProtoCompare/ |
D | ProtoCompare.java | 18 int m1(short x, int y, long z) { return x + y + (int)z; } in m1() argument 19 int m2(short x, int y, long z) { return x + y + (int)z; } in m2() argument 20 int m3(long x, int y, short z) { return (int)x + y + z; } in m3() argument 21 long m4(long x, int y, short z) { return x + y + z; } in m4() argument
|
/art/test/ProtoCompare2/ |
D | ProtoCompare2.java | 18 int m1(short x, int y, long z) { return x + y + (int)z; } in m1() argument 19 int m2(short x, int y, long z) { return x + y + (int)z; } in m2() argument 20 int m3(long x, int y, short z) { return (int)x + y + z; } in m3() argument 21 long m4(long x, int y, short z) { return x + y + z; } in m4() argument
|
/art/runtime/base/ |
D | logging.h | 134 #define CHECK_EQ(x, y) CHECK_OP(x, y, ==) argument 135 #define CHECK_NE(x, y) CHECK_OP(x, y, !=) argument 136 #define CHECK_LE(x, y) CHECK_OP(x, y, <=) argument 137 #define CHECK_LT(x, y) CHECK_OP(x, y, <) argument 138 #define CHECK_GE(x, y) CHECK_OP(x, y, >=) argument 139 #define CHECK_GT(x, y) CHECK_OP(x, y, >) argument 183 #define DCHECK_EQ(x, y) if (::art::kEnableDChecks) CHECK_EQ(x, y) argument 184 #define DCHECK_NE(x, y) if (::art::kEnableDChecks) CHECK_NE(x, y) argument 185 #define DCHECK_LE(x, y) if (::art::kEnableDChecks) CHECK_LE(x, y) argument 186 #define DCHECK_LT(x, y) if (::art::kEnableDChecks) CHECK_LT(x, y) argument [all …]
|
D | stringpiece.h | 174 inline bool operator==(const StringPiece& x, const StringPiece& y) { 176 if (len != y.size()) { 181 const char* p2 = y.data(); 200 inline bool operator==(const StringPiece& x, const char* y) { 201 if (y == nullptr) { 204 return strncmp(x.data(), y, x.size()) == 0 && y[x.size()] == '\0'; 208 inline bool operator!=(const StringPiece& x, const StringPiece& y) { 209 return !(x == y); 212 inline bool operator!=(const StringPiece& x, const char* y) { 213 return !(x == y); [all …]
|
/art/compiler/optimizing/ |
D | nodes_shared.h | 69 auto Compute(T x, U y) const -> decltype(x & ~y) { 70 static_assert(std::is_same<decltype(x & ~y), decltype(x | ~y)>::value && 71 std::is_same<decltype(x & ~y), decltype(x ^ ~y)>::value, 75 return x & ~y; 77 return x | ~y; 79 return x ^ ~y; 86 HConstant* Evaluate(HIntConstant* x, HIntConstant* y) const OVERRIDE { in Evaluate() argument 88 Compute(x->GetValue(), y->GetValue()), GetDexPc()); in Evaluate() 90 HConstant* Evaluate(HLongConstant* x, HLongConstant* y) const OVERRIDE { in Evaluate() argument 92 Compute(x->GetValue(), y->GetValue()), GetDexPc()); in Evaluate() [all …]
|
D | nodes.h | 2997 HNullConstant* y ATTRIBUTE_UNUSED) const { in Evaluate() 3001 virtual HConstant* Evaluate(HIntConstant* x, HIntConstant* y) const = 0; 3002 virtual HConstant* Evaluate(HLongConstant* x, HLongConstant* y) const = 0; 3004 HIntConstant* y ATTRIBUTE_UNUSED) const { in Evaluate() 3008 virtual HConstant* Evaluate(HFloatConstant* x, HFloatConstant* y) const = 0; 3009 virtual HConstant* Evaluate(HDoubleConstant* x, HDoubleConstant* y) const = 0; 3097 int32_t Compare(T x, T y) const { return x > y ? 1 : (x < y ? -1 : 0); } in Compare() argument 3100 int32_t CompareFP(T x, T y) const { in CompareFP() argument 3104 return std::isunordered(x, y) ? (IsGtBias() ? 1 : -1) : Compare(x, y); in CompareFP() 3125 HNullConstant* y ATTRIBUTE_UNUSED) const OVERRIDE { in Evaluate() [all …]
|
/art/test/480-checker-dead-blocks/src/ |
D | Main.java | 53 public static int testTrueBranch(int x, int y) { in testTrueBranch() argument 56 z = x + y; in testTrueBranch() 58 z = x - y; in testTrueBranch() 85 public static int testFalseBranch(int x, int y) { in testFalseBranch() argument 88 z = x + y; in testFalseBranch() 90 z = x - y; in testFalseBranch() 179 public static int testRemoveSuspendCheck(int x, int y) { in testRemoveSuspendCheck() argument 182 while (y > 0) { in testRemoveSuspendCheck() 186 y--; in testRemoveSuspendCheck()
|
/art/test/478-checker-inliner-nested-loop/src/ |
D | Main.java | 26 public static int Inline(int x, int y) { in Inline() argument 28 if (x <= y) { in Inline() 29 result = x * y; in Inline() 46 for (int y = 0; y < max_y; ++y) { in NestedLoop() 47 total += Inline(x, y); in NestedLoop()
|
/art/test/004-ReferenceMap/src/ |
D | Main.java | 23 Object y = null; in f() local 25 y = new Object(); in f() 26 x[2] = y; // out-of-bound exception in f() 28 if (y == null) { in f() 32 x[1] = y; in f() 35 return y; in f()
|
/art/test/003-omnibus-opcodes/src/ |
D | IntMath.java | 164 static int[] intOperTest(int x, int y) { in intOperTest() argument 170 results[0] = x + y; in intOperTest() 171 results[1] = x - y; in intOperTest() 172 results[2] = x * y; in intOperTest() 174 results[4] = x / y; in intOperTest() 175 results[5] = x % -y; in intOperTest() 176 results[6] = x & y; in intOperTest() 177 results[7] = x | y; in intOperTest() 178 results[8] = x ^ y; in intOperTest() 181 results[9] = x + ((((((((x + y) - y) * y) / y) % y) & y) | y) ^ y); in intOperTest() [all …]
|
D | FloatMath.java | 135 static float[] floatOperTest(float x, float y) { in floatOperTest() argument 142 results[0] = x + y; in floatOperTest() 143 results[1] = x - y; in floatOperTest() 144 results[2] = x * y; in floatOperTest() 145 results[3] = x / y; in floatOperTest() 146 results[4] = x % -y; in floatOperTest() 150 tmp += y; in floatOperTest() 153 tmp -= y; in floatOperTest() 156 tmp *= y; in floatOperTest() 159 tmp /= y; in floatOperTest() [all …]
|
D | Classes.java | 79 static void yTests(Object y) { in yTests() argument 80 Main.assertTrue( y instanceof Classes); in yTests() 81 Main.assertTrue( y instanceof MoreClasses); in yTests() 136 MoreClasses y = new MoreClasses(); in arrayInstance() local 145 yTests(y); in arrayInstance() 156 yararar[0][0][0] = y; in arrayInstance() 157 yararar[0][0][1] = y; in arrayInstance() 158 yararar[0][0][2] = y; in arrayInstance() 159 yararar[0][1][0] = y; in arrayInstance() 160 yararar[0][1][1] = y; in arrayInstance() [all …]
|
/art/test/481-regression-phi-cond/src/ |
D | Main.java | 25 public static boolean inlinePhi(boolean x, boolean y, boolean z) { in inlinePhi() argument 30 phi = y; in inlinePhi() 39 public static boolean testCase(boolean x, boolean y, boolean z) { in testCase() argument 41 boolean phi = inlinePhi(x, y, z); in testCase()
|
/art/test/101-fibonacci/src/ |
D | Main.java | 49 int y = fibonacci(x); in main() local 50 System.out.printf("fibonacci(%d)=%d\n", x, y); in main() 51 y = fibonacci(x + 1); in main() 52 System.out.printf("fibonacci(%d)=%d\n", x + 1, y); in main()
|
/art/test/107-int-math2/src/ |
D | Main.java | 337 static int intOperTest(int x, int y) { in intOperTest() argument 341 results[0] = x + y; in intOperTest() 342 results[1] = x - y; in intOperTest() 343 results[2] = x * y; in intOperTest() 345 results[4] = x / y; in intOperTest() 346 results[5] = x % -y; in intOperTest() 347 results[6] = x & y; in intOperTest() 348 results[7] = x | y; in intOperTest() 349 results[8] = x ^ y; in intOperTest() 352 results[9] = x + ((((((((x + y) - y) * y) / y) % y) & y) | y) ^ y); in intOperTest() [all …]
|
/art/test/476-checker-ctor-memory-barrier/src/ |
D | Main.java | 98 final int y; field in HaveFinalsAndInheritFromClassWithFinals 108 y = 0; in HaveFinalsAndInheritFromClassWithFinals() 118 y = 0; in HaveFinalsAndInheritFromClassWithFinals() 131 y = 0; in HaveFinalsAndInheritFromClassWithFinals()
|
/art/test/567-checker-compare/src/ |
D | Main.java | 87 private static int compareBooleans(boolean x, boolean y) { in compareBooleans() argument 88 return Integer.compare((x ? 1 : 0), (y ? 1 : 0)); in compareBooleans() 102 private static int compareBytes(byte x, byte y) { in compareBytes() argument 103 return Integer.compare(x, y); in compareBytes() 117 private static int compareShorts(short x, short y) { in compareShorts() argument 118 return Integer.compare(x, y); in compareShorts() 132 private static int compareChars(char x, char y) { in compareChars() argument 133 return Integer.compare(x, y); in compareChars() 147 private static int compareInts(int x, int y) { in compareInts() argument 148 return Integer.compare(x, y); in compareInts() [all …]
|
/art/test/557-checker-instruction-simplifier-ror/src/ |
D | Main.java | 284 public static int ror_int_subv_csubv(int value, int x, int y) { in ror_int_subv_csubv() argument 285 int distance = x - y; in ror_int_subv_csubv() 316 public static int ror_int_subv_csubv_env(int value, int x, int y) { in ror_int_subv_csubv_env() argument 317 int distance = x - y; in ror_int_subv_csubv_env() 356 public static long ror_long_subv_csubv_0(long value, int x, int y) { in ror_long_subv_csubv_0() argument 357 int distance = x - y; in ror_long_subv_csubv_0() 420 public static int rol_int_csubv_subv(int value, int x, int y) { in rol_int_csubv_subv() argument 421 int distance = x - y; in rol_int_csubv_subv()
|
/art/test/455-checker-gvn/src/ |
D | Main.java | 38 public static int foo(int x, int y) { in foo() argument 39 int sum1 = x + y; in foo() 40 int sum2 = y + x; in foo()
|
/art/test/044-proxy/src/ |
D | BasicTest.java | 133 public int rectangle(int x, int y); in rectangle() argument 143 public int rectangle(int x, int y); in rectangle() argument 144 public int square(int x, int y); in square() argument 145 public int trapezoid(int x, double off, int y); in trapezoid() argument 183 public int rectangle(int x, int y) { in rectangle() argument 184 System.out.println("--- rectangle " + x + "," + y); in rectangle() 187 public int square(int x, int y) { in square() argument 188 System.out.println("--- square " + x + "," + y); in square() 191 public int trapezoid(int x, double off, int y) { in trapezoid() argument 192 System.out.println("--- trap " + x + "," + y + "," + off); in trapezoid()
|
/art/test/565-checker-condition-liveness/src/ |
D | Main.java | 43 int y = field; in main() local 44 if (x > y) { in main()
|