use of com.oracle.svm.truffle.api.SubstrateCompilableTruffleAST in project graal by oracle.
the class IsolatedCompilableTruffleAST method isSameOrSplit0.
@CEntryPoint(include = CEntryPoint.NotIncludedAutomatically.class)
@CEntryPointOptions(publishAs = CEntryPointOptions.Publish.NotPublished)
private static boolean isSameOrSplit0(@SuppressWarnings("unused") ClientIsolateThread client, ClientHandle<SubstrateCompilableTruffleAST> compilableHandle, ClientHandle<SubstrateCompilableTruffleAST> otherHandle) {
SubstrateCompilableTruffleAST compilable = IsolatedCompileClient.get().unhand(compilableHandle);
SubstrateCompilableTruffleAST other = IsolatedCompileClient.get().unhand(otherHandle);
return compilable.isSameOrSplit(other);
}
use of com.oracle.svm.truffle.api.SubstrateCompilableTruffleAST in project graal by oracle.
the class IsolatedCompilableTruffleAST method dequeueInlined0.
@CEntryPoint(include = CEntryPoint.NotIncludedAutomatically.class)
@CEntryPointOptions(publishAs = CEntryPointOptions.Publish.NotPublished)
private static void dequeueInlined0(@SuppressWarnings("unused") ClientIsolateThread client, ClientHandle<SubstrateCompilableTruffleAST> handle) {
final IsolatedCompileClient isolatedCompileClient = IsolatedCompileClient.get();
final SubstrateCompilableTruffleAST compilable = isolatedCompileClient.unhand(handle);
compilable.dequeueInlined();
}
use of com.oracle.svm.truffle.api.SubstrateCompilableTruffleAST in project graal by oracle.
the class IsolatedCompilableTruffleAST method getCallNodes0.
@CEntryPoint(include = CEntryPoint.NotIncludedAutomatically.class)
@CEntryPointOptions(publishAs = CEntryPointOptions.Publish.NotPublished)
private static CompilerHandle<IsolatedTruffleCallNode[]> getCallNodes0(@SuppressWarnings("unused") ClientIsolateThread client, ClientHandle<SubstrateCompilableTruffleAST> compilableHandle) {
SubstrateCompilableTruffleAST compilable = IsolatedCompileClient.get().unhand(compilableHandle);
TruffleCallNode[] nodes = compilable.getCallNodes();
ClientHandle<?>[] nodeHandles = new ClientHandle<?>[nodes.length];
for (int i = 0; i < nodes.length; i++) {
nodeHandles[i] = IsolatedCompileClient.get().hand(nodes[i]);
}
try (PinnedObject pinnedNodeHandles = PinnedObject.create(nodeHandles)) {
return getCallNodes1(IsolatedCompileClient.get().getCompiler(), pinnedNodeHandles.addressOfArrayElement(0), nodeHandles.length);
}
}
use of com.oracle.svm.truffle.api.SubstrateCompilableTruffleAST 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);
}
Aggregations