Search in sources :

Example 11 with CompilableTruffleAST

use of org.graalvm.compiler.truffle.common.CompilableTruffleAST in project graal by oracle.

the class IsolatedCompilableTruffleAST method getValidRootAssumption0.

@CEntryPoint(include = CEntryPoint.NotIncludedAutomatically.class)
@CEntryPointOptions(publishAs = CEntryPointOptions.Publish.NotPublished)
private static ClientHandle<Assumption> getValidRootAssumption0(@SuppressWarnings("unused") ClientIsolateThread client, ClientHandle<SubstrateCompilableTruffleAST> handle) {
    CompilableTruffleAST ast = IsolatedCompileClient.get().unhand(handle);
    JavaConstant assumptionConstant = ast.getValidRootAssumptionConstant();
    Assumption assumption = (Assumption) SubstrateObjectConstant.asObject(assumptionConstant);
    return IsolatedCompileClient.get().hand(assumption);
}
Also used : JavaConstant(jdk.vm.ci.meta.JavaConstant) CompilableTruffleAST(org.graalvm.compiler.truffle.common.CompilableTruffleAST) SubstrateCompilableTruffleAST(com.oracle.svm.truffle.api.SubstrateCompilableTruffleAST) Assumption(com.oracle.truffle.api.Assumption) CEntryPoint(org.graalvm.nativeimage.c.function.CEntryPoint) CEntryPointOptions(com.oracle.svm.core.c.function.CEntryPointOptions)

Example 12 with CompilableTruffleAST

use of org.graalvm.compiler.truffle.common.CompilableTruffleAST in project graal by oracle.

the class IsolatedTruffleCallNode method getCurrentCallTarget0.

@CEntryPoint(include = CEntryPoint.NotIncludedAutomatically.class)
@CEntryPointOptions(publishAs = CEntryPointOptions.Publish.NotPublished)
private static ClientHandle<SubstrateCompilableTruffleAST> getCurrentCallTarget0(@SuppressWarnings("unused") ClientIsolateThread client, ClientHandle<TruffleCallNode> nodeHandle) {
    TruffleCallNode node = IsolatedCompileClient.get().unhand(nodeHandle);
    CompilableTruffleAST target = node.getCurrentCallTarget();
    return IsolatedCompileClient.get().hand((SubstrateCompilableTruffleAST) target);
}
Also used : TruffleCallNode(org.graalvm.compiler.truffle.common.TruffleCallNode) SubstrateCompilableTruffleAST(com.oracle.svm.truffle.api.SubstrateCompilableTruffleAST) CompilableTruffleAST(org.graalvm.compiler.truffle.common.CompilableTruffleAST) CEntryPoint(org.graalvm.nativeimage.c.function.CEntryPoint) CEntryPointOptions(com.oracle.svm.core.c.function.CEntryPointOptions)

Aggregations

CompilableTruffleAST (org.graalvm.compiler.truffle.common.CompilableTruffleAST)12 CEntryPoint (org.graalvm.nativeimage.c.function.CEntryPoint)6 CEntryPointOptions (com.oracle.svm.core.c.function.CEntryPointOptions)3 SubstrateCompilableTruffleAST (com.oracle.svm.truffle.api.SubstrateCompilableTruffleAST)3 TruffleToLibGraal (org.graalvm.compiler.truffle.common.hotspot.libgraal.TruffleToLibGraal)3 HotSpotTruffleCompilerImpl (org.graalvm.compiler.truffle.compiler.hotspot.HotSpotTruffleCompilerImpl)3 JNIMethodScope (org.graalvm.jniutils.JNIMethodScope)3 Assumption (com.oracle.truffle.api.Assumption)2 JavaConstant (jdk.vm.ci.meta.JavaConstant)2 DebugContext (org.graalvm.compiler.debug.DebugContext)2 OptionValues (org.graalvm.compiler.options.OptionValues)2 TruffleDebugContext (org.graalvm.compiler.truffle.common.TruffleDebugContext)2 PrintWriter (java.io.PrintWriter)1 StringWriter (java.io.StringWriter)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 Entry (java.util.Map.Entry)1 Builder (org.graalvm.compiler.debug.DebugContext.Builder)1 Scope (org.graalvm.compiler.debug.DebugContext.Scope)1 TruffleCallNode (org.graalvm.compiler.truffle.common.TruffleCallNode)1