abstract class com.oracle.truffle.llvm.runtime.interop.nfi.LLVMNativeWrapper$CallbackHelperNode extends com.oracle.truffle.llvm.runtime.nodes.api.LLVMNode
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: com.oracle.truffle.llvm.runtime.interop.nfi.LLVMNativeWrapper$CallbackHelperNode
super_class: com.oracle.truffle.llvm.runtime.nodes.api.LLVMNode
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.oracle.truffle.llvm.runtime.nodes.api.LLVMNode.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/llvm/runtime/interop/nfi/LLVMNativeWrapper$CallbackHelperNode;
abstract java.lang.Object execute(com.oracle.truffle.llvm.runtime.LLVMFunction, com.oracle.truffle.llvm.runtime.LLVMFunctionCode, java.lang.Object[]);
descriptor: (Lcom/oracle/truffle/llvm/runtime/LLVMFunction;Lcom/oracle/truffle/llvm/runtime/LLVMFunctionCode;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
function
code
args
java.lang.Object doCached(com.oracle.truffle.llvm.runtime.LLVMFunction, com.oracle.truffle.llvm.runtime.LLVMFunctionCode, java.lang.Object[], com.oracle.truffle.llvm.runtime.LLVMFunction, com.oracle.truffle.llvm.runtime.LLVMFunctionCode, com.oracle.truffle.llvm.runtime.LLVMGetStackFromThreadNode, com.oracle.truffle.llvm.runtime.LLVMContext, com.oracle.truffle.api.nodes.DirectCallNode, com.oracle.truffle.llvm.runtime.interop.nfi.LLVMNativeConvertNode[], com.oracle.truffle.llvm.runtime.interop.nfi.LLVMNativeConvertNode);
descriptor: (Lcom/oracle/truffle/llvm/runtime/LLVMFunction;Lcom/oracle/truffle/llvm/runtime/LLVMFunctionCode;[Ljava/lang/Object;Lcom/oracle/truffle/llvm/runtime/LLVMFunction;Lcom/oracle/truffle/llvm/runtime/LLVMFunctionCode;Lcom/oracle/truffle/llvm/runtime/LLVMGetStackFromThreadNode;Lcom/oracle/truffle/llvm/runtime/LLVMContext;Lcom/oracle/truffle/api/nodes/DirectCallNode;[Lcom/oracle/truffle/llvm/runtime/interop/nfi/LLVMNativeConvertNode;Lcom/oracle/truffle/llvm/runtime/interop/nfi/LLVMNativeConvertNode;)Ljava/lang/Object;
flags: (0x0000)
Code:
stack=3, locals=14, args_size=11
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 start local 8 start local 9 start local 10 0: aload 6
aload 7
invokevirtual com.oracle.truffle.llvm.runtime.LLVMContext.getThreadingStack:()Lcom/oracle/truffle/llvm/runtime/memory/LLVMThreadingStack;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual com.oracle.truffle.llvm.runtime.LLVMGetStackFromThreadNode.executeWithTarget:(Lcom/oracle/truffle/llvm/runtime/memory/LLVMThreadingStack;Ljava/lang/Thread;)Lcom/oracle/truffle/llvm/runtime/memory/LLVMStack;
astore 11
start local 11 1: aload 11
aload 3
aload 9
invokestatic com.oracle.truffle.llvm.runtime.interop.nfi.LLVMNativeWrapper$CallbackHelperNode.prepareCallbackArguments:(Lcom/oracle/truffle/llvm/runtime/memory/LLVMStack;[Ljava/lang/Object;[Lcom/oracle/truffle/llvm/runtime/interop/nfi/LLVMNativeConvertNode;)[Ljava/lang/Object;
astore 12
start local 12 2: aload 8
aload 12
invokevirtual com.oracle.truffle.api.nodes.DirectCallNode.call:([Ljava/lang/Object;)Ljava/lang/Object;
astore 13
start local 13 3: aload 10
aload 13
invokevirtual com.oracle.truffle.llvm.runtime.interop.nfi.LLVMNativeConvertNode.executeConvert:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/llvm/runtime/interop/nfi/LLVMNativeWrapper$CallbackHelperNode;
0 4 1 function Lcom/oracle/truffle/llvm/runtime/LLVMFunction;
0 4 2 code Lcom/oracle/truffle/llvm/runtime/LLVMFunctionCode;
0 4 3 args [Ljava/lang/Object;
0 4 4 cachedFunction Lcom/oracle/truffle/llvm/runtime/LLVMFunction;
0 4 5 cachedCode Lcom/oracle/truffle/llvm/runtime/LLVMFunctionCode;
0 4 6 getStack Lcom/oracle/truffle/llvm/runtime/LLVMGetStackFromThreadNode;
0 4 7 ctx Lcom/oracle/truffle/llvm/runtime/LLVMContext;
0 4 8 call Lcom/oracle/truffle/api/nodes/DirectCallNode;
0 4 9 convertArgs [Lcom/oracle/truffle/llvm/runtime/interop/nfi/LLVMNativeConvertNode;
0 4 10 convertRet Lcom/oracle/truffle/llvm/runtime/interop/nfi/LLVMNativeConvertNode;
1 4 11 stack Lcom/oracle/truffle/llvm/runtime/memory/LLVMStack;
2 4 12 preparedArgs [Ljava/lang/Object;
3 4 13 ret Ljava/lang/Object;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.dsl.Specialization(guards = {"code == cachedCode"})
RuntimeInvisibleParameterAnnotations:
0:
1:
2:
3:
com.oracle.truffle.api.dsl.Cached(value = "function")
4:
com.oracle.truffle.api.dsl.Cached(value = "code")
5:
com.oracle.truffle.api.dsl.Cached()
6:
com.oracle.truffle.api.dsl.CachedContext(value = Lcom/oracle/truffle/llvm/runtime/LLVMLanguage;)
7:
com.oracle.truffle.api.dsl.Cached(value = "createCallNode(cachedFunction, cachedCode)")
8:
com.oracle.truffle.api.dsl.Cached(value = "createFromNativeNodes(cachedFunction.getType())")
9:
com.oracle.truffle.api.dsl.Cached(value = "createToNative(cachedFunction.getType().getReturnType())")
MethodParameters:
Name Flags
function
code
args
cachedFunction
cachedCode
getStack
ctx
call
convertArgs
convertRet
java.lang.Object doGeneric(com.oracle.truffle.llvm.runtime.LLVMFunction, com.oracle.truffle.llvm.runtime.LLVMFunctionCode, java.lang.Object[]);
descriptor: (Lcom/oracle/truffle/llvm/runtime/LLVMFunction;Lcom/oracle/truffle/llvm/runtime/LLVMFunctionCode;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0000)
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: invokestatic com.oracle.truffle.api.CompilerDirectives.transferToInterpreter:()V
1: new java.lang.IllegalStateException
dup
ldc "unexpected generic case in LLVMNativeCallback"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/llvm/runtime/interop/nfi/LLVMNativeWrapper$CallbackHelperNode;
0 2 1 function Lcom/oracle/truffle/llvm/runtime/LLVMFunction;
0 2 2 code Lcom/oracle/truffle/llvm/runtime/LLVMFunctionCode;
0 2 3 args [Ljava/lang/Object;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.dsl.Specialization(replaces = {"doCached"})
MethodParameters:
Name Flags
function
code
args
com.oracle.truffle.api.nodes.DirectCallNode createCallNode(com.oracle.truffle.llvm.runtime.LLVMFunction, com.oracle.truffle.llvm.runtime.LLVMFunctionCode);
descriptor: (Lcom/oracle/truffle/llvm/runtime/LLVMFunction;Lcom/oracle/truffle/llvm/runtime/LLVMFunctionCode;)Lcom/oracle/truffle/api/nodes/DirectCallNode;
flags: (0x0000)
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
astore 4
start local 4 1: aload 4
invokevirtual com.oracle.truffle.llvm.runtime.LLVMFunctionCode.isLLVMIRFunction:()Z
ifeq 4
2: aload 4
invokevirtual com.oracle.truffle.llvm.runtime.LLVMFunctionCode.getLLVMIRFunctionSlowPath:()Lcom/oracle/truffle/api/RootCallTarget;
astore 3
start local 3 3: goto 8
end local 3 StackMap locals: com.oracle.truffle.llvm.runtime.interop.nfi.LLVMNativeWrapper$CallbackHelperNode com.oracle.truffle.llvm.runtime.LLVMFunction com.oracle.truffle.llvm.runtime.LLVMFunctionCode top com.oracle.truffle.llvm.runtime.LLVMFunctionCode
StackMap stack:
4: aload 4
invokevirtual com.oracle.truffle.llvm.runtime.LLVMFunctionCode.isIntrinsicFunctionSlowPath:()Z
ifeq 7
5: aload 4
invokevirtual com.oracle.truffle.llvm.runtime.LLVMFunctionCode.getIntrinsicSlowPath:()Lcom/oracle/truffle/llvm/runtime/LLVMFunctionCode$Intrinsic;
aload 1
invokevirtual com.oracle.truffle.llvm.runtime.LLVMFunction.getType:()Lcom/oracle/truffle/llvm/runtime/types/FunctionType;
invokevirtual com.oracle.truffle.llvm.runtime.LLVMFunctionCode$Intrinsic.cachedCallTarget:(Lcom/oracle/truffle/llvm/runtime/types/FunctionType;)Lcom/oracle/truffle/api/RootCallTarget;
astore 3
start local 3 6: goto 8
end local 3 7: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "unexpected function: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
start local 3 8: StackMap locals: com.oracle.truffle.llvm.runtime.interop.nfi.LLVMNativeWrapper$CallbackHelperNode com.oracle.truffle.llvm.runtime.LLVMFunction com.oracle.truffle.llvm.runtime.LLVMFunctionCode com.oracle.truffle.api.CallTarget com.oracle.truffle.llvm.runtime.LLVMFunctionCode
StackMap stack:
aload 3
invokestatic com.oracle.truffle.api.nodes.DirectCallNode.create:(Lcom/oracle/truffle/api/CallTarget;)Lcom/oracle/truffle/api/nodes/DirectCallNode;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/truffle/llvm/runtime/interop/nfi/LLVMNativeWrapper$CallbackHelperNode;
0 9 1 function Lcom/oracle/truffle/llvm/runtime/LLVMFunction;
0 9 2 code Lcom/oracle/truffle/llvm/runtime/LLVMFunctionCode;
3 4 3 callTarget Lcom/oracle/truffle/api/CallTarget;
6 7 3 callTarget Lcom/oracle/truffle/api/CallTarget;
8 9 3 callTarget Lcom/oracle/truffle/api/CallTarget;
1 9 4 functionCode Lcom/oracle/truffle/llvm/runtime/LLVMFunctionCode;
MethodParameters:
Name Flags
function
code
protected static com.oracle.truffle.llvm.runtime.interop.nfi.LLVMNativeConvertNode[] createFromNativeNodes(com.oracle.truffle.llvm.runtime.types.FunctionType);
descriptor: (Lcom/oracle/truffle/llvm/runtime/types/FunctionType;)[Lcom/oracle/truffle/llvm/runtime/interop/nfi/LLVMNativeConvertNode;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.llvm.runtime.types.FunctionType.getNumberOfArguments:()I
anewarray com.oracle.truffle.llvm.runtime.interop.nfi.LLVMNativeConvertNode
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: com.oracle.truffle.llvm.runtime.interop.nfi.LLVMNativeConvertNode[] int
StackMap stack:
aload 1
iload 2
aload 0
iload 2
invokevirtual com.oracle.truffle.llvm.runtime.types.FunctionType.getArgumentType:(I)Lcom/oracle/truffle/llvm/runtime/types/Type;
invokestatic com.oracle.truffle.llvm.runtime.interop.nfi.LLVMNativeConvertNode.createFromNative:(Lcom/oracle/truffle/llvm/runtime/types/Type;)Lcom/oracle/truffle/llvm/runtime/interop/nfi/LLVMNativeConvertNode;
aastore
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
aload 0
invokevirtual com.oracle.truffle.llvm.runtime.types.FunctionType.getNumberOfArguments:()I
if_icmplt 3
end local 2 6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 type Lcom/oracle/truffle/llvm/runtime/types/FunctionType;
1 7 1 ret [Lcom/oracle/truffle/llvm/runtime/interop/nfi/LLVMNativeConvertNode;
2 6 2 i I
MethodParameters:
Name Flags
type
private static java.lang.Object[] prepareCallbackArguments(com.oracle.truffle.llvm.runtime.memory.LLVMStack, java.lang.Object[], com.oracle.truffle.llvm.runtime.interop.nfi.LLVMNativeConvertNode[]);
descriptor: (Lcom/oracle/truffle/llvm/runtime/memory/LLVMStack;[Ljava/lang/Object;[Lcom/oracle/truffle/llvm/runtime/interop/nfi/LLVMNativeConvertNode;)[Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
arraylength
iconst_1
iadd
anewarray java.lang.Object
astore 3
start local 3 1: aload 3
iconst_0
aload 0
aastore
2: iconst_0
istore 4
start local 4 3: goto 6
4: StackMap locals: java.lang.Object[] int
StackMap stack:
aload 3
iload 4
iconst_1
iadd
aload 2
iload 4
aaload
aload 1
iload 4
aaload
invokevirtual com.oracle.truffle.llvm.runtime.interop.nfi.LLVMNativeConvertNode.executeConvert:(Ljava/lang/Object;)Ljava/lang/Object;
aastore
5: iinc 4 1
StackMap locals:
StackMap stack:
6: iload 4
aload 2
arraylength
if_icmplt 4
end local 4 7: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 stack Lcom/oracle/truffle/llvm/runtime/memory/LLVMStack;
0 8 1 arguments [Ljava/lang/Object;
0 8 2 fromNative [Lcom/oracle/truffle/llvm/runtime/interop/nfi/LLVMNativeConvertNode;
1 8 3 callbackArgs [Ljava/lang/Object;
3 7 4 i I
RuntimeVisibleAnnotations:
com.oracle.truffle.api.nodes.ExplodeLoop()
MethodParameters:
Name Flags
stack
arguments
fromNative
}
SourceFile: "LLVMNativeWrapper.java"
NestHost: com.oracle.truffle.llvm.runtime.interop.nfi.LLVMNativeWrapper
InnerClasses:
public final Intrinsic = com.oracle.truffle.llvm.runtime.LLVMFunctionCode$Intrinsic of com.oracle.truffle.llvm.runtime.LLVMFunctionCode
abstract CallbackHelperNode = com.oracle.truffle.llvm.runtime.interop.nfi.LLVMNativeWrapper$CallbackHelperNode of com.oracle.truffle.llvm.runtime.interop.nfi.LLVMNativeWrapper
RuntimeInvisibleAnnotations:
com.oracle.truffle.api.dsl.GenerateUncached()
com.oracle.truffle.api.dsl.ImportStatic(value = {Lcom/oracle/truffle/llvm/runtime/LLVMLanguage;})