public class org.graalvm.compiler.hotspot.amd64.AMD64HotSpotCounterOp extends org.graalvm.compiler.hotspot.HotSpotCounterOp
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.hotspot.amd64.AMD64HotSpotCounterOp
super_class: org.graalvm.compiler.hotspot.HotSpotCounterOp
{
public static final org.graalvm.compiler.lir.LIRInstructionClass<org.graalvm.compiler.hotspot.amd64.AMD64HotSpotCounterOp> TYPE;
descriptor: Lorg/graalvm/compiler/lir/LIRInstructionClass;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Lorg/graalvm/compiler/lir/LIRInstructionClass<Lorg/graalvm/compiler/hotspot/amd64/AMD64HotSpotCounterOp;>;
private jdk.vm.ci.meta.AllocatableValue backupSlot;
descriptor: Ljdk/vm/ci/meta/AllocatableValue;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.graalvm.compiler.lir.LIRInstruction$Alive(value = {org.graalvm.compiler.lir.LIRInstruction$OperandFlag.STACK:Lorg/graalvm/compiler/lir/LIRInstruction$OperandFlag;, org.graalvm.compiler.lir.LIRInstruction$OperandFlag.UNINITIALIZED:Lorg/graalvm/compiler/lir/LIRInstruction$OperandFlag;})
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/hotspot/amd64/AMD64HotSpotCounterOp;
invokestatic org.graalvm.compiler.lir.LIRInstructionClass.create:(Ljava/lang/Class;)Lorg/graalvm/compiler/lir/LIRInstructionClass;
putstatic org.graalvm.compiler.hotspot.amd64.AMD64HotSpotCounterOp.TYPE:Lorg/graalvm/compiler/lir/LIRInstructionClass;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.String, java.lang.String, jdk.vm.ci.meta.Value, org.graalvm.compiler.hotspot.meta.HotSpotRegistersProvider, org.graalvm.compiler.hotspot.GraalHotSpotVMConfig, jdk.vm.ci.meta.AllocatableValue);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljdk/vm/ci/meta/Value;Lorg/graalvm/compiler/hotspot/meta/HotSpotRegistersProvider;Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;Ljdk/vm/ci/meta/AllocatableValue;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
getstatic org.graalvm.compiler.hotspot.amd64.AMD64HotSpotCounterOp.TYPE:Lorg/graalvm/compiler/lir/LIRInstructionClass;
aload 1
aload 2
aload 3
aload 4
aload 5
invokespecial org.graalvm.compiler.hotspot.HotSpotCounterOp.<init>:(Lorg/graalvm/compiler/lir/LIRInstructionClass;Ljava/lang/String;Ljava/lang/String;Ljdk/vm/ci/meta/Value;Lorg/graalvm/compiler/hotspot/meta/HotSpotRegistersProvider;Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)V
1: aload 0
aload 6
putfield org.graalvm.compiler.hotspot.amd64.AMD64HotSpotCounterOp.backupSlot:Ljdk/vm/ci/meta/AllocatableValue;
2: return
end local 6 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 3 0 this Lorg/graalvm/compiler/hotspot/amd64/AMD64HotSpotCounterOp;
0 3 1 name Ljava/lang/String;
0 3 2 group Ljava/lang/String;
0 3 3 increment Ljdk/vm/ci/meta/Value;
0 3 4 registers Lorg/graalvm/compiler/hotspot/meta/HotSpotRegistersProvider;
0 3 5 config Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
0 3 6 backupSlot Ljdk/vm/ci/meta/AllocatableValue;
MethodParameters:
Name Flags
name
group
increment
registers
config
backupSlot
public void <init>(java.lang.String[], java.lang.String[], jdk.vm.ci.meta.Value[], org.graalvm.compiler.hotspot.meta.HotSpotRegistersProvider, org.graalvm.compiler.hotspot.GraalHotSpotVMConfig, jdk.vm.ci.meta.AllocatableValue);
descriptor: ([Ljava/lang/String;[Ljava/lang/String;[Ljdk/vm/ci/meta/Value;Lorg/graalvm/compiler/hotspot/meta/HotSpotRegistersProvider;Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;Ljdk/vm/ci/meta/AllocatableValue;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
getstatic org.graalvm.compiler.hotspot.amd64.AMD64HotSpotCounterOp.TYPE:Lorg/graalvm/compiler/lir/LIRInstructionClass;
aload 1
aload 2
aload 3
aload 4
aload 5
invokespecial org.graalvm.compiler.hotspot.HotSpotCounterOp.<init>:(Lorg/graalvm/compiler/lir/LIRInstructionClass;[Ljava/lang/String;[Ljava/lang/String;[Ljdk/vm/ci/meta/Value;Lorg/graalvm/compiler/hotspot/meta/HotSpotRegistersProvider;Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)V
1: aload 0
aload 6
putfield org.graalvm.compiler.hotspot.amd64.AMD64HotSpotCounterOp.backupSlot:Ljdk/vm/ci/meta/AllocatableValue;
2: return
end local 6 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 3 0 this Lorg/graalvm/compiler/hotspot/amd64/AMD64HotSpotCounterOp;
0 3 1 names [Ljava/lang/String;
0 3 2 groups [Ljava/lang/String;
0 3 3 increments [Ljdk/vm/ci/meta/Value;
0 3 4 registers Lorg/graalvm/compiler/hotspot/meta/HotSpotRegistersProvider;
0 3 5 config Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
0 3 6 backupSlot Ljdk/vm/ci/meta/AllocatableValue;
MethodParameters:
Name Flags
names
groups
increments
registers
config
backupSlot
public void emitCode(org.graalvm.compiler.lir.asm.CompilationResultBuilder);
descriptor: (Lorg/graalvm/compiler/lir/asm/CompilationResultBuilder;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: aload 1
getfield org.graalvm.compiler.lir.asm.CompilationResultBuilder.asm:Lorg/graalvm/compiler/asm/Assembler;
checkcast org.graalvm.compiler.asm.amd64.AMD64MacroAssembler
astore 2
start local 2 1: aload 1
getfield org.graalvm.compiler.lir.asm.CompilationResultBuilder.target:Ljdk/vm/ci/code/TargetDescription;
astore 3
start local 3 2: aload 0
getfield org.graalvm.compiler.hotspot.amd64.AMD64HotSpotCounterOp.increments:[Ljdk/vm/ci/meta/Value;
getstatic jdk.vm.ci.amd64.AMD64.rax:Ljdk/vm/ci/code/Register;
invokestatic org.graalvm.compiler.hotspot.amd64.AMD64HotSpotCounterOp.contains:([Ljdk/vm/ci/meta/Value;Ljdk/vm/ci/code/Register;)Z
ifne 5
3: getstatic jdk.vm.ci.amd64.AMD64.rax:Ljdk/vm/ci/code/Register;
astore 4
start local 4 4: goto 9
end local 4 StackMap locals: org.graalvm.compiler.asm.amd64.AMD64MacroAssembler jdk.vm.ci.code.TargetDescription
StackMap stack:
5: aload 0
getfield org.graalvm.compiler.hotspot.amd64.AMD64HotSpotCounterOp.increments:[Ljdk/vm/ci/meta/Value;
getstatic jdk.vm.ci.amd64.AMD64.rbx:Ljdk/vm/ci/code/Register;
invokestatic org.graalvm.compiler.hotspot.amd64.AMD64HotSpotCounterOp.contains:([Ljdk/vm/ci/meta/Value;Ljdk/vm/ci/code/Register;)Z
ifne 8
6: getstatic jdk.vm.ci.amd64.AMD64.rbx:Ljdk/vm/ci/code/Register;
astore 4
start local 4 7: goto 9
end local 4 8: StackMap locals:
StackMap stack:
ldc "RAX and RBX are increment registers at the same time, spilling over the scratch register is not supported right now"
invokestatic org.graalvm.compiler.debug.GraalError.unimplemented:(Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
start local 4 9: StackMap locals: jdk.vm.ci.code.Register
StackMap stack:
new org.graalvm.compiler.asm.amd64.AMD64Address
dup
aload 0
getfield org.graalvm.compiler.hotspot.amd64.AMD64HotSpotCounterOp.thread:Ljdk/vm/ci/code/Register;
aload 0
getfield org.graalvm.compiler.hotspot.amd64.AMD64HotSpotCounterOp.config:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
getfield org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.jvmciCountersThreadOffset:I
invokespecial org.graalvm.compiler.asm.amd64.AMD64Address.<init>:(Ljdk/vm/ci/code/Register;I)V
astore 5
start local 5 10: aload 4
astore 6
start local 6 11: aload 2
aload 1
aload 0
getfield org.graalvm.compiler.hotspot.amd64.AMD64HotSpotCounterOp.backupSlot:Ljdk/vm/ci/meta/AllocatableValue;
invokevirtual org.graalvm.compiler.lir.asm.CompilationResultBuilder.asAddress:(Ljdk/vm/ci/meta/Value;)Lorg/graalvm/compiler/asm/AbstractAddress;
checkcast org.graalvm.compiler.asm.amd64.AMD64Address
aload 4
invokevirtual org.graalvm.compiler.asm.amd64.AMD64MacroAssembler.movq:(Lorg/graalvm/compiler/asm/amd64/AMD64Address;Ljdk/vm/ci/code/Register;)V
12: aload 2
aload 6
aload 5
invokevirtual org.graalvm.compiler.asm.amd64.AMD64MacroAssembler.movptr:(Ljdk/vm/ci/code/Register;Lorg/graalvm/compiler/asm/amd64/AMD64Address;)V
13: aload 1
aload 2
aload 6
invokedynamic apply(Lorg/graalvm/compiler/lir/asm/CompilationResultBuilder;Lorg/graalvm/compiler/asm/amd64/AMD64MacroAssembler;Ljdk/vm/ci/code/Register;)Lorg/graalvm/compiler/hotspot/HotSpotCounterOp$CounterProcedure;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(ILjdk/vm/ci/meta/Value;I)V
org/graalvm/compiler/hotspot/amd64/AMD64HotSpotCounterOp.lambda$0(Lorg/graalvm/compiler/lir/asm/CompilationResultBuilder;Lorg/graalvm/compiler/asm/amd64/AMD64MacroAssembler;Ljdk/vm/ci/code/Register;ILjdk/vm/ci/meta/Value;I)V (6)
(ILjdk/vm/ci/meta/Value;I)V
astore 7
start local 7 14: aload 0
aload 7
aload 3
invokevirtual org.graalvm.compiler.hotspot.amd64.AMD64HotSpotCounterOp.forEachCounter:(Lorg/graalvm/compiler/hotspot/HotSpotCounterOp$CounterProcedure;Ljdk/vm/ci/code/TargetDescription;)V
15: aload 2
aload 4
aload 1
aload 0
getfield org.graalvm.compiler.hotspot.amd64.AMD64HotSpotCounterOp.backupSlot:Ljdk/vm/ci/meta/AllocatableValue;
invokevirtual org.graalvm.compiler.lir.asm.CompilationResultBuilder.asAddress:(Ljdk/vm/ci/meta/Value;)Lorg/graalvm/compiler/asm/AbstractAddress;
checkcast org.graalvm.compiler.asm.amd64.AMD64Address
invokevirtual org.graalvm.compiler.asm.amd64.AMD64MacroAssembler.movq:(Ljdk/vm/ci/code/Register;Lorg/graalvm/compiler/asm/amd64/AMD64Address;)V
16: return
end local 7 end local 6 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 17 0 this Lorg/graalvm/compiler/hotspot/amd64/AMD64HotSpotCounterOp;
0 17 1 crb Lorg/graalvm/compiler/lir/asm/CompilationResultBuilder;
1 17 2 masm Lorg/graalvm/compiler/asm/amd64/AMD64MacroAssembler;
2 17 3 target Ljdk/vm/ci/code/TargetDescription;
4 5 4 scratch Ljdk/vm/ci/code/Register;
7 8 4 scratch Ljdk/vm/ci/code/Register;
9 17 4 scratch Ljdk/vm/ci/code/Register;
10 17 5 countersArrayAddr Lorg/graalvm/compiler/asm/amd64/AMD64Address;
11 17 6 countersArrayReg Ljdk/vm/ci/code/Register;
14 17 7 emitProcedure Lorg/graalvm/compiler/hotspot/HotSpotCounterOp$CounterProcedure;
MethodParameters:
Name Flags
crb
private static boolean contains(jdk.vm.ci.meta.Value[], jdk.vm.ci.code.Register);
descriptor: ([Ljdk/vm/ci/meta/Value;Ljdk/vm/ci/code/Register;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 5
StackMap locals: jdk.vm.ci.meta.Value[] jdk.vm.ci.code.Register top int int jdk.vm.ci.meta.Value[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 2
invokestatic jdk.vm.ci.code.ValueUtil.isRegister:(Ljdk/vm/ci/meta/Value;)Z
ifeq 4
aload 2
invokestatic jdk.vm.ci.code.ValueUtil.asRegister:(Ljdk/vm/ci/meta/Value;)Ljdk/vm/ci/code/Register;
aload 1
invokevirtual jdk.vm.ci.code.Register.equals:(Ljava/lang/Object;)Z
ifeq 4
3: iconst_1
ireturn
end local 2 4: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 4
if_icmplt 1
6: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 increments [Ljdk/vm/ci/meta/Value;
0 7 1 register Ljdk/vm/ci/code/Register;
2 4 2 increment Ljdk/vm/ci/meta/Value;
MethodParameters:
Name Flags
increments
register
private static void emitIncrement(org.graalvm.compiler.lir.asm.CompilationResultBuilder, org.graalvm.compiler.asm.amd64.AMD64MacroAssembler, jdk.vm.ci.code.Register, jdk.vm.ci.meta.Value, int);
descriptor: (Lorg/graalvm/compiler/lir/asm/CompilationResultBuilder;Lorg/graalvm/compiler/asm/amd64/AMD64MacroAssembler;Ljdk/vm/ci/code/Register;Ljdk/vm/ci/meta/Value;I)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new org.graalvm.compiler.asm.amd64.AMD64Address
dup
aload 2
iload 4
invokespecial org.graalvm.compiler.asm.amd64.AMD64Address.<init>:(Ljdk/vm/ci/code/Register;I)V
astore 5
start local 5 1: aload 3
invokestatic org.graalvm.compiler.lir.LIRValueUtil.isJavaConstant:(Ljdk/vm/ci/meta/Value;)Z
ifeq 5
2: aload 3
invokestatic org.graalvm.compiler.lir.LIRValueUtil.asJavaConstant:(Ljdk/vm/ci/meta/Value;)Ljdk/vm/ci/meta/JavaConstant;
invokestatic org.graalvm.compiler.hotspot.amd64.AMD64HotSpotCounterOp.asInt:(Ljdk/vm/ci/meta/JavaConstant;)I
istore 6
start local 6 3: aload 1
aload 5
iload 6
invokevirtual org.graalvm.compiler.asm.amd64.AMD64MacroAssembler.incrementq:(Lorg/graalvm/compiler/asm/amd64/AMD64Address;I)V
end local 6 4: goto 6
5: StackMap locals: org.graalvm.compiler.asm.amd64.AMD64Address
StackMap stack:
aload 1
aload 5
aload 3
invokestatic jdk.vm.ci.code.ValueUtil.asRegister:(Ljdk/vm/ci/meta/Value;)Ljdk/vm/ci/code/Register;
invokevirtual org.graalvm.compiler.asm.amd64.AMD64MacroAssembler.addq:(Lorg/graalvm/compiler/asm/amd64/AMD64Address;Ljdk/vm/ci/code/Register;)V
6: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Options.AbortOnBenchmarkCounterOverflow:Lorg/graalvm/compiler/options/OptionKey;
aload 0
invokevirtual org.graalvm.compiler.lir.asm.CompilationResultBuilder.getOptions:()Lorg/graalvm/compiler/options/OptionValues;
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 12
7: new org.graalvm.compiler.asm.Label
dup
invokespecial org.graalvm.compiler.asm.Label.<init>:()V
astore 6
start local 6 8: aload 1
getstatic org.graalvm.compiler.asm.amd64.AMD64Assembler$ConditionFlag.NoOverflow:Lorg/graalvm/compiler/asm/amd64/AMD64Assembler$ConditionFlag;
aload 6
invokevirtual org.graalvm.compiler.asm.amd64.AMD64MacroAssembler.jccb:(Lorg/graalvm/compiler/asm/amd64/AMD64Assembler$ConditionFlag;Lorg/graalvm/compiler/asm/Label;)V
9: aload 0
ldc "[BENCHMARK COUNTER OVERFLOW]"
invokevirtual org.graalvm.compiler.lir.asm.CompilationResultBuilder.blockComment:(Ljava/lang/String;)V
10: aload 1
invokevirtual org.graalvm.compiler.asm.amd64.AMD64MacroAssembler.illegal:()V
11: aload 1
aload 6
invokevirtual org.graalvm.compiler.asm.amd64.AMD64MacroAssembler.bind:(Lorg/graalvm/compiler/asm/Label;)V
end local 6 12: StackMap locals:
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 13 0 crb Lorg/graalvm/compiler/lir/asm/CompilationResultBuilder;
0 13 1 masm Lorg/graalvm/compiler/asm/amd64/AMD64MacroAssembler;
0 13 2 countersArrayReg Ljdk/vm/ci/code/Register;
0 13 3 incrementValue Ljdk/vm/ci/meta/Value;
0 13 4 displacement I
1 13 5 counterAddr Lorg/graalvm/compiler/asm/amd64/AMD64Address;
3 4 6 increment I
8 12 6 target Lorg/graalvm/compiler/asm/Label;
MethodParameters:
Name Flags
crb
masm
countersArrayReg
incrementValue
displacement
private static void lambda$0(org.graalvm.compiler.lir.asm.CompilationResultBuilder, org.graalvm.compiler.asm.amd64.AMD64MacroAssembler, jdk.vm.ci.code.Register, int, jdk.vm.ci.meta.Value, int);
descriptor: (Lorg/graalvm/compiler/lir/asm/CompilationResultBuilder;Lorg/graalvm/compiler/asm/amd64/AMD64MacroAssembler;Ljdk/vm/ci/code/Register;ILjdk/vm/ci/meta/Value;I)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=6, args_size=6
start local 3 start local 4 start local 5 0: aload 0
aload 1
aload 2
aload 4
iload 5
invokestatic org.graalvm.compiler.hotspot.amd64.AMD64HotSpotCounterOp.emitIncrement:(Lorg/graalvm/compiler/lir/asm/CompilationResultBuilder;Lorg/graalvm/compiler/asm/amd64/AMD64MacroAssembler;Ljdk/vm/ci/code/Register;Ljdk/vm/ci/meta/Value;I)V
return
end local 5 end local 4 end local 3 LocalVariableTable:
Start End Slot Name Signature
0 1 3 counterIndex I
0 1 4 increment Ljdk/vm/ci/meta/Value;
0 1 5 displacement I
}
SourceFile: "AMD64HotSpotCounterOp.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final ConditionFlag = org.graalvm.compiler.asm.amd64.AMD64Assembler$ConditionFlag of org.graalvm.compiler.asm.amd64.AMD64Assembler
protected abstract CounterProcedure = org.graalvm.compiler.hotspot.HotSpotCounterOp$CounterProcedure of org.graalvm.compiler.hotspot.HotSpotCounterOp
public Options = org.graalvm.compiler.hotspot.debug.BenchmarkCounters$Options of org.graalvm.compiler.hotspot.debug.BenchmarkCounters
public abstract Alive = org.graalvm.compiler.lir.LIRInstruction$Alive of org.graalvm.compiler.lir.LIRInstruction
public final OperandFlag = org.graalvm.compiler.lir.LIRInstruction$OperandFlag of org.graalvm.compiler.lir.LIRInstruction
RuntimeVisibleAnnotations:
org.graalvm.compiler.lir.Opcode(value = "BenchMarkCounter")