public class org.graalvm.compiler.truffle.test.CompilerInitializationTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.truffle.test.CompilerInitializationTest
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 Lorg/graalvm/compiler/truffle/test/CompilerInitializationTest;
public void resetCompiler();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: ldc "This test does not apply to SVM runtime where the compiler is initialized eagerly."
getstatic com.oracle.truffle.api.TruffleOptions.AOT:Z
invokestatic org.junit.Assume.assumeFalse:(Ljava/lang/String;Z)V
1: invokestatic com.oracle.truffle.api.Truffle.getRuntime:()Lcom/oracle/truffle/api/TruffleRuntime;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc "resetCompiler"
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 1
start local 1 2: aload 1
invokestatic com.oracle.truffle.api.Truffle.getRuntime:()Lcom/oracle/truffle/api/TruffleRuntime;
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 1 3: goto 6
StackMap locals:
StackMap stack: java.lang.Exception
4: astore 1
start local 1 5: new java.lang.AssertionError
dup
aload 1
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 1 6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/graalvm/compiler/truffle/test/CompilerInitializationTest;
2 3 1 m Ljava/lang/reflect/Method;
5 6 1 e Ljava/lang/Exception;
Exception table:
from to target type
1 3 4 Class java.lang.Exception
RuntimeVisibleAnnotations:
org.junit.Before()
public void testDefault();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: iconst_0
invokestatic org.graalvm.compiler.truffle.test.CompilerInitializationTest.assertTruffleCompilerInitialized:(Z)V
1: iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.Context$Builder.allowExperimentalOptions:(Z)Lorg/graalvm/polyglot/Context$Builder;
2: ldc "engine.BackgroundCompilation"
ldc "false"
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;
3: astore 1
start local 1 4: iconst_0
invokestatic org.graalvm.compiler.truffle.test.CompilerInitializationTest.assertTruffleCompilerInitialized:(Z)V
5: aload 1
ldc "instrumentation-test-language"
ldc "EXPRESSION"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
pop
6: iconst_1
invokestatic org.graalvm.compiler.truffle.test.CompilerInitializationTest.assertTruffleCompilerInitialized:(Z)V
7: aload 1
invokevirtual org.graalvm.polyglot.Context.close:()V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/graalvm/compiler/truffle/test/CompilerInitializationTest;
4 9 1 context Lorg/graalvm/polyglot/Context;
Exceptions:
throws java.lang.Exception
RuntimeVisibleAnnotations:
org.junit.Test()
public void testNoCompilation();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: iconst_0
invokestatic org.graalvm.compiler.truffle.test.CompilerInitializationTest.assertTruffleCompilerInitialized:(Z)V
1: iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.Context$Builder.allowExperimentalOptions:(Z)Lorg/graalvm/polyglot/Context$Builder;
2: ldc "engine.BackgroundCompilation"
ldc "false"
invokevirtual org.graalvm.polyglot.Context$Builder.option:(Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
3: ldc "engine.Compilation"
ldc "false"
invokevirtual org.graalvm.polyglot.Context$Builder.option:(Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
4: invokevirtual org.graalvm.polyglot.Context$Builder.build:()Lorg/graalvm/polyglot/Context;
5: astore 1
start local 1 6: iconst_0
invokestatic org.graalvm.compiler.truffle.test.CompilerInitializationTest.assertTruffleCompilerInitialized:(Z)V
7: aload 1
ldc "instrumentation-test-language"
ldc "EXPRESSION"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
pop
8: iconst_1
invokestatic org.graalvm.compiler.truffle.test.CompilerInitializationTest.assertTruffleCompilerInitialized:(Z)V
9: aload 1
invokevirtual org.graalvm.polyglot.Context.close:()V
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/graalvm/compiler/truffle/test/CompilerInitializationTest;
6 11 1 context Lorg/graalvm/polyglot/Context;
Exceptions:
throws java.lang.Exception
RuntimeVisibleAnnotations:
org.junit.Test()
public static void assertTruffleCompilerInitialized(boolean);
descriptor: (Z)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
ifeq 3
1: invokestatic org.graalvm.compiler.truffle.test.CompilerInitializationTest.compilerField:()Ljava/lang/reflect/Field;
invokestatic com.oracle.truffle.api.Truffle.getRuntime:()Lcom/oracle/truffle/api/TruffleRuntime;
invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
2: goto 4
3: StackMap locals:
StackMap stack:
invokestatic org.graalvm.compiler.truffle.test.CompilerInitializationTest.compilerField:()Ljava/lang/reflect/Field;
invokestatic com.oracle.truffle.api.Truffle.getRuntime:()Lcom/oracle/truffle/api/TruffleRuntime;
invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 expected Z
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
expected
private static java.lang.reflect.Field compilerField();
descriptor: ()Ljava/lang/reflect/Field;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: ldc Lorg/graalvm/compiler/truffle/runtime/GraalTruffleRuntime;
ldc "truffleCompiler"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 0
start local 0 1: aload 0
iconst_1
invokestatic com.oracle.truffle.api.test.ReflectionUtils.setAccessible:(Ljava/lang/reflect/Field;Z)V
2: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 f Ljava/lang/reflect/Field;
Exceptions:
throws java.lang.NoSuchFieldException
}
SourceFile: "CompilerInitializationTest.java"
InnerClasses:
public final Builder = org.graalvm.polyglot.Context$Builder of org.graalvm.polyglot.Context