< prev index next >
test/compiler/jvmci/compilerToVM/CanInlineMethodTest.java
Print this page
*** 43,53 ****
import java.lang.reflect.Executable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import jdk.vm.ci.hotspot.CompilerToVMHelper;
! import jdk.vm.ci.hotspot.HotSpotResolvedJavaMethodImpl;
import jdk.test.lib.Asserts;
import sun.hotspot.WhiteBox;
public class CanInlineMethodTest {
--- 43,53 ----
import java.lang.reflect.Executable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import jdk.vm.ci.hotspot.CompilerToVMHelper;
! import jdk.vm.ci.hotspot.HotSpotResolvedJavaMethod;
import jdk.test.lib.Asserts;
import sun.hotspot.WhiteBox;
public class CanInlineMethodTest {
*** 57,67 ****
List<Executable> testCases = createTestCases();
testCases.forEach(CanInlineMethodTest::runSanityTest);
}
private static void runSanityTest(Executable aMethod) {
! HotSpotResolvedJavaMethodImpl method = CTVMUtilities
.getResolvedMethod(aMethod);
boolean canInline = CompilerToVMHelper.canInlineMethod(method);
boolean expectedCanInline = !WB.testSetDontInlineMethod(aMethod,
true);
Asserts.assertEQ(canInline, expectedCanInline, "Unexpected initial " +
--- 57,67 ----
List<Executable> testCases = createTestCases();
testCases.forEach(CanInlineMethodTest::runSanityTest);
}
private static void runSanityTest(Executable aMethod) {
! HotSpotResolvedJavaMethod method = CTVMUtilities
.getResolvedMethod(aMethod);
boolean canInline = CompilerToVMHelper.canInlineMethod(method);
boolean expectedCanInline = !WB.testSetDontInlineMethod(aMethod,
true);
Asserts.assertEQ(canInline, expectedCanInline, "Unexpected initial " +
< prev index next >