public abstract class org.graalvm.compiler.truffle.test.TruffleCompilerImplTest extends org.graalvm.compiler.core.test.GraalCompilerTest
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.graalvm.compiler.truffle.test.TruffleCompilerImplTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
private final org.graalvm.compiler.truffle.compiler.TruffleCompilerImpl truffleCompiler;
descriptor: Lorg/graalvm/compiler/truffle/compiler/TruffleCompilerImpl;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicBoolean compilerInitialized;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private org.graalvm.polyglot.Context activeContext;
descriptor: Lorg/graalvm/polyglot/Context;
flags: (0x0002) ACC_PRIVATE
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:()V
putfield org.graalvm.compiler.truffle.test.TruffleCompilerImplTest.compilerInitialized:Ljava/util/concurrent/atomic/AtomicBoolean;
2: invokestatic org.graalvm.compiler.truffle.runtime.GraalTruffleRuntime.getRuntime:()Lorg/graalvm/compiler/truffle/runtime/GraalTruffleRuntime;
astore 1
start local 1 3: aload 1
invokevirtual org.graalvm.compiler.truffle.runtime.GraalTruffleRuntime.newTruffleCompiler:()Lorg/graalvm/compiler/truffle/common/TruffleCompiler;
astore 2
start local 2 4: ldc "cannot get whitebox interface to Truffle compiler"
aload 2
instanceof org.graalvm.compiler.truffle.compiler.TruffleCompilerImpl
invokestatic org.junit.Assume.assumeTrue:(Ljava/lang/String;Z)V
5: aload 0
aload 2
checkcast org.graalvm.compiler.truffle.compiler.TruffleCompilerImpl
putfield org.graalvm.compiler.truffle.test.TruffleCompilerImplTest.truffleCompiler:Lorg/graalvm/compiler/truffle/compiler/TruffleCompilerImpl;
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/graalvm/compiler/truffle/test/TruffleCompilerImplTest;
3 7 1 runtime Lorg/graalvm/compiler/truffle/runtime/GraalTruffleRuntime;
4 7 2 compiler Lorg/graalvm/compiler/truffle/common/TruffleCompiler;
protected final org.graalvm.compiler.truffle.compiler.TruffleCompilerImpl getTruffleCompiler(org.graalvm.compiler.truffle.runtime.OptimizedCallTarget);
descriptor: (Lorg/graalvm/compiler/truffle/runtime/OptimizedCallTarget;)Lorg/graalvm/compiler/truffle/compiler/TruffleCompilerImpl;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.compiler.truffle.test.TruffleCompilerImplTest.compilerInitialized:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 2
1: aload 0
getfield org.graalvm.compiler.truffle.test.TruffleCompilerImplTest.truffleCompiler:Lorg/graalvm/compiler/truffle/compiler/TruffleCompilerImpl;
aload 1
invokestatic org.graalvm.compiler.truffle.runtime.GraalTruffleRuntime.getOptionsForCompiler:(Lorg/graalvm/compiler/truffle/runtime/OptimizedCallTarget;)Ljava/util/Map;
aload 1
iconst_1
invokevirtual org.graalvm.compiler.truffle.compiler.TruffleCompilerImpl.initialize:(Ljava/util/Map;Lorg/graalvm/compiler/truffle/common/CompilableTruffleAST;Z)V
2: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.truffle.test.TruffleCompilerImplTest.truffleCompiler:Lorg/graalvm/compiler/truffle/compiler/TruffleCompilerImpl;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/truffle/test/TruffleCompilerImplTest;
0 3 1 callTarget Lorg/graalvm/compiler/truffle/runtime/OptimizedCallTarget;
MethodParameters:
Name Flags
callTarget
protected final void setupContext(org.graalvm.polyglot.Context);
descriptor: (Lorg/graalvm/polyglot/Context;)V
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.graalvm.compiler.truffle.test.TruffleCompilerImplTest.cleanup:()V
1: aload 1
invokevirtual org.graalvm.polyglot.Context.enter:()V
2: aload 0
aload 1
putfield org.graalvm.compiler.truffle.test.TruffleCompilerImplTest.activeContext:Lorg/graalvm/polyglot/Context;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/truffle/test/TruffleCompilerImplTest;
0 4 1 newContext Lorg/graalvm/polyglot/Context;
MethodParameters:
Name Flags
newContext
protected final void setupContext();
descriptor: ()V
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
invokevirtual org.graalvm.compiler.truffle.test.TruffleCompilerImplTest.setupContext:(Lorg/graalvm/polyglot/Context$Builder;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/truffle/test/TruffleCompilerImplTest;
protected final void setupContext(org.graalvm.polyglot.Context$Builder);
descriptor: (Lorg/graalvm/polyglot/Context$Builder;)V
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokevirtual org.graalvm.polyglot.Context$Builder.allowAllAccess:(Z)Lorg/graalvm/polyglot/Context$Builder;
ldc "engine.InstrumentExceptionsAreThrown"
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;
invokevirtual org.graalvm.compiler.truffle.test.TruffleCompilerImplTest.setupContext:(Lorg/graalvm/polyglot/Context;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/truffle/test/TruffleCompilerImplTest;
0 2 1 builder Lorg/graalvm/polyglot/Context$Builder;
MethodParameters:
Name Flags
builder
protected final org.graalvm.polyglot.Context getContext();
descriptor: ()Lorg/graalvm/polyglot/Context;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.truffle.test.TruffleCompilerImplTest.activeContext:Lorg/graalvm/polyglot/Context;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/truffle/test/TruffleCompilerImplTest;
public final void cleanup();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.truffle.test.TruffleCompilerImplTest.activeContext:Lorg/graalvm/polyglot/Context;
ifnull 4
1: aload 0
getfield org.graalvm.compiler.truffle.test.TruffleCompilerImplTest.activeContext:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.leave:()V
2: aload 0
getfield org.graalvm.compiler.truffle.test.TruffleCompilerImplTest.activeContext:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
3: aload 0
aconst_null
putfield org.graalvm.compiler.truffle.test.TruffleCompilerImplTest.activeContext:Lorg/graalvm/polyglot/Context;
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/truffle/test/TruffleCompilerImplTest;
RuntimeVisibleAnnotations:
org.junit.After()
}
SourceFile: "TruffleCompilerImplTest.java"
InnerClasses:
public final Builder = org.graalvm.polyglot.Context$Builder of org.graalvm.polyglot.Context