public abstract class org.graalvm.compiler.hotspot.test.GraalOSRTestBase 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.hotspot.test.GraalOSRTestBase
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.graalvm.compiler.hotspot.test.GraalOSRTestBase.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
protected void testOSR(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.graalvm.compiler.hotspot.test.GraalOSRTestBase.getResolvedJavaMethod:(Ljava/lang/String;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 2
start local 2 1: aload 0
aload 2
invokevirtual org.graalvm.compiler.hotspot.test.GraalOSRTestBase.testOSR:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase;
0 3 1 methodName Ljava/lang/String;
1 3 2 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
MethodParameters:
Name Flags
methodName
protected void testOSR(jdk.vm.ci.meta.ResolvedJavaMethod);
descriptor: (Ljdk/vm/ci/meta/ResolvedJavaMethod;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface jdk.vm.ci.meta.ResolvedJavaMethod.reprofile:()V
1: aload 0
aload 1
invokevirtual org.graalvm.compiler.hotspot.test.GraalOSRTestBase.compileOSR:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)V
2: aload 0
aload 1
aconst_null
iconst_0
anewarray java.lang.Object
invokevirtual org.graalvm.compiler.hotspot.test.GraalOSRTestBase.executeExpected:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljava/lang/Object;[Ljava/lang/Object;)Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;
astore 2
start local 2 3: aload 2
invokestatic org.graalvm.compiler.hotspot.test.GraalOSRTestBase.checkResult:(Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase;
0 5 1 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
3 5 2 result Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;
MethodParameters:
Name Flags
method
private static void compile(jdk.vm.ci.meta.ResolvedJavaMethod, int);
descriptor: (Ljdk/vm/ci/meta/ResolvedJavaMethod;I)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=9, args_size=2
start local 0 start local 1 0: invokestatic jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.runtime:()Ljdk/vm/ci/hotspot/HotSpotJVMCIRuntime;
astore 2
start local 2 1: lconst_0
lstore 3
start local 3 2: new jdk.vm.ci.hotspot.HotSpotCompilationRequest
dup
aload 0
checkcast jdk.vm.ci.hotspot.HotSpotResolvedJavaMethod
iload 1
lload 3
invokespecial jdk.vm.ci.hotspot.HotSpotCompilationRequest.<init>:(Ljdk/vm/ci/hotspot/HotSpotResolvedJavaMethod;IJ)V
astore 5
start local 5 3: aload 2
invokeinterface jdk.vm.ci.hotspot.HotSpotJVMCIRuntimeProvider.getCompiler:()Ljdk/vm/ci/runtime/JVMCICompiler;
checkcast org.graalvm.compiler.hotspot.HotSpotGraalCompiler
astore 6
start local 6 4: new org.graalvm.compiler.hotspot.CompilationTask
dup
aload 2
aload 6
aload 5
iconst_1
iconst_1
invokespecial org.graalvm.compiler.hotspot.CompilationTask.<init>:(Ljdk/vm/ci/hotspot/HotSpotJVMCIRuntimeProvider;Lorg/graalvm/compiler/hotspot/HotSpotGraalCompiler;Ljdk/vm/ci/hotspot/HotSpotCompilationRequest;ZZ)V
astore 7
start local 7 5: aload 7
invokevirtual org.graalvm.compiler.hotspot.CompilationTask.runCompilation:()Ljdk/vm/ci/hotspot/HotSpotCompilationRequestResult;
astore 8
start local 8 6: aload 8
invokevirtual jdk.vm.ci.hotspot.HotSpotCompilationRequestResult.getFailure:()Ljava/lang/Object;
ifnull 8
7: new org.graalvm.compiler.debug.GraalError
dup
aload 8
invokevirtual jdk.vm.ci.hotspot.HotSpotCompilationRequestResult.getFailureMessage:()Ljava/lang/String;
invokespecial org.graalvm.compiler.debug.GraalError.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: jdk.vm.ci.meta.ResolvedJavaMethod int jdk.vm.ci.hotspot.HotSpotJVMCIRuntimeProvider long jdk.vm.ci.hotspot.HotSpotCompilationRequest org.graalvm.compiler.hotspot.HotSpotGraalCompiler org.graalvm.compiler.hotspot.CompilationTask jdk.vm.ci.hotspot.HotSpotCompilationRequestResult
StackMap stack:
return
end local 8 end local 7 end local 6 end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
0 9 1 bci I
1 9 2 runtime Ljdk/vm/ci/hotspot/HotSpotJVMCIRuntimeProvider;
2 9 3 jvmciEnv J
3 9 5 request Ljdk/vm/ci/hotspot/HotSpotCompilationRequest;
4 9 6 compiler Lorg/graalvm/compiler/hotspot/HotSpotGraalCompiler;
5 9 7 task Lorg/graalvm/compiler/hotspot/CompilationTask;
6 9 8 result Ljdk/vm/ci/hotspot/HotSpotCompilationRequestResult;
MethodParameters:
Name Flags
method
bci
private static int getBackedgeBCI(jdk.vm.ci.meta.ResolvedJavaMethod);
descriptor: (Ljdk/vm/ci/meta/ResolvedJavaMethod;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=12, args_size=1
start local 0 0: new org.graalvm.compiler.bytecode.ResolvedJavaMethodBytecode
dup
aload 0
invokespecial org.graalvm.compiler.bytecode.ResolvedJavaMethodBytecode.<init>:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)V
astore 1
start local 1 1: new org.graalvm.compiler.bytecode.BytecodeStream
dup
aload 1
invokeinterface org.graalvm.compiler.bytecode.Bytecode.getCode:()[B
invokespecial org.graalvm.compiler.bytecode.BytecodeStream.<init>:([B)V
astore 2
start local 2 2: aload 2
aload 1
invokestatic org.graalvm.compiler.java.BciBlockMapping.create:(Lorg/graalvm/compiler/bytecode/BytecodeStream;Lorg/graalvm/compiler/bytecode/Bytecode;)Lorg/graalvm/compiler/java/BciBlockMapping;
astore 3
start local 3 3: getstatic org.graalvm.compiler.hotspot.test.GraalOSRTestBase.$assertionsDisabled:Z
ifne 4
aload 3
invokevirtual org.graalvm.compiler.java.BciBlockMapping.getLoopCount:()I
iconst_1
if_icmpeq 4
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "Expected exactly one loop "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
4: StackMap locals: org.graalvm.compiler.bytecode.Bytecode org.graalvm.compiler.bytecode.BytecodeStream org.graalvm.compiler.java.BciBlockMapping
StackMap stack:
aload 3
invokevirtual org.graalvm.compiler.java.BciBlockMapping.getBlocks:()[Lorg/graalvm/compiler/java/BciBlockMapping$BciBlock;
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 14
StackMap locals: jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.bytecode.Bytecode org.graalvm.compiler.bytecode.BytecodeStream org.graalvm.compiler.java.BciBlockMapping top int int org.graalvm.compiler.java.BciBlockMapping$BciBlock[]
StackMap stack:
5: aload 7
iload 5
aaload
astore 4
start local 4 6: aload 4
getfield org.graalvm.compiler.java.BciBlockMapping$BciBlock.startBci:I
istore 8
start local 8 7: aload 4
invokevirtual org.graalvm.compiler.java.BciBlockMapping$BciBlock.getSuccessors:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 10
goto 12
StackMap locals: jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.bytecode.Bytecode org.graalvm.compiler.bytecode.BytecodeStream org.graalvm.compiler.java.BciBlockMapping org.graalvm.compiler.java.BciBlockMapping$BciBlock int int org.graalvm.compiler.java.BciBlockMapping$BciBlock[] int top java.util.Iterator
StackMap stack:
8: aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.java.BciBlockMapping$BciBlock
astore 9
start local 9 9: aload 9
getfield org.graalvm.compiler.java.BciBlockMapping$BciBlock.startBci:I
istore 11
start local 11 10: iload 11
iload 8
if_icmpge 12
11: iload 11
ireturn
end local 11 end local 9 12: StackMap locals:
StackMap stack:
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
end local 8 end local 4 13: iinc 5 1
StackMap locals: jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.bytecode.Bytecode org.graalvm.compiler.bytecode.BytecodeStream org.graalvm.compiler.java.BciBlockMapping top int int org.graalvm.compiler.java.BciBlockMapping$BciBlock[]
StackMap stack:
14: iload 5
iload 6
if_icmplt 5
15: iconst_m1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
1 16 1 code Lorg/graalvm/compiler/bytecode/Bytecode;
2 16 2 stream Lorg/graalvm/compiler/bytecode/BytecodeStream;
3 16 3 bciBlockMapping Lorg/graalvm/compiler/java/BciBlockMapping;
6 13 4 block Lorg/graalvm/compiler/java/BciBlockMapping$BciBlock;
7 13 8 bci I
9 12 9 succ Lorg/graalvm/compiler/java/BciBlockMapping$BciBlock;
10 12 11 succBci I
MethodParameters:
Name Flags
method
private static void checkResult(org.graalvm.compiler.core.test.GraalCompilerTest$Result);
descriptor: (Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
0: new java.lang.Error
dup
ldc "Unresolved compilation problems: \n\tAssert cannot be resolved\n\tAssert cannot be resolved\n\tAssert cannot be resolved\n\tAssert cannot be resolved\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
MethodParameters:
Name Flags
result
private void compileOSR(jdk.vm.ci.meta.ResolvedJavaMethod);
descriptor: (Ljdk/vm/ci/meta/ResolvedJavaMethod;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.graalvm.compiler.hotspot.test.GraalOSRTestBase.getBackedgeBCI:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)I
istore 2
start local 2 1: getstatic org.graalvm.compiler.hotspot.test.GraalOSRTestBase.$assertionsDisabled:Z
ifne 2
iload 2
iconst_m1
if_icmpne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: int
StackMap stack:
aload 0
aload 1
getstatic org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions.YES:Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;
invokevirtual org.graalvm.compiler.hotspot.test.GraalOSRTestBase.parseEager:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;)Lorg/graalvm/compiler/nodes/StructuredGraph;
pop
3: aload 1
iload 2
invokestatic org.graalvm.compiler.hotspot.test.GraalOSRTestBase.compile:(Ljdk/vm/ci/meta/ResolvedJavaMethod;I)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase;
0 5 1 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
1 5 2 bci I
MethodParameters:
Name Flags
method
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase;
public void <init>(java.lang.Class<? extends jdk.vm.ci.code.Architecture>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.<init>:(Ljava/lang/Class;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase;
0 2 1 arch Ljava/lang/Class<+Ljdk/vm/ci/code/Architecture;>;
Signature: (Ljava/lang/Class<+Ljdk/vm/ci/code/Architecture;>;)V
MethodParameters:
Name Flags
arch
public void <init>(org.graalvm.compiler.core.target.Backend);
descriptor: (Lorg/graalvm/compiler/core/target/Backend;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.<init>:(Lorg/graalvm/compiler/core/target/Backend;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase;
0 2 1 backend Lorg/graalvm/compiler/core/target/Backend;
MethodParameters:
Name Flags
backend
}
SourceFile: "GraalOSRTestBase.java"
NestMembers:
org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue
InnerClasses:
protected Result = org.graalvm.compiler.core.test.GraalCompilerTest$Result of org.graalvm.compiler.core.test.GraalCompilerTest
protected final ReturnValue = org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue of org.graalvm.compiler.hotspot.test.GraalOSRTestBase
public BciBlock = org.graalvm.compiler.java.BciBlockMapping$BciBlock of org.graalvm.compiler.java.BciBlockMapping
public final AllowAssumptions = org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions of org.graalvm.compiler.nodes.StructuredGraph