Home
last modified time | relevance | path

Searched refs:ValueHolder (Results 1 – 4 of 4) sorted by relevance

/art/test/959-invoke-polymorphic-accessors/src/
DMain.java22 public static class ValueHolder { class in Main
86 static void setByte(MethodHandle m, ValueHolder v, byte value, boolean expectFailure) in setByte()
107 static void getByte(MethodHandle m, ValueHolder v, byte value, boolean expectFailure) in getByte()
129 static void setChar(MethodHandle m, ValueHolder v, char value, boolean expectFailure) in setChar()
150 static void getChar(MethodHandle m, ValueHolder v, char value, boolean expectFailure) in getChar()
172 static void setShort(MethodHandle m, ValueHolder v, short value, boolean expectFailure) in setShort()
193 static void getShort(MethodHandle m, ValueHolder v, short value, boolean expectFailure) in getShort()
210 static void setInt(MethodHandle m, ValueHolder v, int value, boolean expectFailure) in setInt()
231 static void getInt(MethodHandle m, ValueHolder v, int value, boolean expectFailure) in getInt()
248 static void setLong(MethodHandle m, ValueHolder v, long value, boolean expectFailure) in setLong()
[all …]
/art/runtime/base/
Dtransform_array_ref_test.cc28 struct ValueHolder { struct
30 ValueHolder(int v) : value(v) { } // NOLINT in ValueHolder() function
34 ATTRIBUTE_UNUSED bool operator==(const ValueHolder& lhs, const ValueHolder& rhs) { in operator ==()
41 auto add1 = [](const ValueHolder& h) { return h.value + 1; }; // NOLINT [readability/braces] in TEST()
42 std::vector<ValueHolder> input({ 7, 6, 4, 0 }); in TEST()
82 auto sub1 = [](ValueHolder& h) { return h.value - 1; }; // NOLINT [readability/braces] in TEST()
83 std::vector<ValueHolder> input({ 4, 4, 5, 7, 10 }); in TEST()
115 int& operator()(ValueHolder& h) const { return h.value; } in TEST()
116 const int& operator()(const ValueHolder& h) const { return h.value; } in TEST()
119 std::vector<ValueHolder> input({ 1, 0, 1, 0, 3, 1 }); in TEST()
[all …]
Dtransform_iterator_test.cc31 struct ValueHolder { struct
33 ValueHolder(int v) : value(v) { } // NOLINT in ValueHolder() function
37 bool operator==(const ValueHolder& lhs, const ValueHolder& rhs) { in operator ==()
44 auto add1 = [](const ValueHolder& h) { return h.value + 1; }; // NOLINT [readability/braces] in TEST()
45 std::vector<ValueHolder> input({ 1, 7, 3, 8 }); in TEST()
147 auto sub1 = [](const ValueHolder& h) { return h.value - 1; }; // NOLINT [readability/braces] in TEST()
148 std::list<ValueHolder> input({ 2, 3, 5, 7, 11 }); in TEST()
211 auto mul3 = [](const ValueHolder& h) { return h.value * 3; }; // NOLINT [readability/braces] in TEST()
212 std::forward_list<ValueHolder> input({ 1, 1, 2, 3, 5, 8 }); in TEST()
249 …auto ref = [](const ValueHolder& h) -> const int& { return h.value; }; // NOLINT [readability/bra… in TEST()
[all …]
/art/test/953-invoke-polymorphic-compiler/src/
DMain.java339 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()