class org.graalvm.compiler.asm.amd64.test.IncrementDecrementMacroTest$DecrementCodeGenTest implements org.graalvm.compiler.asm.test.AssemblerTest$CodeGenTest
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.graalvm.compiler.asm.amd64.test.IncrementDecrementMacroTest$DecrementCodeGenTest
super_class: java.lang.Object
{
final int value;
descriptor: I
flags: (0x0010) ACC_FINAL
void <init>(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 // org.graalvm.compiler.asm.amd64.test.IncrementDecrementMacroTest$DecrementCodeGenTest this
start local 1 // int value
0: .line 102
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 103
aload 0 /* this */
iload 1 /* value */
putfield org.graalvm.compiler.asm.amd64.test.IncrementDecrementMacroTest$DecrementCodeGenTest.value:I
2: .line 104
return
end local 1 // int value
end local 0 // org.graalvm.compiler.asm.amd64.test.IncrementDecrementMacroTest$DecrementCodeGenTest this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/asm/amd64/test/IncrementDecrementMacroTest$DecrementCodeGenTest;
0 3 1 value I
MethodParameters:
Name Flags
value
public byte[] generateCode(org.graalvm.compiler.code.CompilationResult, jdk.vm.ci.code.TargetDescription, jdk.vm.ci.code.RegisterConfig, jdk.vm.ci.code.CallingConvention);
descriptor: (Lorg/graalvm/compiler/code/CompilationResult;Ljdk/vm/ci/code/TargetDescription;Ljdk/vm/ci/code/RegisterConfig;Ljdk/vm/ci/code/CallingConvention;)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=5
start local 0 // org.graalvm.compiler.asm.amd64.test.IncrementDecrementMacroTest$DecrementCodeGenTest this
start local 1 // org.graalvm.compiler.code.CompilationResult compResult
start local 2 // jdk.vm.ci.code.TargetDescription target
start local 3 // jdk.vm.ci.code.RegisterConfig registerConfig
start local 4 // jdk.vm.ci.code.CallingConvention cc
0: .line 108
new org.graalvm.compiler.asm.amd64.AMD64MacroAssembler
dup
aload 2 /* target */
invokespecial org.graalvm.compiler.asm.amd64.AMD64MacroAssembler.<init>:(Ljdk/vm/ci/code/TargetDescription;)V
astore 5 /* asm */
start local 5 // org.graalvm.compiler.asm.amd64.AMD64MacroAssembler asm
1: .line 109
aload 3 /* registerConfig */
getstatic jdk.vm.ci.meta.JavaKind.Int:Ljdk/vm/ci/meta/JavaKind;
invokeinterface jdk.vm.ci.code.RegisterConfig.getReturnRegister:(Ljdk/vm/ci/meta/JavaKind;)Ljdk/vm/ci/code/Register;
astore 6 /* ret */
start local 6 // jdk.vm.ci.code.Register ret
2: .line 111
ldc Lorg/graalvm/compiler/asm/amd64/test/IncrementDecrementMacroTest$LongField;
ldc "x"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 7 /* f */
start local 7 // java.lang.reflect.Field f
3: .line 112
new org.graalvm.compiler.asm.amd64.AMD64Address
dup
aload 4 /* cc */
iconst_0
invokevirtual jdk.vm.ci.code.CallingConvention.getArgument:(I)Ljdk/vm/ci/meta/AllocatableValue;
invokestatic jdk.vm.ci.code.ValueUtil.asRegister:(Ljdk/vm/ci/meta/Value;)Ljdk/vm/ci/code/Register;
getstatic org.graalvm.compiler.asm.amd64.test.IncrementDecrementMacroTest.UNSAFE:Lsun/misc/Unsafe;
aload 7 /* f */
invokevirtual sun.misc.Unsafe.objectFieldOffset:(Ljava/lang/reflect/Field;)J
l2i
invokespecial org.graalvm.compiler.asm.amd64.AMD64Address.<init>:(Ljdk/vm/ci/code/Register;I)V
astore 8 /* arg */
start local 8 // org.graalvm.compiler.asm.amd64.AMD64Address arg
4: .line 113
aload 5 /* asm */
aload 8 /* arg */
aload 0 /* this */
getfield org.graalvm.compiler.asm.amd64.test.IncrementDecrementMacroTest$DecrementCodeGenTest.value:I
invokevirtual org.graalvm.compiler.asm.amd64.AMD64MacroAssembler.decrementq:(Lorg/graalvm/compiler/asm/amd64/AMD64Address;I)V
5: .line 114
aload 5 /* asm */
aload 6 /* ret */
aload 8 /* arg */
invokevirtual org.graalvm.compiler.asm.amd64.AMD64MacroAssembler.movq:(Ljdk/vm/ci/code/Register;Lorg/graalvm/compiler/asm/amd64/AMD64Address;)V
6: .line 115
aload 5 /* asm */
iconst_0
invokevirtual org.graalvm.compiler.asm.amd64.AMD64MacroAssembler.ret:(I)V
7: .line 116
aload 5 /* asm */
iconst_1
invokevirtual org.graalvm.compiler.asm.amd64.AMD64MacroAssembler.close:(Z)[B
8: areturn
end local 8 // org.graalvm.compiler.asm.amd64.AMD64Address arg
end local 7 // java.lang.reflect.Field f
9: .line 117
StackMap locals: org.graalvm.compiler.asm.amd64.test.IncrementDecrementMacroTest$DecrementCodeGenTest org.graalvm.compiler.code.CompilationResult jdk.vm.ci.code.TargetDescription jdk.vm.ci.code.RegisterConfig jdk.vm.ci.code.CallingConvention org.graalvm.compiler.asm.amd64.AMD64MacroAssembler jdk.vm.ci.code.Register
StackMap stack: java.lang.Exception
astore 7 /* e */
start local 7 // java.lang.Exception e
10: .line 118
new java.lang.RuntimeException
dup
ldc "exception while trying to generate field access:"
aload 7 /* e */
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 7 // java.lang.Exception e
end local 6 // jdk.vm.ci.code.Register ret
end local 5 // org.graalvm.compiler.asm.amd64.AMD64MacroAssembler asm
end local 4 // jdk.vm.ci.code.CallingConvention cc
end local 3 // jdk.vm.ci.code.RegisterConfig registerConfig
end local 2 // jdk.vm.ci.code.TargetDescription target
end local 1 // org.graalvm.compiler.code.CompilationResult compResult
end local 0 // org.graalvm.compiler.asm.amd64.test.IncrementDecrementMacroTest$DecrementCodeGenTest this
LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/graalvm/compiler/asm/amd64/test/IncrementDecrementMacroTest$DecrementCodeGenTest;
0 11 1 compResult Lorg/graalvm/compiler/code/CompilationResult;
0 11 2 target Ljdk/vm/ci/code/TargetDescription;
0 11 3 registerConfig Ljdk/vm/ci/code/RegisterConfig;
0 11 4 cc Ljdk/vm/ci/code/CallingConvention;
1 11 5 asm Lorg/graalvm/compiler/asm/amd64/AMD64MacroAssembler;
2 11 6 ret Ljdk/vm/ci/code/Register;
3 9 7 f Ljava/lang/reflect/Field;
4 9 8 arg Lorg/graalvm/compiler/asm/amd64/AMD64Address;
10 11 7 e Ljava/lang/Exception;
Exception table:
from to target type
2 8 9 Class java.lang.Exception
MethodParameters:
Name Flags
compResult
target
registerConfig
cc
}
SourceFile: "IncrementDecrementMacroTest.java"
NestHost: org.graalvm.compiler.asm.amd64.test.IncrementDecrementMacroTest
InnerClasses:
private DecrementCodeGenTest = org.graalvm.compiler.asm.amd64.test.IncrementDecrementMacroTest$DecrementCodeGenTest of org.graalvm.compiler.asm.amd64.test.IncrementDecrementMacroTest
public LongField = org.graalvm.compiler.asm.amd64.test.IncrementDecrementMacroTest$LongField of org.graalvm.compiler.asm.amd64.test.IncrementDecrementMacroTest
public abstract CodeGenTest = org.graalvm.compiler.asm.test.AssemblerTest$CodeGenTest of org.graalvm.compiler.asm.test.AssemblerTest