< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/GuardedIntrinsicTest.java

Print this page

        

*** 142,151 **** --- 142,156 ---- @Test public void test01() { Super inheritsHC = new Super(); Person overridesHC = new Person(0); + + // Ensure the profile for getSuperAge includes both receiver types + getSuperAge(inheritsHC); + getSuperAge(overridesHC); + test("getSuperAge", inheritsHC); test("getSuperAge", overridesHC); // Check that the virtual dispatch test exists after bytecode parsing Assert.assertEquals(1, parsedForCompile.getNodes().filter(LoadMethodNode.class).count());
< prev index next >