public class com.oracle.truffle.js.test.regress.GR28474
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.js.test.regress.GR28474
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 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/js/test/regress/GR28474;
public void testGH401();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "js"
aastore
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
getstatic org.graalvm.polyglot.HostAccess.ALL:Lorg/graalvm/polyglot/HostAccess;
invokevirtual org.graalvm.polyglot.Context$Builder.allowHostAccess:(Lorg/graalvm/polyglot/HostAccess;)Lorg/graalvm/polyglot/Context$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.Context$Builder.allowExperimentalOptions:(Z)Lorg/graalvm/polyglot/Context$Builder;
ldc "js.nashorn-compat"
ldc "true"
invokevirtual org.graalvm.polyglot.Context$Builder.option:(Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
invokevirtual org.graalvm.polyglot.Context$Builder.build:()Lorg/graalvm/polyglot/Context;
astore 3
start local 3 2: aload 3
ldc "js"
invokevirtual org.graalvm.polyglot.Context.getBindings:(Ljava/lang/String;)Lorg/graalvm/polyglot/Value;
ldc "self"
new com.oracle.truffle.js.test.regress.GR28474$Bug401
dup
invokespecial com.oracle.truffle.js.test.regress.GR28474$Bug401.<init>:()V
invokevirtual org.graalvm.polyglot.Value.putMember:(Ljava/lang/String;Ljava/lang/Object;)V
3: ldc 20
aload 3
ldc "js"
ldc "self.longValue;"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asLong:()J
invokestatic org.junit.Assert.assertEquals:(JJ)V
4: ldc 10
aload 3
ldc "js"
ldc "Math.min(self.longValue + 1, 10);"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asLong:()J
invokestatic org.junit.Assert.assertEquals:(JJ)V
5: ldc 20
aload 3
ldc "js"
ldc "self.intValue;"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asInt:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
6: ldc 10
aload 3
ldc "js"
ldc "Math.min(self.intValue + 1, 10);"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asInt:()I
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
7: ldc 20.0
aload 3
ldc "js"
ldc "self.doubleValue;"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asDouble:()D
dconst_0
invokestatic org.junit.Assert.assertEquals:(DDD)V
8: ldc 10.0
aload 3
ldc "js"
ldc "Math.min(self.doubleValue + 1, 10);"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asDouble:()D
dconst_0
invokestatic org.junit.Assert.assertEquals:(DDD)V
9: iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aload 3
ldc "js"
ldc "self.boolValue;"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asBoolean:()Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
10: ldc 20.0
aload 3
ldc "js"
ldc "self.floatValue;"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asFloat:()F
fconst_0
invokestatic org.junit.Assert.assertEquals:(FFF)V
11: ldc 10.0
aload 3
ldc "js"
ldc "Math.min(self.floatValue + 1, 10);"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asFloat:()F
fconst_0
invokestatic org.junit.Assert.assertEquals:(FFF)V
12: ldc "a"
aload 3
ldc "js"
ldc "self.charValue;"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
13: ldc 20
aload 3
ldc "js"
ldc "self.shortValue;"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asShort:()S
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
14: ldc 10
aload 3
ldc "js"
ldc "Math.min(self.shortValue + 1, 10);"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asShort:()S
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
15: ldc 20
aload 3
ldc "js"
ldc "self.byteValue;"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asByte:()B
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
16: ldc 10
aload 3
ldc "js"
ldc "Math.min(self.shortValue + 1, 10);"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
invokevirtual org.graalvm.polyglot.Value.asByte:()B
i2l
invokestatic org.junit.Assert.assertEquals:(JJ)V
17: aload 3
ifnull 23
aload 3
invokevirtual org.graalvm.polyglot.Context.close:()V
goto 23
StackMap locals: com.oracle.truffle.js.test.regress.GR28474 java.lang.Throwable java.lang.Throwable org.graalvm.polyglot.Context
StackMap stack: java.lang.Throwable
18: astore 1
aload 3
ifnull 19
aload 3
invokevirtual org.graalvm.polyglot.Context.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/regress/GR28474;
2 19 3 ctx Lorg/graalvm/polyglot/Context;
Exception table:
from to target type
2 17 18 any
1 20 20 any
RuntimeVisibleAnnotations:
org.junit.Test()
}
SourceFile: "GR28474.java"
NestMembers:
com.oracle.truffle.js.test.regress.GR28474$Bug401
InnerClasses:
public Bug401 = com.oracle.truffle.js.test.regress.GR28474$Bug401 of com.oracle.truffle.js.test.regress.GR28474
public final Builder = org.graalvm.polyglot.Context$Builder of org.graalvm.polyglot.Context