public class com.oracle.truffle.sl.test.PassItselfBackViaContextTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.sl.test.PassItselfBackViaContextTest
super_class: java.lang.Object
{
private org.graalvm.polyglot.Context context;
descriptor: Lorg/graalvm/polyglot/Context;
flags: (0x0002) ACC_PRIVATE
private com.oracle.truffle.sl.test.PassItselfBackViaContextTest$MyObj myObj;
descriptor: Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest$MyObj;
flags: (0x0002) ACC_PRIVATE
private org.graalvm.polyglot.Value myObjWrapped;
descriptor: Lorg/graalvm/polyglot/Value;
flags: (0x0002) ACC_PRIVATE
private com.oracle.truffle.sl.test.PassItselfBackViaContextTest$CallWithValue myObjCall;
descriptor: Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest$CallWithValue;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest;
public void callbackWithParamTen();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.myObjWrapped:Lorg/graalvm/polyglot/Value;
iconst_1
anewarray java.lang.Object
dup
iconst_0
bipush 10
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
pop
1: ldc "Assigned to ten"
bipush 10
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 0
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.myObj:Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest$MyObj;
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest$MyObj.value:Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest;
RuntimeVisibleAnnotations:
org.junit.Test()
public void callbackWithParamTruffleObject();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.myObjWrapped:Lorg/graalvm/polyglot/Value;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.myObjWrapped:Lorg/graalvm/polyglot/Value;
aastore
invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
pop
1: ldc "Assigned to itself"
aload 0
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.myObj:Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest$MyObj;
aload 0
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.myObj:Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest$MyObj;
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest$MyObj.value:Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest;
RuntimeVisibleAnnotations:
org.junit.Test()
public void callbackWithValueTen();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.myObjCall:Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest$CallWithValue;
bipush 10
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface com.oracle.truffle.sl.test.PassItselfBackViaContextTest$CallWithValue.call:(Ljava/lang/Object;)V
1: ldc "Assigned to ten"
bipush 10
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 0
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.myObj:Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest$MyObj;
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest$MyObj.value:Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest;
RuntimeVisibleAnnotations:
org.junit.Test()
public void callbackWithValueTruffleObject();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.myObjCall:Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest$CallWithValue;
aload 0
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.myObjWrapped:Lorg/graalvm/polyglot/Value;
invokeinterface com.oracle.truffle.sl.test.PassItselfBackViaContextTest$CallWithValue.call:(Ljava/lang/Object;)V
1: ldc "Assigned to itself"
aload 0
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.myObj:Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest$MyObj;
aload 0
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.myObj:Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest$MyObj;
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest$MyObj.value:Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest;
RuntimeVisibleAnnotations:
org.junit.Test()
public void prepareSystem();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
new com.oracle.truffle.sl.test.PassItselfBackViaContextTest$MyObj
dup
invokespecial com.oracle.truffle.sl.test.PassItselfBackViaContextTest$MyObj.<init>:()V
putfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.myObj:Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest$MyObj;
1: aload 0
iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
getstatic org.graalvm.polyglot.PolyglotAccess.ALL:Lorg/graalvm/polyglot/PolyglotAccess;
invokevirtual org.graalvm.polyglot.Context$Builder.allowPolyglotAccess:(Lorg/graalvm/polyglot/PolyglotAccess;)Lorg/graalvm/polyglot/Context$Builder;
invokevirtual org.graalvm.polyglot.Context$Builder.build:()Lorg/graalvm/polyglot/Context;
putfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.context:Lorg/graalvm/polyglot/Context;
2: aload 0
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.getPolyglotBindings:()Lorg/graalvm/polyglot/Value;
ldc "myObj"
aload 0
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.myObj:Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest$MyObj;
invokevirtual org.graalvm.polyglot.Value.putMember:(Ljava/lang/String;Ljava/lang/Object;)V
3: aload 0
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.context:Lorg/graalvm/polyglot/Context;
ldc "sl"
ldc "function main() {\n return import(\"myObj\");\n}\n"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
pop
4: aload 0
aload 0
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.context:Lorg/graalvm/polyglot/Context;
ldc "sl"
invokevirtual org.graalvm.polyglot.Context.getBindings:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
ldc "main"
invokevirtual org.graalvm.polyglot.Value.getMember:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
iconst_0
anewarray java.lang.Object
invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
putfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.myObjWrapped:Lorg/graalvm/polyglot/Value;
5: aload 0
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.myObjWrapped:Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.isNull:()Z
invokestatic org.junit.Assert.assertFalse:(Z)V
6: aload 0
aload 0
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.myObjWrapped:Lorg/graalvm/polyglot/Value;
ldc Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest$CallWithValue;
invokevirtual org.graalvm.polyglot.Value.as:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast com.oracle.truffle.sl.test.PassItselfBackViaContextTest$CallWithValue
putfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.myObjCall:Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest$CallWithValue;
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest;
RuntimeVisibleAnnotations:
org.junit.Before()
public void disposeSystem();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.sl.test.PassItselfBackViaContextTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/sl/test/PassItselfBackViaContextTest;
RuntimeVisibleAnnotations:
org.junit.After()
}
SourceFile: "PassItselfBackViaContextTest.java"
NestMembers:
com.oracle.truffle.sl.test.PassItselfBackViaContextTest$CallWithValue com.oracle.truffle.sl.test.PassItselfBackViaContextTest$MyLang com.oracle.truffle.sl.test.PassItselfBackViaContextTest$MyObj
InnerClasses:
abstract CallWithValue = com.oracle.truffle.sl.test.PassItselfBackViaContextTest$CallWithValue of com.oracle.truffle.sl.test.PassItselfBackViaContextTest
abstract MyLang = com.oracle.truffle.sl.test.PassItselfBackViaContextTest$MyLang of com.oracle.truffle.sl.test.PassItselfBackViaContextTest
final MyObj = com.oracle.truffle.sl.test.PassItselfBackViaContextTest$MyObj of com.oracle.truffle.sl.test.PassItselfBackViaContextTest
public final Builder = org.graalvm.polyglot.Context$Builder of org.graalvm.polyglot.Context