58 } 59 } 60 61 value public final class MyValue2 implements MyInterface { 62 final int x; 63 final byte y; 64 final MyValue2Inline.val v1; 65 66 private MyValue2() { 67 this.x = 0; 68 this.y = 0; 69 this.v1 = MyValue2Inline.createDefault(); 70 } 71 72 @ForceInline 73 public static MyValue2 createDefaultInline() { 74 return MyValue2.default; 75 } 76 77 @ForceInline 78 public static MyValue2 createWithFieldsInline(int x, boolean b) { 79 MyValue2 v = createDefaultInline(); 80 v = setX(v, x); 81 v = setY(v, (byte)x); 82 v = setV1(v, MyValue2Inline.createWithFieldsInline(b, ValueTypeTest.rL)); 83 return v; 84 } 85 86 @DontInline 87 public static MyValue2 createWithFieldsDontInline(int x, boolean b) { 88 MyValue2 v = createDefaultInline(); 89 v = setX(v, x); 90 v = setY(v, (byte)x); 91 v = setV1(v, MyValue2Inline.createWithFieldsInline(b, ValueTypeTest.rL)); 92 return v; 93 } 94 95 @ForceInline 96 public long hash() { 97 return x + y + (v1.b ? 0 : 1) + v1.c; | 58 } 59 } 60 61 value public final class MyValue2 implements MyInterface { 62 final int x; 63 final byte y; 64 final MyValue2Inline.val v1; 65 66 private MyValue2() { 67 this.x = 0; 68 this.y = 0; 69 this.v1 = MyValue2Inline.createDefault(); 70 } 71 72 @ForceInline 73 public static MyValue2 createDefaultInline() { 74 return MyValue2.default; 75 } 76 77 @ForceInline 78 public static MyValue2 createWithFieldsInline(int x, long y, boolean b) { 79 MyValue2 v = createDefaultInline(); 80 v = setX(v, x); 81 v = setY(v, (byte)x); 82 v = setV1(v, MyValue2Inline.createWithFieldsInline(b, y)); 83 return v; 84 } 85 86 @ForceInline 87 public static MyValue2 createWithFieldsInline(int x, boolean b) { 88 MyValue2 v = createDefaultInline(); 89 v = setX(v, x); 90 v = setY(v, (byte)x); 91 v = setV1(v, MyValue2Inline.createWithFieldsInline(b, ValueTypeTest.rL)); 92 return v; 93 } 94 95 @DontInline 96 public static MyValue2 createWithFieldsDontInline(int x, boolean b) { 97 MyValue2 v = createDefaultInline(); 98 v = setX(v, x); 99 v = setY(v, (byte)x); 100 v = setV1(v, MyValue2Inline.createWithFieldsInline(b, ValueTypeTest.rL)); 101 return v; 102 } 103 104 @ForceInline 105 public long hash() { 106 return x + y + (v1.b ? 0 : 1) + v1.c; |