Search in sources :

Example 1 with Builder

use of com.oracle.truffle.api.frame.FrameDescriptor.Builder in project graal by oracle.

the class BasicNodeFactory method getLazyUnsupportedInlineRootNode.

private LLVMInlineAssemblyRootNode getLazyUnsupportedInlineRootNode(String asmExpression, AsmParseException e) {
    LLVMInlineAssemblyRootNode assemblyRoot;
    String message = asmExpression + ": " + e.getMessage();
    FrameDescriptor.Builder builder = FrameDescriptor.newBuilder();
    addStackSlots(builder);
    assemblyRoot = new LLVMInlineAssemblyRootNode(language, builder.build(), createStackAccess(), Collections.singletonList(LLVMUnsupportedInstructionNode.create(UnsupportedReason.INLINE_ASSEMBLER, message)), Collections.emptyList(), null);
    return assemblyRoot;
}
Also used : FrameDescriptor(com.oracle.truffle.api.frame.FrameDescriptor) LLVMInlineAssemblyRootNode(com.oracle.truffle.llvm.runtime.nodes.func.LLVMInlineAssemblyRootNode) Builder(com.oracle.truffle.api.frame.FrameDescriptor.Builder)

Aggregations

FrameDescriptor (com.oracle.truffle.api.frame.FrameDescriptor)1 Builder (com.oracle.truffle.api.frame.FrameDescriptor.Builder)1 LLVMInlineAssemblyRootNode (com.oracle.truffle.llvm.runtime.nodes.func.LLVMInlineAssemblyRootNode)1