/art/test/959-invoke-polymorphic-accessors/src/ |
D | Main.java | 23 public static class ValueHolder { class in Main 101 static void setByte(MethodHandle m, ValueHolder v, byte value, boolean expectFailure) in setByte() 122 static void getByte(MethodHandle m, ValueHolder v, byte value, boolean expectFailure) in getByte() 144 static void setChar(MethodHandle m, ValueHolder v, char value, boolean expectFailure) in setChar() 165 static void getChar(MethodHandle m, ValueHolder v, char value, boolean expectFailure) in getChar() 187 static void setShort(MethodHandle m, ValueHolder v, short value, boolean expectFailure) in setShort() 208 static void getShort(MethodHandle m, ValueHolder v, short value, boolean expectFailure) in getShort() 225 static void setInt(MethodHandle m, ValueHolder v, int value, boolean expectFailure) in setInt() 246 static void getInt(MethodHandle m, ValueHolder v, int value, boolean expectFailure) in getInt() 263 static void setLong(MethodHandle m, ValueHolder v, long value, boolean expectFailure) in setLong() [all …]
|
/art/libartbase/base/ |
D | transform_array_ref_test.cc | 27 struct ValueHolder { struct 29 ValueHolder(int v) : value(v) { } // NOLINT in ValueHolder() argument 33 ATTRIBUTE_UNUSED bool operator==(const ValueHolder& lhs, const ValueHolder& rhs) { in operator ==() 40 auto add1 = [](const ValueHolder& h) { return h.value + 1; }; in TEST() 41 std::vector<ValueHolder> input({ 7, 6, 4, 0 }); in TEST() 81 auto sub1 = [](ValueHolder& h) { return h.value - 1; }; in TEST() 82 std::vector<ValueHolder> input({ 4, 4, 5, 7, 10 }); in TEST() 114 int& operator()(ValueHolder& h) const { return h.value; } in TEST() 115 const int& operator()(const ValueHolder& h) const { return h.value; } in TEST() 118 std::vector<ValueHolder> input({ 1, 0, 1, 0, 3, 1 }); in TEST() [all …]
|
D | transform_iterator_test.cc | 30 struct ValueHolder { struct 32 ValueHolder(int v) : value(v) { } // NOLINT in ValueHolder() function 36 bool operator==(const ValueHolder& lhs, const ValueHolder& rhs) { in operator ==() 43 auto add1 = [](const ValueHolder& h) { return h.value + 1; }; in TEST() 44 std::vector<ValueHolder> input({ 1, 7, 3, 8 }); in TEST() 146 auto sub1 = [](const ValueHolder& h) { return h.value - 1; }; in TEST() 147 std::list<ValueHolder> input({ 2, 3, 5, 7, 11 }); in TEST() 210 auto mul3 = [](const ValueHolder& h) { return h.value * 3; }; in TEST() 211 std::forward_list<ValueHolder> input({ 1, 1, 2, 3, 5, 8 }); in TEST() 248 auto ref = [](const ValueHolder& h) -> const int& { return h.value; }; in TEST() [all …]
|
/art/test/953-invoke-polymorphic-compiler/src/ |
D | Main.java | 339 static class ValueHolder { class in Main 345 ValueHolder valueHolder = new ValueHolder(); in $opt$AccessorsTest() 348 MethodHandle setMember = lookup.findSetter(ValueHolder.class, "m_z", boolean.class); in $opt$AccessorsTest() 349 MethodHandle getMember = lookup.findGetter(ValueHolder.class, "m_z", boolean.class); in $opt$AccessorsTest() 350 MethodHandle setStatic = lookup.findStaticSetter(ValueHolder.class, "s_z", boolean.class); in $opt$AccessorsTest() 351 MethodHandle getStatic = lookup.findStaticGetter(ValueHolder.class, "s_z", boolean.class); in $opt$AccessorsTest() 355 assertEquals((boolean) getStatic.invoke(), ValueHolder.s_z); in $opt$AccessorsTest() 357 ValueHolder.s_z = value; in $opt$AccessorsTest() 358 assertEquals(ValueHolder.s_z, value); in $opt$AccessorsTest()
|
/art/test/445-checker-licm/src/ |
D | Main.java | 18 static class ValueHolder { class in Main 131 sum += ValueHolder.getValue(); in clinitCheck()
|