< prev index next >

test/jdk/valhalla/valuetypes/Value.java

Print this page
rev 55117 : 8223350: [lworld] Use inline classes instead of value classes

*** 19,29 **** * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! public value class Value { char char_v; byte byte_v; boolean boolean_v; int int_v; short short_v; --- 19,29 ---- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! public inline class Value { char char_v; byte byte_v; boolean boolean_v; int int_v; short short_v;
*** 145,165 **** v = __WithField(v.s, s); return v; } } ! static value class IntValue implements Number { int i; IntValue() { i = 0; } public int intValue() { return i; } } ! static value class ShortValue implements Number { short s; ShortValue() { s = 0; } public short shortValue() { --- 145,165 ---- v = __WithField(v.s, s); return v; } } ! static inline class IntValue implements Number { int i; IntValue() { i = 0; } public int intValue() { return i; } } ! static inline class ShortValue implements Number { short s; ShortValue() { s = 0; } public short shortValue() {
< prev index next >