public class com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode extends com.oracle.truffle.nfi.test.NFITest$NFITestRootNode
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode
super_class: com.oracle.truffle.nfi.test.NFITest$NFITestRootNode
{
final java.lang.Object function;
descriptor: Ljava/lang/Object;
flags: (0x0010) ACC_FINAL
final java.lang.Object free;
descriptor: Ljava/lang/Object;
flags: (0x0010) ACC_FINAL
com.oracle.truffle.api.interop.InteropLibrary functionInterop;
descriptor: Lcom/oracle/truffle/api/interop/InteropLibrary;
flags: (0x0000)
RuntimeVisibleAnnotations:
com.oracle.truffle.api.nodes.Node$Child()
com.oracle.truffle.api.interop.InteropLibrary freeInterop;
descriptor: Lcom/oracle/truffle/api/interop/InteropLibrary;
flags: (0x0000)
RuntimeVisibleAnnotations:
com.oracle.truffle.api.nodes.Node$Child()
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 // com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode this
0: .line 126
aload 0 /* this */
invokespecial com.oracle.truffle.nfi.test.NFITest$NFITestRootNode.<init>:()V
1: .line 128
aload 0 /* this */
ldc "string_ret_dynamic"
ldc "(sint32):string"
invokestatic com.oracle.truffle.nfi.test.StringNFITest.lookupAndBind:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
putfield com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode.function:Ljava/lang/Object;
2: .line 129
aload 0 /* this */
ldc "free_dynamic_string"
ldc "(pointer):sint32"
invokestatic com.oracle.truffle.nfi.test.StringNFITest.lookupAndBind:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
putfield com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode.free:Ljava/lang/Object;
3: .line 131
aload 0 /* this */
aload 0 /* this */
getfield com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode.function:Ljava/lang/Object;
invokestatic com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode.getInterop:(Ljava/lang/Object;)Lcom/oracle/truffle/api/interop/InteropLibrary;
putfield com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode.functionInterop:Lcom/oracle/truffle/api/interop/InteropLibrary;
4: .line 132
aload 0 /* this */
aload 0 /* this */
getfield com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode.free:Ljava/lang/Object;
invokestatic com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode.getInterop:(Ljava/lang/Object;)Lcom/oracle/truffle/api/interop/InteropLibrary;
putfield com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode.freeInterop:Lcom/oracle/truffle/api/interop/InteropLibrary;
5: .line 126
return
end local 0 // com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode this
LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/truffle/nfi/test/StringNFITest$StringRetDynamicNode;
public java.lang.Object executeTest(com.oracle.truffle.api.frame.VirtualFrame);
descriptor: (Lcom/oracle/truffle/api/frame/VirtualFrame;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=2
start local 0 // com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode this
start local 1 // com.oracle.truffle.api.frame.VirtualFrame frame
0: .line 136
aload 0 /* this */
getfield com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode.functionInterop:Lcom/oracle/truffle/api/interop/InteropLibrary;
aload 0 /* this */
getfield com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode.function:Ljava/lang/Object;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1 /* frame */
invokeinterface com.oracle.truffle.api.frame.VirtualFrame.getArguments:()[Ljava/lang/Object;
iconst_0
aaload
aastore
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.execute:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
astore 2 /* ret */
start local 2 // java.lang.Object ret
1: .line 138
aload 2 /* ret */
invokestatic com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode.checkRet:(Ljava/lang/Object;)V
2: .line 144
aload 0 /* this */
getfield com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode.freeInterop:Lcom/oracle/truffle/api/interop/InteropLibrary;
aload 0 /* this */
getfield com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode.free:Ljava/lang/Object;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2 /* ret */
aastore
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.execute:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
astore 3 /* magic */
start local 3 // java.lang.Object magic
3: .line 145
bipush 42
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 3 /* magic */
invokestatic com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
4: .line 147
aconst_null
areturn
end local 3 // java.lang.Object magic
end local 2 // java.lang.Object ret
end local 1 // com.oracle.truffle.api.frame.VirtualFrame frame
end local 0 // com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode this
LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/nfi/test/StringNFITest$StringRetDynamicNode;
0 5 1 frame Lcom/oracle/truffle/api/frame/VirtualFrame;
1 5 2 ret Ljava/lang/Object;
3 5 3 magic Ljava/lang/Object;
Exceptions:
throws com.oracle.truffle.api.interop.InteropException
MethodParameters:
Name Flags
frame
private static void checkRet(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 // java.lang.Object obj
0: .line 152
ldc "isString"
getstatic com.oracle.truffle.nfi.test.StringNFITest.UNCACHED_INTEROP:Lcom/oracle/truffle/api/interop/InteropLibrary;
aload 0 /* obj */
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isString:(Ljava/lang/Object;)Z
invokestatic org.junit.Assert.assertTrue:(Ljava/lang/String;Z)V
1: .line 153
ldc "return value"
ldc "42"
getstatic com.oracle.truffle.nfi.test.StringNFITest.UNCACHED_INTEROP:Lcom/oracle/truffle/api/interop/InteropLibrary;
aload 0 /* obj */
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.asString:(Ljava/lang/Object;)Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
2: .line 154
return
end local 0 // java.lang.Object obj
LocalVariableTable:
Start End Slot Name Signature
0 3 0 obj Ljava/lang/Object;
Exceptions:
throws com.oracle.truffle.api.interop.UnsupportedMessageException
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
obj
}
SourceFile: "StringNFITest.java"
NestHost: com.oracle.truffle.nfi.test.StringNFITest
InnerClasses:
public abstract TruffleBoundary = com.oracle.truffle.api.CompilerDirectives$TruffleBoundary of com.oracle.truffle.api.CompilerDirectives
public abstract Child = com.oracle.truffle.api.nodes.Node$Child of com.oracle.truffle.api.nodes.Node
protected abstract NFITestRootNode = com.oracle.truffle.nfi.test.NFITest$NFITestRootNode of com.oracle.truffle.nfi.test.NFITest
public StringRetDynamicNode = com.oracle.truffle.nfi.test.StringNFITest$StringRetDynamicNode of com.oracle.truffle.nfi.test.StringNFITest