use of jdk.vm.ci.hotspot.HotSpotInstalledCode in project graal by oracle.
the class CompressedOopTest method test10.
public void test10() throws Exception {
HotSpotInstalledCode installedBenchmarkCode = getInstalledCode("constantTest", Object.class);
Container c = new Container();
Assert.assertFalse((boolean) installedBenchmarkCode.executeVarargs(c));
}
use of jdk.vm.ci.hotspot.HotSpotInstalledCode in project graal by oracle.
the class CompressedOopTest method test15.
@Test
public void test15() throws Exception {
HotSpotInstalledCode installedBenchmarkCode = getInstalledCode("stringBuilderTestIn");
installedBenchmarkCode.executeVarargs();
}
use of jdk.vm.ci.hotspot.HotSpotInstalledCode in project graal by oracle.
the class CompressedOopTest method test12.
@Test
public void test12() throws Exception {
HotSpotInstalledCode installedBenchmarkCode = getInstalledCode("stringConstantEqualsTest", Object.class);
String s1 = new String("Test");
boolean result = ((Boolean) (installedBenchmarkCode.executeVarargs(s1))).booleanValue();
Assert.assertTrue(result);
}
use of jdk.vm.ci.hotspot.HotSpotInstalledCode in project graal by oracle.
the class CompressedOopTest method test2.
@Test
public void test2() throws Exception {
HotSpotInstalledCode installedBenchmarkCode = getInstalledCode("arrayCopyTest", Object.class, Object.class);
ArrayContainer source = new ArrayContainer();
ArrayContainer destination = new ArrayContainer();
Assert.assertEquals(source.a.length, destination.a.length);
Assert.assertFalse(Arrays.equals(source.a, destination.a));
installedBenchmarkCode.executeVarargs(source.a, destination.a);
Assert.assertArrayEquals(source.a, destination.a);
}
use of jdk.vm.ci.hotspot.HotSpotInstalledCode in project graal by oracle.
the class CompressedOopTest method test11.
@Test
public void test11() throws Exception {
HotSpotInstalledCode installedBenchmarkCode = getInstalledCode("stringEqualsTest", Object.class, Object.class);
String s1 = new String("Test");
String s2 = new String("Test");
boolean result = ((Boolean) (installedBenchmarkCode.executeVarargs(s1, s2))).booleanValue();
Assert.assertTrue(result);
}
Aggregations