340 X_OFFSET = U.objectFieldOffset(xField); 341 } catch (Exception e) { 342 throw new RuntimeException(e); 343 } 344 } 345 346 @Test() 347 public int test21(MyValue1 v) { 348 return U.getInt(v, X_OFFSET); 349 } 350 351 @DontCompile 352 public void test21_verifier(boolean warmup) { 353 MyValue1 v = MyValue1.createWithFieldsInline(rI, rL); 354 int res = test21(v); 355 Asserts.assertEQ(res, v.x); 356 } 357 358 @Test() 359 public void test22(MyValue1 v) { 360 U.putInt(v, X_OFFSET, 0); 361 } 362 363 @DontCompile 364 public void test22_verifier(boolean warmup) { 365 MyValue1 v = MyValue1.createWithFieldsInline(rI, rL); 366 test22(v); 367 } 368 369 @Test() 370 public int test23(MyValue1 v, long offset) { 371 return U.getInt(v, offset); 372 } 373 374 @DontCompile 375 public void test23_verifier(boolean warmup) { 376 MyValue1 v = MyValue1.createWithFieldsInline(rI, rL); 377 int res = test23(v, X_OFFSET); 378 Asserts.assertEQ(res, v.x); 379 } 380 | 340 X_OFFSET = U.objectFieldOffset(xField); 341 } catch (Exception e) { 342 throw new RuntimeException(e); 343 } 344 } 345 346 @Test() 347 public int test21(MyValue1 v) { 348 return U.getInt(v, X_OFFSET); 349 } 350 351 @DontCompile 352 public void test21_verifier(boolean warmup) { 353 MyValue1 v = MyValue1.createWithFieldsInline(rI, rL); 354 int res = test21(v); 355 Asserts.assertEQ(res, v.x); 356 } 357 358 @Test() 359 public void test22(MyValue1 v) { 360 try { 361 v = U.makePrivateBuffer(v); 362 U.putInt(v, X_OFFSET, 0); 363 } finally { 364 v = U.finishPrivateBuffer(v); 365 } 366 } 367 368 @DontCompile 369 public void test22_verifier(boolean warmup) { 370 MyValue1 v = MyValue1.createWithFieldsInline(rI, rL); 371 test22(v); 372 } 373 374 @Test() 375 public int test23(MyValue1 v, long offset) { 376 return U.getInt(v, offset); 377 } 378 379 @DontCompile 380 public void test23_verifier(boolean warmup) { 381 MyValue1 v = MyValue1.createWithFieldsInline(rI, rL); 382 int res = test23(v, X_OFFSET); 383 Asserts.assertEQ(res, v.x); 384 } 385 |