public class org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest extends org.graalvm.compiler.core.test.GraalCompilerTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
private final jdk.vm.ci.meta.SpeculationLog speculationLog;
descriptor: Ljdk/vm/ci/meta/SpeculationLog;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static boolean highlyLikely;
descriptor: Z
flags: (0x0008) ACC_STATIC
static boolean highlyUnlikely;
descriptor: Z
flags: (0x0008) ACC_STATIC
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/replacements/test/DeoptimizeOnIntegerExactTest;
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.replacements.test.DeoptimizeOnIntegerExactTest.$assertionsDisabled:Z
3: iconst_1
putstatic org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.highlyLikely:Z
4: iconst_0
putstatic org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.highlyUnlikely:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.<init>:()V
1: aload 0
aload 0
invokevirtual org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.getCodeCache:()Ljdk/vm/ci/code/CodeCacheProvider;
invokeinterface jdk.vm.ci.code.CodeCacheProvider.createSpeculationLog:()Ljdk/vm/ci/meta/SpeculationLog;
putfield org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.speculationLog:Ljdk/vm/ci/meta/SpeculationLog;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/replacements/test/DeoptimizeOnIntegerExactTest;
public static int testAddExactSnippet(int, int);
descriptor: (II)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.highlyLikely:Z
ifeq 4
1: getstatic org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.highlyUnlikely:Z
ifeq 2
iload 0
iload 1
invokestatic java.lang.Math.addExact:(II)I
goto 3
StackMap locals:
StackMap stack:
2: iload 0
StackMap locals:
StackMap stack: int
3: ireturn
4: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.highlyUnlikely:Z
ifeq 5
iload 1
goto 6
StackMap locals:
StackMap stack:
5: iload 0
iload 1
invokestatic java.lang.Math.addExact:(II)I
StackMap locals:
StackMap stack: int
6: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 x I
0 7 1 y I
MethodParameters:
Name Flags
x
y
public static int testSubtractExactSnippet(int, int);
descriptor: (II)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.highlyLikely:Z
ifeq 4
1: getstatic org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.highlyUnlikely:Z
ifeq 2
iload 0
iload 1
invokestatic java.lang.Math.subtractExact:(II)I
goto 3
StackMap locals:
StackMap stack:
2: iload 0
StackMap locals:
StackMap stack: int
3: ireturn
4: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.highlyUnlikely:Z
ifeq 5
iload 1
goto 6
StackMap locals:
StackMap stack:
5: iload 0
iload 1
invokestatic java.lang.Math.subtractExact:(II)I
StackMap locals:
StackMap stack: int
6: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 x I
0 7 1 y I
MethodParameters:
Name Flags
x
y
public static int testMultiplyExactSnippet(int, int);
descriptor: (II)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.highlyLikely:Z
ifeq 4
1: getstatic org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.highlyUnlikely:Z
ifeq 2
iload 0
iload 1
invokestatic java.lang.Math.multiplyExact:(II)I
goto 3
StackMap locals:
StackMap stack:
2: iload 0
StackMap locals:
StackMap stack: int
3: ireturn
4: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.highlyUnlikely:Z
ifeq 5
iload 1
goto 6
StackMap locals:
StackMap stack:
5: iload 0
iload 1
invokestatic java.lang.Math.multiplyExact:(II)I
StackMap locals:
StackMap stack: int
6: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 x I
0 7 1 y I
MethodParameters:
Name Flags
x
y
public static int testIncrementExactSnippet(int, int);
descriptor: (II)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.highlyLikely:Z
ifeq 4
1: getstatic org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.highlyUnlikely:Z
ifeq 2
iload 0
invokestatic java.lang.Math.incrementExact:(I)I
goto 3
StackMap locals:
StackMap stack:
2: iload 0
StackMap locals:
StackMap stack: int
3: ireturn
4: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.highlyUnlikely:Z
ifeq 5
iload 1
goto 6
StackMap locals:
StackMap stack:
5: iload 0
invokestatic java.lang.Math.incrementExact:(I)I
StackMap locals:
StackMap stack: int
6: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 x I
0 7 1 y I
MethodParameters:
Name Flags
x
y
public static int testDecrementExactSnippet(int, int);
descriptor: (II)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.highlyLikely:Z
ifeq 4
1: getstatic org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.highlyUnlikely:Z
ifeq 2
iload 0
invokestatic java.lang.Math.decrementExact:(I)I
goto 3
StackMap locals:
StackMap stack:
2: iload 0
StackMap locals:
StackMap stack: int
3: ireturn
4: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.highlyUnlikely:Z
ifeq 5
iload 1
goto 6
StackMap locals:
StackMap stack:
5: iload 0
invokestatic java.lang.Math.decrementExact:(I)I
StackMap locals:
StackMap stack: int
6: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 x I
0 7 1 y I
MethodParameters:
Name Flags
x
y
public void testAgainIfDeopt(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokevirtual org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.getResolvedJavaMethod:(Ljava/lang/String;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 4
start local 4 1: aload 0
aload 4
invokevirtual org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.getCode:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)Ljdk/vm/ci/code/InstalledCode;
astore 5
start local 5 2: aload 5
iconst_2
anewarray java.lang.Object
dup
iconst_0
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual jdk.vm.ci.code.InstalledCode.executeVarargs:([Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 5
invokevirtual jdk.vm.ci.code.InstalledCode.isValid:()Z
ifne 7
4: aload 0
aload 4
invokevirtual org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.getCode:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)Ljdk/vm/ci/code/InstalledCode;
astore 5
5: aload 5
iconst_2
anewarray java.lang.Object
dup
iconst_0
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual jdk.vm.ci.code.InstalledCode.executeVarargs:([Ljava/lang/Object;)Ljava/lang/Object;
pop
6: aload 5
invokevirtual jdk.vm.ci.code.InstalledCode.isValid:()Z
invokestatic org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.assertTrue:(Z)V
7: StackMap locals: jdk.vm.ci.meta.ResolvedJavaMethod jdk.vm.ci.code.InstalledCode
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/graalvm/compiler/replacements/test/DeoptimizeOnIntegerExactTest;
0 8 1 methodName Ljava/lang/String;
0 8 2 x I
0 8 3 y I
1 8 4 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
2 8 5 code Ljdk/vm/ci/code/InstalledCode;
Exceptions:
throws jdk.vm.ci.code.InvalidInstalledCodeException
MethodParameters:
Name Flags
methodName
x
y
public void testAddExact();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/test/DeoptimizeOnIntegerExactTest;
Exceptions:
throws jdk.vm.ci.code.InvalidInstalledCodeException
RuntimeInvisibleAnnotations:
Test()
public void testSubtractExact();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/test/DeoptimizeOnIntegerExactTest;
Exceptions:
throws jdk.vm.ci.code.InvalidInstalledCodeException
RuntimeInvisibleAnnotations:
Test()
public void testMultiplyExact();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/test/DeoptimizeOnIntegerExactTest;
Exceptions:
throws jdk.vm.ci.code.InvalidInstalledCodeException
RuntimeInvisibleAnnotations:
Test()
public void testIncrementExact();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/test/DeoptimizeOnIntegerExactTest;
Exceptions:
throws jdk.vm.ci.code.InvalidInstalledCodeException
RuntimeInvisibleAnnotations:
Test()
public void testDecrementExact();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/test/DeoptimizeOnIntegerExactTest;
Exceptions:
throws jdk.vm.ci.code.InvalidInstalledCodeException
RuntimeInvisibleAnnotations:
Test()
protected jdk.vm.ci.meta.SpeculationLog getSpeculationLog();
descriptor: ()Ljdk/vm/ci/meta/SpeculationLog;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.speculationLog:Ljdk/vm/ci/meta/SpeculationLog;
invokeinterface jdk.vm.ci.meta.SpeculationLog.collectFailedSpeculations:()V
1: aload 0
getfield org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.speculationLog:Ljdk/vm/ci/meta/SpeculationLog;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/replacements/test/DeoptimizeOnIntegerExactTest;
protected jdk.vm.ci.code.InstalledCode addMethod(org.graalvm.compiler.debug.DebugContext, jdk.vm.ci.meta.ResolvedJavaMethod, org.graalvm.compiler.code.CompilationResult);
descriptor: (Lorg/graalvm/compiler/debug/DebugContext;Ljdk/vm/ci/meta/ResolvedJavaMethod;Lorg/graalvm/compiler/code/CompilationResult;)Ljdk/vm/ci/code/InstalledCode;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.$assertionsDisabled:Z
ifne 1
aload 0
getfield org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.speculationLog:Ljdk/vm/ci/meta/SpeculationLog;
aload 3
invokevirtual org.graalvm.compiler.code.CompilationResult.getSpeculationLog:()Ljdk/vm/ci/meta/SpeculationLog;
if_acmpeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.graalvm.compiler.replacements.test.DeoptimizeOnIntegerExactTest.getBackend:()Lorg/graalvm/compiler/core/target/Backend;
aload 1
aload 2
aload 3
aconst_null
iconst_0
invokevirtual org.graalvm.compiler.core.target.Backend.createInstalledCode:(Lorg/graalvm/compiler/debug/DebugContext;Ljdk/vm/ci/meta/ResolvedJavaMethod;Lorg/graalvm/compiler/code/CompilationResult;Ljdk/vm/ci/code/InstalledCode;Z)Ljdk/vm/ci/code/InstalledCode;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/replacements/test/DeoptimizeOnIntegerExactTest;
0 2 1 debug Lorg/graalvm/compiler/debug/DebugContext;
0 2 2 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
0 2 3 compilationResult Lorg/graalvm/compiler/code/CompilationResult;
MethodParameters:
Name Flags
debug
method final
compilationResult final
}
SourceFile: "DeoptimizeOnIntegerExactTest.java"