/art/test/959-invoke-polymorphic-accessors/src/ |
D | Main.java | 25 public static class ValueHolder { class in Main 103 static void setByte(MethodHandle m, ValueHolder v, byte value, boolean expectFailure) in setByte() 124 static void getByte(MethodHandle m, ValueHolder v, byte value, boolean expectFailure) in getByte() 146 static void setChar(MethodHandle m, ValueHolder v, char value, boolean expectFailure) in setChar() 167 static void getChar(MethodHandle m, ValueHolder v, char value, boolean expectFailure) in getChar() 189 static void setShort(MethodHandle m, ValueHolder v, short value, boolean expectFailure) in setShort() 210 static void getShort(MethodHandle m, ValueHolder v, short value, boolean expectFailure) in getShort() 227 static void setInt(MethodHandle m, ValueHolder v, int value, boolean expectFailure) in setInt() 248 static void getInt(MethodHandle m, ValueHolder v, int value, boolean expectFailure) in getInt() 265 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() function 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() 80 auto sub1 = [](ValueHolder& h) { return h.value - 1; }; in TEST() 81 std::vector<ValueHolder> input({ 4, 4, 5, 7, 10 }); in TEST() 113 int& operator()(ValueHolder& h) const { return h.value; } in TEST() 114 const int& operator()(const ValueHolder& h) const { return h.value; } in TEST() 117 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() argument 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() 142 auto sub1 = [](const ValueHolder& h) { return h.value - 1; }; in TEST() 143 std::list<ValueHolder> input({ 2, 3, 5, 7, 11 }); in TEST() 202 auto mul3 = [](const ValueHolder& h) { return h.value * 3; }; in TEST() 203 std::forward_list<ValueHolder> input({ 1, 1, 2, 3, 5, 8 }); in TEST() 238 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()
|
/art/test/639-checker-code-sinking/src/ |
D | Main.java | 18 static class ValueHolder { class in Main 671 ValueHolder vh = new ValueHolder(); in $noinline$testSinkNewInstanceWithClinitCheck()
|
/art/compiler/optimizing/ |
D | load_store_elimination.cc | 576 using ValueHolder = std::variant<ValuelessType, typedef in art::LSEVisitor::Value 586 constexpr explicit Value(ValueHolder v) : value_(v) {} in Value() 590 ValueHolder value_;
|