Search in sources :

Example 1 with HotSpotForeignCallsProviderImpl

use of org.graalvm.compiler.hotspot.meta.HotSpotForeignCallsProviderImpl in project graal by oracle.

the class StubAVXTest method test.

@Test
public void test() {
    HotSpotProviders providers = (HotSpotProviders) getProviders();
    HotSpotForeignCallsProviderImpl foreignCalls = (HotSpotForeignCallsProviderImpl) providers.getForeignCalls();
    HotSpotForeignCallLinkage linkage = foreignCalls.registerStubCall(TEST_STUB, true, HotSpotForeignCallLinkage.Transition.LEAF_NOFP);
    linkage.setCompiledStub(new TestStub(getInitialOptions(), providers, linkage));
    runTest("testStub");
}
Also used : HotSpotProviders(org.graalvm.compiler.hotspot.meta.HotSpotProviders) HotSpotForeignCallLinkage(org.graalvm.compiler.hotspot.HotSpotForeignCallLinkage) HotSpotForeignCallsProviderImpl(org.graalvm.compiler.hotspot.meta.HotSpotForeignCallsProviderImpl) LIRTest(org.graalvm.compiler.lir.jtt.LIRTest) Test(org.junit.Test)

Aggregations

HotSpotForeignCallLinkage (org.graalvm.compiler.hotspot.HotSpotForeignCallLinkage)1 HotSpotForeignCallsProviderImpl (org.graalvm.compiler.hotspot.meta.HotSpotForeignCallsProviderImpl)1 HotSpotProviders (org.graalvm.compiler.hotspot.meta.HotSpotProviders)1 LIRTest (org.graalvm.compiler.lir.jtt.LIRTest)1 Test (org.junit.Test)1