public class com.oracle.truffle.js.test.polyglot.InnerContextTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.js.test.polyglot.InnerContextTest
super_class: java.lang.Object
{
public final org.junit.rules.ExpectedException exception;
descriptor: Lorg/junit/rules/ExpectedException;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
RuntimeVisibleAnnotations:
org.junit.Rule()
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
invokestatic org.junit.rules.ExpectedException.none:()Lorg/junit/rules/ExpectedException;
putfield com.oracle.truffle.js.test.polyglot.InnerContextTest.exception:Lorg/junit/rules/ExpectedException;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/js/test/polyglot/InnerContextTest;
public void testInnerWithoutOuterJSContext();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: new com.oracle.truffle.js.test.polyglot.InnerContextTest$1
dup
aload 0
invokespecial com.oracle.truffle.js.test.polyglot.InnerContextTest$1.<init>:(Lcom/oracle/truffle/js/test/polyglot/InnerContextTest;)V
invokestatic com.oracle.truffle.js.test.polyglot.TestLanguage.withTestLanguage:(Lcom/oracle/truffle/js/test/polyglot/TestLanguage;)Ljava/lang/AutoCloseable;
astore 3
start local 3 2: aconst_null
astore 4
aconst_null
astore 5
3: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "js"
aastore
dup
iconst_1
ldc "jsTestLanguage"
aastore
invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([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;
astore 6
start local 6 4: aload 6
ldc "jsTestLanguage"
ldc ""
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
astore 7
start local 7 5: aload 7
invokevirtual org.graalvm.polyglot.Value.asInt:()I
i2l
ldc 42
invokestatic org.junit.Assert.assertEquals:(JJ)V
end local 7 6: aload 6
ifnull 12
aload 6
invokevirtual org.graalvm.polyglot.Context.close:()V
goto 12
StackMap locals: com.oracle.truffle.js.test.polyglot.InnerContextTest java.lang.Throwable java.lang.Throwable java.lang.AutoCloseable java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
7: astore 4
aload 6
ifnull 8
aload 6
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 6 StackMap locals:
StackMap stack:
8: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 5
aload 4
ifnonnull 10
aload 5
astore 4
goto 11
StackMap locals:
StackMap stack:
10: aload 4
aload 5
if_acmpeq 11
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
11: aload 4
athrow
12: StackMap locals:
StackMap stack:
aconst_null
astore 4
aconst_null
astore 5
13: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "js"
aastore
dup
iconst_1
ldc "jsTestLanguage"
aastore
invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([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;
astore 6
start local 6 14: aload 6
ldc "js"
invokevirtual org.graalvm.polyglot.Context.initialize:(Ljava/lang/String;)Z
pop
15: aload 6
ldc "jsTestLanguage"
ldc ""
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
16: aload 6
ifnull 22
aload 6
invokevirtual org.graalvm.polyglot.Context.close:()V
goto 22
StackMap locals: com.oracle.truffle.js.test.polyglot.InnerContextTest java.lang.Throwable java.lang.Throwable java.lang.AutoCloseable java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
17: astore 4
aload 6
ifnull 18
aload 6
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 6 StackMap locals:
StackMap stack:
18: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
19: astore 5
aload 4
ifnonnull 20
aload 5
astore 4
goto 21
StackMap locals:
StackMap stack:
20: aload 4
aload 5
if_acmpeq 21
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
21: aload 4
athrow
22: StackMap locals:
StackMap stack:
aload 3
ifnull 28
aload 3
invokeinterface java.lang.AutoCloseable.close:()V
goto 28
StackMap locals:
StackMap stack: java.lang.Throwable
23: astore 1
aload 3
ifnull 24
aload 3
invokeinterface java.lang.AutoCloseable.close:()V
end local 3 StackMap locals:
StackMap stack:
24: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
25: astore 2
aload 1
ifnonnull 26
aload 2
astore 1
goto 27
StackMap locals:
StackMap stack:
26: aload 1
aload 2
if_acmpeq 27
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
27: aload 1
athrow
28: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lcom/oracle/truffle/js/test/polyglot/InnerContextTest;
2 24 3 languageScope Ljava/lang/AutoCloseable;
4 8 6 context Lorg/graalvm/polyglot/Context;
5 6 7 result Lorg/graalvm/polyglot/Value;
14 18 6 context Lorg/graalvm/polyglot/Context;
Exception table:
from to target type
4 6 7 any
3 9 9 any
14 16 17 any
13 19 19 any
2 22 23 any
1 25 25 any
Exceptions:
throws java.lang.Exception
RuntimeVisibleAnnotations:
org.junit.Test()
public void testInnerWithoutOuterJSContextWithInterop();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: new com.oracle.truffle.js.test.polyglot.InnerContextTest$2
dup
aload 0
invokespecial com.oracle.truffle.js.test.polyglot.InnerContextTest$2.<init>:(Lcom/oracle/truffle/js/test/polyglot/InnerContextTest;)V
invokestatic com.oracle.truffle.js.test.polyglot.TestLanguage.withTestLanguage:(Lcom/oracle/truffle/js/test/polyglot/TestLanguage;)Ljava/lang/AutoCloseable;
astore 3
start local 3 2: aconst_null
astore 4
aconst_null
astore 5
3: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "js"
aastore
dup
iconst_1
ldc "jsTestLanguage"
aastore
invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([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;
astore 6
start local 6 4: aload 6
ldc "jsTestLanguage"
ldc ""
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
ldc Ljava/lang/String;
invokevirtual org.graalvm.polyglot.Value.as:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast java.lang.String
astore 7
start local 7 5: ldc "11.600000001490116:test"
aload 7
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
end local 7 6: aload 6
ifnull 12
aload 6
invokevirtual org.graalvm.polyglot.Context.close:()V
goto 12
StackMap locals: com.oracle.truffle.js.test.polyglot.InnerContextTest java.lang.Throwable java.lang.Throwable java.lang.AutoCloseable java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
7: astore 4
aload 6
ifnull 8
aload 6
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 6 StackMap locals:
StackMap stack:
8: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 5
aload 4
ifnonnull 10
aload 5
astore 4
goto 11
StackMap locals:
StackMap stack:
10: aload 4
aload 5
if_acmpeq 11
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
11: aload 4
athrow
12: StackMap locals:
StackMap stack:
aconst_null
astore 4
aconst_null
astore 5
13: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "js"
aastore
dup
iconst_1
ldc "jsTestLanguage"
aastore
invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([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;
astore 6
start local 6 14: aload 6
ldc "js"
invokevirtual org.graalvm.polyglot.Context.initialize:(Ljava/lang/String;)Z
pop
15: aload 6
ldc "jsTestLanguage"
ldc ""
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
16: aload 6
ifnull 22
aload 6
invokevirtual org.graalvm.polyglot.Context.close:()V
goto 22
StackMap locals: com.oracle.truffle.js.test.polyglot.InnerContextTest java.lang.Throwable java.lang.Throwable java.lang.AutoCloseable java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
17: astore 4
aload 6
ifnull 18
aload 6
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 6 StackMap locals:
StackMap stack:
18: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
19: astore 5
aload 4
ifnonnull 20
aload 5
astore 4
goto 21
StackMap locals:
StackMap stack:
20: aload 4
aload 5
if_acmpeq 21
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
21: aload 4
athrow
22: StackMap locals:
StackMap stack:
aload 3
ifnull 28
aload 3
invokeinterface java.lang.AutoCloseable.close:()V
goto 28
StackMap locals:
StackMap stack: java.lang.Throwable
23: astore 1
aload 3
ifnull 24
aload 3
invokeinterface java.lang.AutoCloseable.close:()V
end local 3 StackMap locals:
StackMap stack:
24: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
25: astore 2
aload 1
ifnonnull 26
aload 2
astore 1
goto 27
StackMap locals:
StackMap stack:
26: aload 1
aload 2
if_acmpeq 27
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
27: aload 1
athrow
28: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lcom/oracle/truffle/js/test/polyglot/InnerContextTest;
2 24 3 languageScope Ljava/lang/AutoCloseable;
4 8 6 context Lorg/graalvm/polyglot/Context;
5 6 7 result Ljava/lang/String;
14 18 6 context Lorg/graalvm/polyglot/Context;
Exception table:
from to target type
4 6 7 any
3 9 9 any
14 16 17 any
13 19 19 any
2 22 23 any
1 25 25 any
Exceptions:
throws java.lang.Exception
RuntimeVisibleAnnotations:
org.junit.Test()
public void innerParseWithArgumentsHasLocalEnvironment();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=10, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.js.test.polyglot.InnerContextTest.exception:Lorg/junit/rules/ExpectedException;
ldc Lorg/graalvm/polyglot/PolyglotException;
invokevirtual org.junit.rules.ExpectedException.expect:(Ljava/lang/Class;)V
1: aload 0
getfield com.oracle.truffle.js.test.polyglot.InnerContextTest.exception:Lorg/junit/rules/ExpectedException;
ldc "x is not defined"
invokevirtual org.junit.rules.ExpectedException.expectMessage:(Ljava/lang/String;)V
2: aconst_null
astore 1
aconst_null
astore 2
3: new com.oracle.truffle.js.test.polyglot.InnerContextTest$ProxyParsingLanguage
dup
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "a"
aastore
invokespecial com.oracle.truffle.js.test.polyglot.InnerContextTest$ProxyParsingLanguage.<init>:([Ljava/lang/String;)V
invokestatic com.oracle.truffle.js.test.polyglot.TestLanguage.withTestLanguage:(Lcom/oracle/truffle/js/test/polyglot/TestLanguage;)Ljava/lang/AutoCloseable;
astore 3
start local 3 4: aconst_null
astore 4
aconst_null
astore 5
5: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "js"
aastore
dup
iconst_1
ldc "jsTestLanguage"
aastore
invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([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;
astore 6
start local 6 6: aload 6
ldc "jsTestLanguage"
ldc "var x = 3; x"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
astore 7
start local 7 7: aload 7
iconst_0
anewarray java.lang.Object
invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asInt:()I
istore 8
start local 8 8: ldc 3
iload 8
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
9: aload 6
ldc "jsTestLanguage"
ldc "x"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
astore 9
start local 9 10: aload 9
iconst_0
anewarray java.lang.Object
invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asInt:()I
pop
end local 9 end local 8 end local 7 11: aload 6
ifnull 17
aload 6
invokevirtual org.graalvm.polyglot.Context.close:()V
goto 17
StackMap locals: com.oracle.truffle.js.test.polyglot.InnerContextTest java.lang.Throwable java.lang.Throwable java.lang.AutoCloseable java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
12: astore 4
aload 6
ifnull 13
aload 6
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 6 StackMap locals:
StackMap stack:
13: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
14: astore 5
aload 4
ifnonnull 15
aload 5
astore 4
goto 16
StackMap locals:
StackMap stack:
15: aload 4
aload 5
if_acmpeq 16
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
16: aload 4
athrow
17: StackMap locals:
StackMap stack:
aload 3
ifnull 23
aload 3
invokeinterface java.lang.AutoCloseable.close:()V
goto 23
StackMap locals:
StackMap stack: java.lang.Throwable
18: astore 1
aload 3
ifnull 19
aload 3
invokeinterface java.lang.AutoCloseable.close:()V
end local 3 StackMap locals:
StackMap stack:
19: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
20: astore 2
aload 1
ifnonnull 21
aload 2
astore 1
goto 22
StackMap locals:
StackMap stack:
21: aload 1
aload 2
if_acmpeq 22
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
22: aload 1
athrow
23: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lcom/oracle/truffle/js/test/polyglot/InnerContextTest;
4 19 3 languageScope Ljava/lang/AutoCloseable;
6 13 6 context Lorg/graalvm/polyglot/Context;
7 11 7 constEval1 Lorg/graalvm/polyglot/Value;
8 11 8 x1 I
10 11 9 constEval2 Lorg/graalvm/polyglot/Value;
Exception table:
from to target type
6 11 12 any
5 14 14 any
4 17 18 any
3 20 20 any
Exceptions:
throws java.lang.Exception
RuntimeVisibleAnnotations:
org.junit.Test()
public void innerParseWithArgumentsEnvironmentVarClash();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=11, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: new com.oracle.truffle.js.test.polyglot.InnerContextTest$ProxyParsingLanguage
dup
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "a"
aastore
invokespecial com.oracle.truffle.js.test.polyglot.InnerContextTest$ProxyParsingLanguage.<init>:([Ljava/lang/String;)V
invokestatic com.oracle.truffle.js.test.polyglot.TestLanguage.withTestLanguage:(Lcom/oracle/truffle/js/test/polyglot/TestLanguage;)Ljava/lang/AutoCloseable;
astore 3
start local 3 2: aconst_null
astore 4
aconst_null
astore 5
3: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "js"
aastore
dup
iconst_1
ldc "jsTestLanguage"
aastore
invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([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;
astore 6
start local 6 4: aload 6
ldc "jsTestLanguage"
ldc "if(a != 10) { throw 'Expected 10.'; }; var a = 3; a"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
astore 7
start local 7 5: aload 7
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;
invokevirtual org.graalvm.polyglot.Value.asInt:()I
istore 8
start local 8 6: ldc 3
iload 8
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
7: aload 6
ldc "jsTestLanguage"
ldc "a"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
astore 9
start local 9 8: aload 9
iconst_1
anewarray java.lang.Object
dup
iconst_0
bipush 15
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asInt:()I
istore 10
start local 10 9: ldc 15
iload 10
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
end local 10 end local 9 end local 8 end local 7 10: aload 6
ifnull 16
aload 6
invokevirtual org.graalvm.polyglot.Context.close:()V
goto 16
StackMap locals: com.oracle.truffle.js.test.polyglot.InnerContextTest java.lang.Throwable java.lang.Throwable java.lang.AutoCloseable java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
11: astore 4
aload 6
ifnull 12
aload 6
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 6 StackMap locals:
StackMap stack:
12: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
13: astore 5
aload 4
ifnonnull 14
aload 5
astore 4
goto 15
StackMap locals:
StackMap stack:
14: aload 4
aload 5
if_acmpeq 15
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
15: aload 4
athrow
16: StackMap locals:
StackMap stack:
aload 3
ifnull 22
aload 3
invokeinterface java.lang.AutoCloseable.close:()V
goto 22
StackMap locals:
StackMap stack: java.lang.Throwable
17: astore 1
aload 3
ifnull 18
aload 3
invokeinterface java.lang.AutoCloseable.close:()V
end local 3 StackMap locals:
StackMap stack:
18: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
19: astore 2
aload 1
ifnonnull 20
aload 2
astore 1
goto 21
StackMap locals:
StackMap stack:
20: aload 1
aload 2
if_acmpeq 21
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
21: aload 1
athrow
22: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lcom/oracle/truffle/js/test/polyglot/InnerContextTest;
2 18 3 languageScope Ljava/lang/AutoCloseable;
4 12 6 context Lorg/graalvm/polyglot/Context;
5 10 7 constEval1 Lorg/graalvm/polyglot/Value;
6 10 8 x1 I
8 10 9 constEval2 Lorg/graalvm/polyglot/Value;
9 10 10 x2 I
Exception table:
from to target type
4 10 11 any
3 13 13 any
2 16 17 any
1 19 19 any
Exceptions:
throws java.lang.Exception
RuntimeVisibleAnnotations:
org.junit.Test()
public void innerParseWithArgumentsEnvironmentLetClash();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.js.test.polyglot.InnerContextTest.exception:Lorg/junit/rules/ExpectedException;
ldc Lorg/graalvm/polyglot/PolyglotException;
invokevirtual org.junit.rules.ExpectedException.expect:(Ljava/lang/Class;)V
1: aload 0
getfield com.oracle.truffle.js.test.polyglot.InnerContextTest.exception:Lorg/junit/rules/ExpectedException;
ldc "Variable \"a\" has already been declared"
invokevirtual org.junit.rules.ExpectedException.expectMessage:(Ljava/lang/String;)V
2: aconst_null
astore 1
aconst_null
astore 2
3: new com.oracle.truffle.js.test.polyglot.InnerContextTest$ProxyParsingLanguage
dup
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "a"
aastore
invokespecial com.oracle.truffle.js.test.polyglot.InnerContextTest$ProxyParsingLanguage.<init>:([Ljava/lang/String;)V
invokestatic com.oracle.truffle.js.test.polyglot.TestLanguage.withTestLanguage:(Lcom/oracle/truffle/js/test/polyglot/TestLanguage;)Ljava/lang/AutoCloseable;
astore 3
start local 3 4: aconst_null
astore 4
aconst_null
astore 5
5: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "js"
aastore
dup
iconst_1
ldc "jsTestLanguage"
aastore
invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([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;
astore 6
start local 6 6: aload 6
ldc "jsTestLanguage"
ldc "let a = 3; a"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
astore 7
start local 7 7: aload 7
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;
invokevirtual org.graalvm.polyglot.Value.asInt:()I
pop
end local 7 8: aload 6
ifnull 14
aload 6
invokevirtual org.graalvm.polyglot.Context.close:()V
goto 14
StackMap locals: com.oracle.truffle.js.test.polyglot.InnerContextTest java.lang.Throwable java.lang.Throwable java.lang.AutoCloseable java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
9: astore 4
aload 6
ifnull 10
aload 6
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 6 StackMap locals:
StackMap stack:
10: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
11: astore 5
aload 4
ifnonnull 12
aload 5
astore 4
goto 13
StackMap locals:
StackMap stack:
12: aload 4
aload 5
if_acmpeq 13
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
13: aload 4
athrow
14: StackMap locals:
StackMap stack:
aload 3
ifnull 20
aload 3
invokeinterface java.lang.AutoCloseable.close:()V
goto 20
StackMap locals:
StackMap stack: java.lang.Throwable
15: astore 1
aload 3
ifnull 16
aload 3
invokeinterface java.lang.AutoCloseable.close:()V
end local 3 StackMap locals:
StackMap stack:
16: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
17: astore 2
aload 1
ifnonnull 18
aload 2
astore 1
goto 19
StackMap locals:
StackMap stack:
18: aload 1
aload 2
if_acmpeq 19
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
19: aload 1
athrow
20: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lcom/oracle/truffle/js/test/polyglot/InnerContextTest;
4 16 3 languageScope Ljava/lang/AutoCloseable;
6 10 6 context Lorg/graalvm/polyglot/Context;
7 8 7 constEval1 Lorg/graalvm/polyglot/Value;
Exception table:
from to target type
6 8 9 any
5 11 11 any
4 14 15 any
3 17 17 any
Exceptions:
throws java.lang.Exception
RuntimeVisibleAnnotations:
org.junit.Test()
public void innerParseConsistencyWithAndWithoutArguments();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=11, args_size=1
start local 0 0: aconst_null
astore 3
aconst_null
astore 4
1: new com.oracle.truffle.js.test.polyglot.InnerContextTest$ProxyParsingLanguage
dup
iconst_0
anewarray java.lang.String
invokespecial com.oracle.truffle.js.test.polyglot.InnerContextTest$ProxyParsingLanguage.<init>:([Ljava/lang/String;)V
invokestatic com.oracle.truffle.js.test.polyglot.TestLanguage.withTestLanguage:(Lcom/oracle/truffle/js/test/polyglot/TestLanguage;)Ljava/lang/AutoCloseable;
astore 5
start local 5 2: aconst_null
astore 6
aconst_null
astore 7
3: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "js"
aastore
dup
iconst_1
ldc "jsTestLanguage"
aastore
invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([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;
astore 8
start local 8 4: aload 8
ldc "jsTestLanguage"
ldc "'hello world'"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
astore 9
start local 9 5: aload 9
iconst_0
anewarray java.lang.Object
invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
astore 10
start local 10 6: aload 10
ldc Ljava/lang/String;
invokevirtual org.graalvm.polyglot.Value.as:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast java.lang.String
astore 1
end local 10 end local 9 start local 1 7: aload 8
ifnull 13
aload 8
invokevirtual org.graalvm.polyglot.Context.close:()V
goto 13
end local 1 StackMap locals: com.oracle.truffle.js.test.polyglot.InnerContextTest top top java.lang.Throwable java.lang.Throwable java.lang.AutoCloseable java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
8: astore 6
aload 8
ifnull 9
aload 8
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 8 StackMap locals:
StackMap stack:
9: aload 6
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 7
aload 6
ifnonnull 11
aload 7
astore 6
goto 12
StackMap locals:
StackMap stack:
11: aload 6
aload 7
if_acmpeq 12
aload 6
aload 7
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
12: aload 6
athrow
start local 1 13: StackMap locals: com.oracle.truffle.js.test.polyglot.InnerContextTest java.lang.String top java.lang.Throwable java.lang.Throwable java.lang.AutoCloseable
StackMap stack:
aload 5
ifnull 19
aload 5
invokeinterface java.lang.AutoCloseable.close:()V
goto 19
end local 1 StackMap locals: com.oracle.truffle.js.test.polyglot.InnerContextTest top top java.lang.Throwable java.lang.Throwable java.lang.AutoCloseable
StackMap stack: java.lang.Throwable
14: astore 3
aload 5
ifnull 15
aload 5
invokeinterface java.lang.AutoCloseable.close:()V
end local 5 StackMap locals:
StackMap stack:
15: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
16: astore 4
aload 3
ifnonnull 17
aload 4
astore 3
goto 18
StackMap locals:
StackMap stack:
17: aload 3
aload 4
if_acmpeq 18
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
18: aload 3
athrow
start local 1 19: StackMap locals: com.oracle.truffle.js.test.polyglot.InnerContextTest java.lang.String
StackMap stack:
aconst_null
astore 3
aconst_null
astore 4
20: new com.oracle.truffle.js.test.polyglot.InnerContextTest$ProxyParsingLanguage
dup
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "unused-parameter"
aastore
invokespecial com.oracle.truffle.js.test.polyglot.InnerContextTest$ProxyParsingLanguage.<init>:([Ljava/lang/String;)V
invokestatic com.oracle.truffle.js.test.polyglot.TestLanguage.withTestLanguage:(Lcom/oracle/truffle/js/test/polyglot/TestLanguage;)Ljava/lang/AutoCloseable;
astore 5
start local 5 21: aconst_null
astore 6
aconst_null
astore 7
22: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "js"
aastore
dup
iconst_1
ldc "jsTestLanguage"
aastore
invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([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;
astore 8
start local 8 23: aload 8
ldc "jsTestLanguage"
ldc "'hello world'"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
astore 9
start local 9 24: aload 9
iconst_1
anewarray java.lang.Object
dup
iconst_0
ldc "unused parameter value"
aastore
invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
astore 10
start local 10 25: aload 10
ldc Ljava/lang/String;
invokevirtual org.graalvm.polyglot.Value.as:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
end local 10 end local 9 start local 2 26: aload 8
ifnull 32
aload 8
invokevirtual org.graalvm.polyglot.Context.close:()V
goto 32
end local 2 StackMap locals: com.oracle.truffle.js.test.polyglot.InnerContextTest java.lang.String top java.lang.Throwable java.lang.Throwable java.lang.AutoCloseable java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
27: astore 6
aload 8
ifnull 28
aload 8
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 8 StackMap locals:
StackMap stack:
28: aload 6
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
29: astore 7
aload 6
ifnonnull 30
aload 7
astore 6
goto 31
StackMap locals:
StackMap stack:
30: aload 6
aload 7
if_acmpeq 31
aload 6
aload 7
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
31: aload 6
athrow
start local 2 32: StackMap locals: com.oracle.truffle.js.test.polyglot.InnerContextTest java.lang.String java.lang.String java.lang.Throwable java.lang.Throwable java.lang.AutoCloseable
StackMap stack:
aload 5
ifnull 38
aload 5
invokeinterface java.lang.AutoCloseable.close:()V
goto 38
end local 2 StackMap locals: com.oracle.truffle.js.test.polyglot.InnerContextTest java.lang.String top java.lang.Throwable java.lang.Throwable java.lang.AutoCloseable
StackMap stack: java.lang.Throwable
33: astore 3
aload 5
ifnull 34
aload 5
invokeinterface java.lang.AutoCloseable.close:()V
end local 5 StackMap locals:
StackMap stack:
34: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
35: astore 4
aload 3
ifnonnull 36
aload 4
astore 3
goto 37
StackMap locals:
StackMap stack:
36: aload 3
aload 4
if_acmpeq 37
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
37: aload 3
athrow
start local 2 38: StackMap locals: com.oracle.truffle.js.test.polyglot.InnerContextTest java.lang.String java.lang.String
StackMap stack:
aload 1
aload 2
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
39: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 40 0 this Lcom/oracle/truffle/js/test/polyglot/InnerContextTest;
7 8 1 noParameters Ljava/lang/String;
13 14 1 noParameters Ljava/lang/String;
19 40 1 noParameters Ljava/lang/String;
26 27 2 withParameters Ljava/lang/String;
32 33 2 withParameters Ljava/lang/String;
38 40 2 withParameters Ljava/lang/String;
2 15 5 languageScope Ljava/lang/AutoCloseable;
4 9 8 context Lorg/graalvm/polyglot/Context;
5 7 9 constEval Lorg/graalvm/polyglot/Value;
6 7 10 helloWorld Lorg/graalvm/polyglot/Value;
21 34 5 languageScope Ljava/lang/AutoCloseable;
23 28 8 context Lorg/graalvm/polyglot/Context;
24 26 9 constEval Lorg/graalvm/polyglot/Value;
25 26 10 helloWorld Lorg/graalvm/polyglot/Value;
Exception table:
from to target type
4 7 8 any
3 10 10 any
2 13 14 any
1 16 16 any
23 26 27 any
22 29 29 any
21 32 33 any
20 35 35 any
Exceptions:
throws java.lang.Exception
RuntimeVisibleAnnotations:
org.junit.Test()
public void innerParseSimpleExpression();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=9, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: new com.oracle.truffle.js.test.polyglot.InnerContextTest$ProxyParsingLanguage
dup
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "multiplier"
aastore
invokespecial com.oracle.truffle.js.test.polyglot.InnerContextTest$ProxyParsingLanguage.<init>:([Ljava/lang/String;)V
invokestatic com.oracle.truffle.js.test.polyglot.TestLanguage.withTestLanguage:(Lcom/oracle/truffle/js/test/polyglot/TestLanguage;)Ljava/lang/AutoCloseable;
astore 3
start local 3 2: aconst_null
astore 4
aconst_null
astore 5
3: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "js"
aastore
dup
iconst_1
ldc "jsTestLanguage"
aastore
invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([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;
astore 6
start local 6 4: aload 6
ldc "jsTestLanguage"
ldc "6 * multiplier"
invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
astore 7
start local 7 5: aload 7
iconst_1
anewarray java.lang.Object
dup
iconst_0
bipush 7
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
astore 8
start local 8 6: ldc 42
aload 8
invokevirtual org.graalvm.polyglot.Value.asInt:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
end local 8 end local 7 7: aload 6
ifnull 13
aload 6
invokevirtual org.graalvm.polyglot.Context.close:()V
goto 13
StackMap locals: com.oracle.truffle.js.test.polyglot.InnerContextTest java.lang.Throwable java.lang.Throwable java.lang.AutoCloseable java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
8: astore 4
aload 6
ifnull 9
aload 6
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 6 StackMap locals:
StackMap stack:
9: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 5
aload 4
ifnonnull 11
aload 5
astore 4
goto 12
StackMap locals:
StackMap stack:
11: aload 4
aload 5
if_acmpeq 12
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
12: aload 4
athrow
13: StackMap locals:
StackMap stack:
aload 3
ifnull 19
aload 3
invokeinterface java.lang.AutoCloseable.close:()V
goto 19
StackMap locals:
StackMap stack: java.lang.Throwable
14: astore 1
aload 3
ifnull 15
aload 3
invokeinterface java.lang.AutoCloseable.close:()V
end local 3 StackMap locals:
StackMap stack:
15: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
16: astore 2
aload 1
ifnonnull 17
aload 2
astore 1
goto 18
StackMap locals:
StackMap stack:
17: aload 1
aload 2
if_acmpeq 18
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
18: aload 1
athrow
19: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lcom/oracle/truffle/js/test/polyglot/InnerContextTest;
2 15 3 languageScope Ljava/lang/AutoCloseable;
4 9 6 context Lorg/graalvm/polyglot/Context;
5 7 7 mul Lorg/graalvm/polyglot/Value;
6 7 8 fourtyTwo Lorg/graalvm/polyglot/Value;
Exception table:
from to target type
4 7 8 any
3 10 10 any
2 13 14 any
1 16 16 any
Exceptions:
throws java.lang.Exception
RuntimeVisibleAnnotations:
org.junit.Test()
public void innerParseSingleStatement();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=11, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: new com.oracle.truffle.js.test.polyglot.InnerContextTest$ProxyParsingLanguage
dup
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "a"
aastore
dup
iconst_1
ldc "b"
aastore
invokespecial com.oracle.truffle.js.test.polyglot.InnerContextTest$ProxyParsingLanguage.<init>:([Ljava/lang/String;)V
invokestatic com.oracle.truffle.js.test.polyglot.TestLanguage.withTestLanguage:(Lcom/oracle/truffle/js/test/polyglot/TestLanguage;)Ljava/lang/AutoCloseable;
astore 3
start local 3 2: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 4
start local 4 3: aconst_null
astore 5
aconst_null
astore 6
4: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "js"
aastore
dup
iconst_1
ldc "jsTestLanguage"
aastore
invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
aload 4
invokevirtual org.graalvm.polyglot.Context$Builder.out:(Ljava/io/OutputStream;)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;
astore 7
start local 7 5: aload 7
ldc "jsTestLanguage"
6: ldc "print(a + ' * ' + b + ' = ' + (a * b));"
7: invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
astore 8
start local 8 8: aload 8
iconst_2
anewarray java.lang.Object
dup
iconst_0
bipush 6
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
bipush 7
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
astore 9
start local 9 9: aload 4
ldc "UTF-8"
invokevirtual java.io.ByteArrayOutputStream.toString:(Ljava/lang/String;)Ljava/lang/String;
astore 10
start local 10 10: ldc "6 * 7 = 42\n"
aload 10
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
11: aload 9
invokevirtual org.graalvm.polyglot.Value.isNull:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
end local 10 end local 9 end local 8 12: aload 7
ifnull 18
aload 7
invokevirtual org.graalvm.polyglot.Context.close:()V
goto 18
StackMap locals: com.oracle.truffle.js.test.polyglot.InnerContextTest java.lang.Throwable java.lang.Throwable java.lang.AutoCloseable java.io.ByteArrayOutputStream java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
13: astore 5
aload 7
ifnull 14
aload 7
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 7 StackMap locals:
StackMap stack:
14: aload 5
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
15: astore 6
aload 5
ifnonnull 16
aload 6
astore 5
goto 17
StackMap locals:
StackMap stack:
16: aload 5
aload 6
if_acmpeq 17
aload 5
aload 6
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
17: aload 5
athrow
end local 4 18: StackMap locals:
StackMap stack:
aload 3
ifnull 24
aload 3
invokeinterface java.lang.AutoCloseable.close:()V
goto 24
StackMap locals:
StackMap stack: java.lang.Throwable
19: astore 1
aload 3
ifnull 20
aload 3
invokeinterface java.lang.AutoCloseable.close:()V
end local 3 StackMap locals:
StackMap stack:
20: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
21: astore 2
aload 1
ifnonnull 22
aload 2
astore 1
goto 23
StackMap locals:
StackMap stack:
22: aload 1
aload 2
if_acmpeq 23
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
23: aload 1
athrow
24: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lcom/oracle/truffle/js/test/polyglot/InnerContextTest;
2 20 3 languageScope Ljava/lang/AutoCloseable;
3 18 4 out Ljava/io/ByteArrayOutputStream;
5 14 7 context Lorg/graalvm/polyglot/Context;
8 12 8 mul Lorg/graalvm/polyglot/Value;
9 12 9 undefined Lorg/graalvm/polyglot/Value;
10 12 10 output Ljava/lang/String;
Exception table:
from to target type
5 12 13 any
4 15 15 any
2 18 19 any
1 21 21 any
Exceptions:
throws java.lang.Exception
RuntimeVisibleAnnotations:
org.junit.Test()
public void innerParseMultipleStatement();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=11, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: new com.oracle.truffle.js.test.polyglot.InnerContextTest$ProxyParsingLanguage
dup
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "a"
aastore
dup
iconst_1
ldc "b"
aastore
invokespecial com.oracle.truffle.js.test.polyglot.InnerContextTest$ProxyParsingLanguage.<init>:([Ljava/lang/String;)V
invokestatic com.oracle.truffle.js.test.polyglot.TestLanguage.withTestLanguage:(Lcom/oracle/truffle/js/test/polyglot/TestLanguage;)Ljava/lang/AutoCloseable;
astore 3
start local 3 2: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 4
start local 4 3: aconst_null
astore 5
aconst_null
astore 6
4: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "js"
aastore
dup
iconst_1
ldc "jsTestLanguage"
aastore
invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
aload 4
invokevirtual org.graalvm.polyglot.Context$Builder.out:(Ljava/io/OutputStream;)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;
astore 7
start local 7 5: aload 7
ldc "jsTestLanguage"
6: ldc "print(a + ' + ' + b + ' = ' + (a + b));print(a + ' * ' + b + ' = ' + (a * b));"
7: invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
astore 8
start local 8 8: aload 8
iconst_2
anewarray java.lang.Object
dup
iconst_0
bipush 6
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
bipush 7
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual org.graalvm.polyglot.Value.execute:([Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
astore 9
start local 9 9: aload 4
ldc "UTF-8"
invokevirtual java.io.ByteArrayOutputStream.toString:(Ljava/lang/String;)Ljava/lang/String;
astore 10
start local 10 10: ldc "6 + 7 = 13\n6 * 7 = 42\n"
11: aload 10
12: invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
13: aload 9
invokevirtual org.graalvm.polyglot.Value.isNull:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
end local 10 end local 9 end local 8 14: aload 7
ifnull 20
aload 7
invokevirtual org.graalvm.polyglot.Context.close:()V
goto 20
StackMap locals: com.oracle.truffle.js.test.polyglot.InnerContextTest java.lang.Throwable java.lang.Throwable java.lang.AutoCloseable java.io.ByteArrayOutputStream java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
15: astore 5
aload 7
ifnull 16
aload 7
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 7 StackMap locals:
StackMap stack:
16: aload 5
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
17: astore 6
aload 5
ifnonnull 18
aload 6
astore 5
goto 19
StackMap locals:
StackMap stack:
18: aload 5
aload 6
if_acmpeq 19
aload 5
aload 6
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
19: aload 5
athrow
end local 4 20: StackMap locals:
StackMap stack:
aload 3
ifnull 26
aload 3
invokeinterface java.lang.AutoCloseable.close:()V
goto 26
StackMap locals:
StackMap stack: java.lang.Throwable
21: astore 1
aload 3
ifnull 22
aload 3
invokeinterface java.lang.AutoCloseable.close:()V
end local 3 StackMap locals:
StackMap stack:
22: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
23: astore 2
aload 1
ifnonnull 24
aload 2
astore 1
goto 25
StackMap locals:
StackMap stack:
24: aload 1
aload 2
if_acmpeq 25
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
25: aload 1
athrow
26: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lcom/oracle/truffle/js/test/polyglot/InnerContextTest;
2 22 3 languageScope Ljava/lang/AutoCloseable;
3 20 4 out Ljava/io/ByteArrayOutputStream;
5 16 7 context Lorg/graalvm/polyglot/Context;
8 14 8 mul Lorg/graalvm/polyglot/Value;
9 14 9 undefined Lorg/graalvm/polyglot/Value;
10 14 10 output Ljava/lang/String;
Exception table:
from to target type
5 14 15 any
4 17 17 any
2 20 21 any
1 23 23 any
Exceptions:
throws java.lang.Exception
RuntimeVisibleAnnotations:
org.junit.Test()
}
SourceFile: "InnerContextTest.java"
NestMembers:
com.oracle.truffle.js.test.polyglot.InnerContextTest$1 com.oracle.truffle.js.test.polyglot.InnerContextTest$1$1 com.oracle.truffle.js.test.polyglot.InnerContextTest$2 com.oracle.truffle.js.test.polyglot.InnerContextTest$2$1 com.oracle.truffle.js.test.polyglot.InnerContextTest$ExecutableObject com.oracle.truffle.js.test.polyglot.InnerContextTest$ProxyParsingLanguage com.oracle.truffle.js.test.polyglot.InnerContextTest$ProxyParsingLanguage$1ParseJsRootNode
InnerClasses:
com.oracle.truffle.js.test.polyglot.InnerContextTest$1
com.oracle.truffle.js.test.polyglot.InnerContextTest$2
final ExecutableObject = com.oracle.truffle.js.test.polyglot.InnerContextTest$ExecutableObject of com.oracle.truffle.js.test.polyglot.InnerContextTest
private ProxyParsingLanguage = com.oracle.truffle.js.test.polyglot.InnerContextTest$ProxyParsingLanguage of com.oracle.truffle.js.test.polyglot.InnerContextTest
public final Builder = org.graalvm.polyglot.Context$Builder of org.graalvm.polyglot.Context