public class com.oracle.truffle.js.test.regress.GR19796
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.js.test.regress.GR19796
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // com.oracle.truffle.js.test.regress.GR19796 this
0: .line 54
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // com.oracle.truffle.js.test.regress.GR19796 this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/test/regress/GR19796;
public void test();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=11, args_size=1
start local 0 // com.oracle.truffle.js.test.regress.GR19796 this
0: .line 58
aconst_null
astore 1
aconst_null
astore 2
1: iconst_0
anewarray java.lang.String
invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.Context$Builder.allowAllAccess:(Z)Lorg/graalvm/polyglot/Context$Builder;
invokevirtual org.graalvm.polyglot.Context$Builder.build:()Lorg/graalvm/polyglot/Context;
astore 3 /* context */
start local 3 // org.graalvm.polyglot.Context context
2: .line 60
bipush 6
anewarray org.graalvm.polyglot.Value
dup
iconst_0
3: .line 61
aload 3 /* context */
ldc "js"
ldc "java.lang.Class"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
aastore
dup
iconst_1
4: .line 62
aload 3 /* context */
ldc "js"
ldc "java.lang.Class.forName"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
aastore
dup
iconst_2
5: .line 63
aload 3 /* context */
ldc "js"
invokevirtual org.graalvm.polyglot.Context.getBindings:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
aastore
dup
iconst_3
6: .line 64
aload 3 /* context */
ldc "js"
ldc "new Object()"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.getMetaObject:()Lorg/graalvm/polyglot/Value;
aastore
dup
iconst_4
7: .line 65
aload 3 /* context */
ldc "js"
ldc "Symbol()"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
aastore
dup
iconst_5
8: .line 66
aload 3 /* context */
ldc "js"
ldc "42n"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
aastore
9: .line 60
astore 4 /* values */
start local 4 // org.graalvm.polyglot.Value[] values
10: .line 69
aload 3 /* context */
ldc "js"
ldc "Math.max"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
astore 5 /* max */
start local 5 // org.graalvm.polyglot.Value max
11: .line 72
aload 4 /* values */
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 18
StackMap locals: com.oracle.truffle.js.test.regress.GR19796 java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context org.graalvm.polyglot.Value[] org.graalvm.polyglot.Value top int int org.graalvm.polyglot.Value[]
StackMap stack:
12: aload 9
iload 7
aaload
astore 6 /* value */
start local 6 // org.graalvm.polyglot.Value value
13: .line 74
aload 5 /* max */
ldc "apply"
iconst_2
anewarray java.lang.Object
dup
iconst_0
ldc "this"
aastore
dup
iconst_1
aload 6 /* value */
aastore
invokevirtual org.graalvm.polyglot.Value.invokeMember:(Ljava/lang/String;[Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
pop
14: .line 75
goto 17
StackMap locals: com.oracle.truffle.js.test.regress.GR19796 java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context org.graalvm.polyglot.Value[] org.graalvm.polyglot.Value org.graalvm.polyglot.Value int int org.graalvm.polyglot.Value[]
StackMap stack: org.graalvm.polyglot.PolyglotException
15: astore 10 /* pex */
start local 10 // org.graalvm.polyglot.PolyglotException pex
16: .line 76
aload 10 /* pex */
invokevirtual org.graalvm.polyglot.PolyglotException.isGuestException:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
end local 10 // org.graalvm.polyglot.PolyglotException pex
end local 6 // org.graalvm.polyglot.Value value
17: .line 72
StackMap locals: com.oracle.truffle.js.test.regress.GR19796 java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context org.graalvm.polyglot.Value[] org.graalvm.polyglot.Value top int int org.graalvm.polyglot.Value[]
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
18: iload 7
iload 8
if_icmplt 12
19: .line 82
aload 5 /* max */
ldc "apply"
iconst_1
anewarray java.lang.Object
dup
iconst_0
ldc "this"
aastore
invokevirtual org.graalvm.polyglot.Value.invokeMember:(Ljava/lang/String;[Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
astore 6 /* result */
start local 6 // org.graalvm.polyglot.Value result
20: .line 84
aload 6 /* result */
invokevirtual org.graalvm.polyglot.Value.isNumber:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
21: .line 85
aload 6 /* result */
invokevirtual org.graalvm.polyglot.Value.asDouble:()D
ldc -Infinity
dcmpl
ifne 22
iconst_1
goto 23
StackMap locals: com.oracle.truffle.js.test.regress.GR19796 java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context org.graalvm.polyglot.Value[] org.graalvm.polyglot.Value org.graalvm.polyglot.Value
StackMap stack:
22: iconst_0
StackMap locals:
StackMap stack: int
23: invokestatic org.junit.Assert.assertTrue:(Z)V
end local 6 // org.graalvm.polyglot.Value result
end local 5 // org.graalvm.polyglot.Value max
end local 4 // org.graalvm.polyglot.Value[] values
24: .line 86
aload 3 /* context */
ifnull 30
aload 3 /* context */
invokevirtual org.graalvm.polyglot.Context.close:()V
goto 30
StackMap locals: com.oracle.truffle.js.test.regress.GR19796 java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
25: astore 1
aload 3 /* context */
ifnull 26
aload 3 /* context */
invokevirtual org.graalvm.polyglot.Context.close:()V
end local 3 // org.graalvm.polyglot.Context context
StackMap locals:
StackMap stack:
26: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
27: astore 2
aload 1
ifnonnull 28
aload 2
astore 1
goto 29
StackMap locals:
StackMap stack:
28: aload 1
aload 2
if_acmpeq 29
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
29: aload 1
athrow
30: .line 87
StackMap locals:
StackMap stack:
return
end local 0 // com.oracle.truffle.js.test.regress.GR19796 this
LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lcom/oracle/truffle/js/test/regress/GR19796;
2 26 3 context Lorg/graalvm/polyglot/Context;
10 24 4 values [Lorg/graalvm/polyglot/Value;
11 24 5 max Lorg/graalvm/polyglot/Value;
13 17 6 value Lorg/graalvm/polyglot/Value;
16 17 10 pex Lorg/graalvm/polyglot/PolyglotException;
20 24 6 result Lorg/graalvm/polyglot/Value;
Exception table:
from to target type
13 14 15 Class org.graalvm.polyglot.PolyglotException
2 24 25 any
1 27 27 any
RuntimeVisibleAnnotations:
org.junit.Test()
}
SourceFile: "GR19796.java"
InnerClasses:
public final Builder = org.graalvm.polyglot.Context$Builder of org.graalvm.polyglot.Context