Search in sources :

Example 6 with TruffleInliningData

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

the class IsolatedTruffleInlining method setCallCount0.

@CEntryPoint(include = CEntryPoint.NotIncludedAutomatically.class)
@CEntryPointOptions(publishAs = CEntryPointOptions.Publish.NotPublished)
private static void setCallCount0(@SuppressWarnings("unused") ClientIsolateThread client, ClientHandle<? extends TruffleInliningData> handle, int count) {
    TruffleInliningData truffleInliningData = IsolatedCompileClient.get().unhand(handle);
    truffleInliningData.setCallCount(count);
}
Also used : TruffleInliningData(org.graalvm.compiler.truffle.common.TruffleInliningData) CEntryPoint(org.graalvm.nativeimage.c.function.CEntryPoint) CEntryPointOptions(com.oracle.svm.core.c.function.CEntryPointOptions)

Example 7 with TruffleInliningData

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

the class IsolatedTruffleInlining method findCallNode0.

@CEntryPoint(include = CEntryPoint.NotIncludedAutomatically.class)
@CEntryPointOptions(publishAs = CEntryPointOptions.Publish.NotPublished)
private static ClientHandle<TruffleCallNode> findCallNode0(@SuppressWarnings("unused") ClientIsolateThread client, ClientHandle<? extends TruffleInliningData> inliningHandle, ClientHandle<?> callNodeConstantHandle) {
    TruffleInliningData inlining = IsolatedCompileClient.get().unhand(inliningHandle);
    JavaConstant callNodeConstant = SubstrateObjectConstant.forObject(IsolatedCompileClient.get().unhand(callNodeConstantHandle));
    TruffleCallNode callNode = inlining.findCallNode(callNodeConstant);
    return IsolatedCompileClient.get().hand(callNode);
}
Also used : TruffleCallNode(org.graalvm.compiler.truffle.common.TruffleCallNode) TruffleInliningData(org.graalvm.compiler.truffle.common.TruffleInliningData) JavaConstant(jdk.vm.ci.meta.JavaConstant) CEntryPoint(org.graalvm.nativeimage.c.function.CEntryPoint) CEntryPointOptions(com.oracle.svm.core.c.function.CEntryPointOptions)

Example 8 with TruffleInliningData

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

the class IsolatedTruffleInlining method setInlinedCallCount0.

@CEntryPoint(include = CEntryPoint.NotIncludedAutomatically.class)
@CEntryPointOptions(publishAs = CEntryPointOptions.Publish.NotPublished)
private static void setInlinedCallCount0(@SuppressWarnings("unused") ClientIsolateThread client, ClientHandle<? extends TruffleInliningData> handle, int count) {
    TruffleInliningData truffleInliningData = IsolatedCompileClient.get().unhand(handle);
    truffleInliningData.setInlinedCallCount(count);
}
Also used : TruffleInliningData(org.graalvm.compiler.truffle.common.TruffleInliningData) CEntryPoint(org.graalvm.nativeimage.c.function.CEntryPoint) CEntryPointOptions(com.oracle.svm.core.c.function.CEntryPointOptions)

Aggregations

TruffleInliningData (org.graalvm.compiler.truffle.common.TruffleInliningData)8 CEntryPointOptions (com.oracle.svm.core.c.function.CEntryPointOptions)6 CEntryPoint (org.graalvm.nativeimage.c.function.CEntryPoint)6 IsolatedCompileClient (com.oracle.svm.graal.isolated.IsolatedCompileClient)2 JavaConstant (jdk.vm.ci.meta.JavaConstant)2 CompilationIdentifier (org.graalvm.compiler.core.common.CompilationIdentifier)2 TruffleCompilationTask (org.graalvm.compiler.truffle.common.TruffleCompilationTask)2 TruffleCompilerImpl (org.graalvm.compiler.truffle.compiler.TruffleCompilerImpl)2 TruffleInlining (org.graalvm.compiler.truffle.runtime.TruffleInlining)2 DebugCloseable (org.graalvm.compiler.debug.DebugCloseable)1 DebugContext (org.graalvm.compiler.debug.DebugContext)1 Builder (org.graalvm.compiler.debug.DebugContext.Builder)1 TruffleCallNode (org.graalvm.compiler.truffle.common.TruffleCallNode)1 TruffleSourceLanguagePosition (org.graalvm.compiler.truffle.common.TruffleSourceLanguagePosition)1 PartialEvaluator (org.graalvm.compiler.truffle.compiler.PartialEvaluator)1 AgnosticInliningPhase (org.graalvm.compiler.truffle.compiler.phases.inlining.AgnosticInliningPhase)1 OptimizedCallTarget (org.graalvm.compiler.truffle.runtime.OptimizedCallTarget)1