public final class org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver extends org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolutionPhase$MoveResolver
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver
super_class: org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolutionPhase$MoveResolver
{
private static final org.graalvm.compiler.debug.CounterKey cycleBreakingSlotsAllocated;
descriptor: Lorg/graalvm/compiler/debug/CounterKey;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.graalvm.compiler.debug.CounterKey cycleBreakingSlotsReused;
descriptor: Lorg/graalvm/compiler/debug/CounterKey;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private int insertIdx;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private org.graalvm.compiler.lir.LIRInsertionBuffer insertionBuffer;
descriptor: Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
flags: (0x0002) ACC_PRIVATE
private final java.util.ArrayList<jdk.vm.ci.meta.Value> mappingFrom;
descriptor: Ljava/util/ArrayList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/ArrayList<Ljdk/vm/ci/meta/Value;>;
private final java.util.ArrayList<jdk.vm.ci.meta.Value> mappingFromStack;
descriptor: Ljava/util/ArrayList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/ArrayList<Ljdk/vm/ci/meta/Value;>;
private final java.util.ArrayList<jdk.vm.ci.meta.AllocatableValue> mappingTo;
descriptor: Ljava/util/ArrayList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/ArrayList<Ljdk/vm/ci/meta/AllocatableValue;>;
private final int[] registerBlocked;
descriptor: [I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final int STACK_SLOT_IN_CALLER_FRAME_IDX;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -1
private int[] stackBlocked;
descriptor: [I
flags: (0x0002) ACC_PRIVATE
private final int firstVirtualStackIndex;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.graalvm.compiler.lir.gen.LIRGeneratorTool$MoveFactory spillMoveFactory;
descriptor: Lorg/graalvm/compiler/lir/gen/LIRGeneratorTool$MoveFactory;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.graalvm.compiler.lir.framemap.FrameMapBuilder frameMapBuilder;
descriptor: Lorg/graalvm/compiler/lir/framemap/FrameMapBuilder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.graalvm.compiler.options.OptionValues options;
descriptor: Lorg/graalvm/compiler/options/OptionValues;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.graalvm.compiler.core.common.alloc.RegisterAllocationConfig registerAllocationConfig;
descriptor: Lorg/graalvm/compiler/core/common/alloc/RegisterAllocationConfig;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.graalvm.compiler.lir.gen.LIRGenerationResult res;
descriptor: Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.graalvm.compiler.debug.DebugContext debug;
descriptor: Lorg/graalvm/compiler/debug/DebugContext;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
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/lir/alloc/trace/TraceGlobalMoveResolver;
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.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
3: ldc "TraceRA[cycleBreakingSlotsAllocated(global)]"
invokestatic org.graalvm.compiler.debug.DebugContext.counter:(Ljava/lang/CharSequence;)Lorg/graalvm/compiler/debug/CounterKey;
putstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.cycleBreakingSlotsAllocated:Lorg/graalvm/compiler/debug/CounterKey;
4: ldc "TraceRA[cycleBreakingSlotsReused(global)]"
invokestatic org.graalvm.compiler.debug.DebugContext.counter:(Ljava/lang/CharSequence;)Lorg/graalvm/compiler/debug/CounterKey;
putstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.cycleBreakingSlotsReused:Lorg/graalvm/compiler/debug/CounterKey;
5: return
LocalVariableTable:
Start End Slot Name Signature
private void setValueBlocked(jdk.vm.ci.meta.Value, int);
descriptor: (Ljdk/vm/ci/meta/Value;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 1
iload 2
iconst_1
if_icmpeq 1
iload 2
iconst_m1
if_icmpeq 1
new java.lang.AssertionError
dup
ldc "out of bounds"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 1
invokestatic org.graalvm.compiler.lir.LIRValueUtil.isStackSlotValue:(Ljdk/vm/ci/meta/Value;)Z
ifeq 9
2: aload 0
aload 1
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.getStackArrayIndex:(Ljdk/vm/ci/meta/Value;)I
istore 3
start local 3 3: iload 3
iconst_m1
if_icmpne 5
4: return
5: StackMap locals: int
StackMap stack:
iload 3
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.stackBlocked:[I
arraylength
if_icmplt 7
6: aload 0
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.stackBlocked:[I
iload 3
iconst_1
iadd
invokestatic java.util.Arrays.copyOf:([II)[I
putfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.stackBlocked:[I
7: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.stackBlocked:[I
iload 3
dup2
iaload
iload 2
iadd
iastore
end local 3 8: goto 14
9: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 10
iload 2
iconst_1
if_icmpeq 10
iload 2
iconst_m1
if_icmpeq 10
new java.lang.AssertionError
dup
ldc "out of bounds"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
10: StackMap locals:
StackMap stack:
aload 1
invokestatic jdk.vm.ci.code.ValueUtil.isRegister:(Ljdk/vm/ci/meta/Value;)Z
ifeq 13
11: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.registerBlocked:[I
aload 1
invokestatic jdk.vm.ci.code.ValueUtil.asRegister:(Ljdk/vm/ci/meta/Value;)Ljdk/vm/ci/code/Register;
getfield jdk.vm.ci.code.Register.number:I
dup2
iaload
iload 2
iadd
iastore
12: goto 14
13: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "unhandled value "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.debug.GraalError.shouldNotReachHere:(Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
14: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
0 15 1 location Ljdk/vm/ci/meta/Value;
0 15 2 direction I
3 8 3 stackIdx I
MethodParameters:
Name Flags
location
direction
private int valueBlocked(jdk.vm.ci.meta.Value);
descriptor: (Ljdk/vm/ci/meta/Value;)I
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.lir.LIRValueUtil.isStackSlotValue:(Ljdk/vm/ci/meta/Value;)Z
ifeq 7
1: aload 0
aload 1
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.getStackArrayIndex:(Ljdk/vm/ci/meta/Value;)I
istore 2
start local 2 2: iload 2
iconst_m1
if_icmpne 4
3: iconst_1
ireturn
4: StackMap locals: int
StackMap stack:
iload 2
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.stackBlocked:[I
arraylength
if_icmplt 6
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.stackBlocked:[I
iload 2
iaload
ireturn
end local 2 7: StackMap locals:
StackMap stack:
aload 1
invokestatic jdk.vm.ci.code.ValueUtil.isRegister:(Ljdk/vm/ci/meta/Value;)Z
ifeq 9
8: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.registerBlocked:[I
aload 1
invokestatic jdk.vm.ci.code.ValueUtil.asRegister:(Ljdk/vm/ci/meta/Value;)Ljdk/vm/ci/code/Register;
getfield jdk.vm.ci.code.Register.number:I
iaload
ireturn
9: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "unhandled value "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.debug.GraalError.shouldNotReachHere:(Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
0 10 1 location Ljdk/vm/ci/meta/Value;
2 7 2 stackIdx I
MethodParameters:
Name Flags
location
private static boolean areMultipleReadsAllowed();
descriptor: ()Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_1
ireturn
LocalVariableTable:
Start End Slot Name Signature
private boolean hasMappings();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
ifle 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
private org.graalvm.compiler.lir.gen.LIRGeneratorTool$MoveFactory getSpillMoveFactory();
descriptor: ()Lorg/graalvm/compiler/lir/gen/LIRGeneratorTool$MoveFactory;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.spillMoveFactory:Lorg/graalvm/compiler/lir/gen/LIRGeneratorTool$MoveFactory;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
private jdk.vm.ci.code.RegisterArray getRegisters();
descriptor: ()Ljdk/vm/ci/code/RegisterArray;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.frameMapBuilder:Lorg/graalvm/compiler/lir/framemap/FrameMapBuilder;
invokevirtual org.graalvm.compiler.lir.framemap.FrameMapBuilder.getRegisterConfig:()Ljdk/vm/ci/code/RegisterConfig;
invokeinterface jdk.vm.ci.code.RegisterConfig.getAllocatableRegisters:()Ljdk/vm/ci/code/RegisterArray;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
public void <init>(org.graalvm.compiler.lir.gen.LIRGenerationResult, org.graalvm.compiler.lir.gen.LIRGeneratorTool$MoveFactory, org.graalvm.compiler.core.common.alloc.RegisterAllocationConfig, jdk.vm.ci.code.Architecture);
descriptor: (Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;Lorg/graalvm/compiler/lir/gen/LIRGeneratorTool$MoveFactory;Lorg/graalvm/compiler/core/common/alloc/RegisterAllocationConfig;Ljdk/vm/ci/code/Architecture;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolutionPhase$MoveResolver.<init>:()V
1: aload 0
new java.util.ArrayList
dup
bipush 8
invokespecial java.util.ArrayList.<init>:(I)V
putfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
2: aload 0
new java.util.ArrayList
dup
bipush 8
invokespecial java.util.ArrayList.<init>:(I)V
putfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFromStack:Ljava/util/ArrayList;
3: aload 0
new java.util.ArrayList
dup
bipush 8
invokespecial java.util.ArrayList.<init>:(I)V
putfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingTo:Ljava/util/ArrayList;
4: aload 0
iconst_m1
putfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.insertIdx:I
5: aload 0
new org.graalvm.compiler.lir.LIRInsertionBuffer
dup
invokespecial org.graalvm.compiler.lir.LIRInsertionBuffer.<init>:()V
putfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.insertionBuffer:Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
6: aload 0
aload 1
invokevirtual org.graalvm.compiler.lir.gen.LIRGenerationResult.getFrameMapBuilder:()Lorg/graalvm/compiler/lir/framemap/FrameMapBuilder;
putfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.frameMapBuilder:Lorg/graalvm/compiler/lir/framemap/FrameMapBuilder;
7: aload 0
aload 2
putfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.spillMoveFactory:Lorg/graalvm/compiler/lir/gen/LIRGeneratorTool$MoveFactory;
8: aload 0
aload 4
invokevirtual jdk.vm.ci.code.Architecture.getRegisters:()Ljdk/vm/ci/code/RegisterArray;
invokevirtual jdk.vm.ci.code.RegisterArray.size:()I
newarray 10
putfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.registerBlocked:[I
9: aload 0
aload 3
putfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.registerAllocationConfig:Lorg/graalvm/compiler/core/common/alloc/RegisterAllocationConfig;
10: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.frameMapBuilder:Lorg/graalvm/compiler/lir/framemap/FrameMapBuilder;
checkcast org.graalvm.compiler.lir.framemap.FrameMapBuilderTool
astore 5
start local 5 11: aload 0
aload 5
invokevirtual org.graalvm.compiler.lir.framemap.FrameMapBuilderTool.getNumberOfStackSlots:()I
newarray 10
putfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.stackBlocked:[I
12: aload 5
invokevirtual org.graalvm.compiler.lir.framemap.FrameMapBuilderTool.getFrameMap:()Lorg/graalvm/compiler/lir/framemap/FrameMap;
astore 6
start local 6 13: aload 0
aload 6
invokevirtual org.graalvm.compiler.lir.framemap.FrameMap.frameNeedsAllocating:()Z
ifne 14
iconst_0
goto 15
StackMap locals: org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver org.graalvm.compiler.lir.gen.LIRGenerationResult org.graalvm.compiler.lir.gen.LIRGeneratorTool$MoveFactory org.graalvm.compiler.core.common.alloc.RegisterAllocationConfig jdk.vm.ci.code.Architecture org.graalvm.compiler.lir.framemap.FrameMapBuilderTool org.graalvm.compiler.lir.framemap.FrameMap
StackMap stack: org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver
14: aload 6
invokevirtual org.graalvm.compiler.lir.framemap.FrameMap.currentFrameSize:()I
iconst_1
iadd
StackMap locals: org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver org.graalvm.compiler.lir.gen.LIRGenerationResult org.graalvm.compiler.lir.gen.LIRGeneratorTool$MoveFactory org.graalvm.compiler.core.common.alloc.RegisterAllocationConfig jdk.vm.ci.code.Architecture org.graalvm.compiler.lir.framemap.FrameMapBuilderTool org.graalvm.compiler.lir.framemap.FrameMap
StackMap stack: org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver int
15: putfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.firstVirtualStackIndex:I
16: aload 0
aload 1
putfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.res:Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;
17: aload 1
invokevirtual org.graalvm.compiler.lir.gen.LIRGenerationResult.getLIR:()Lorg/graalvm/compiler/lir/LIR;
astore 7
start local 7 18: aload 0
aload 7
invokevirtual org.graalvm.compiler.lir.LIR.getOptions:()Lorg/graalvm/compiler/options/OptionValues;
putfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.options:Lorg/graalvm/compiler/options/OptionValues;
19: aload 0
aload 7
invokevirtual org.graalvm.compiler.lir.LIR.getDebug:()Lorg/graalvm/compiler/debug/DebugContext;
putfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.debug:Lorg/graalvm/compiler/debug/DebugContext;
20: 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 21 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
0 21 1 res Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;
0 21 2 spillMoveFactory Lorg/graalvm/compiler/lir/gen/LIRGeneratorTool$MoveFactory;
0 21 3 registerAllocationConfig Lorg/graalvm/compiler/core/common/alloc/RegisterAllocationConfig;
0 21 4 arch Ljdk/vm/ci/code/Architecture;
11 21 5 frameMapBuilderTool Lorg/graalvm/compiler/lir/framemap/FrameMapBuilderTool;
13 21 6 frameMap Lorg/graalvm/compiler/lir/framemap/FrameMap;
18 21 7 lir Lorg/graalvm/compiler/lir/LIR;
MethodParameters:
Name Flags
res
spillMoveFactory
registerAllocationConfig
arch
private boolean checkEmpty();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 4
2: StackMap locals: int
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 3
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.stackBlocked:[I
iload 1
iaload
ifeq 3
new java.lang.AssertionError
dup
ldc "stack map must be empty before and after processing"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
3: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
4: iload 1
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.stackBlocked:[I
arraylength
if_icmplt 2
end local 1 5: getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 7
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
ifne 6
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingTo:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
ifne 6
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFromStack:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
ifeq 7
StackMap locals:
StackMap stack:
6: new java.lang.AssertionError
dup
ldc "list must be empty before and after processing"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
7: StackMap locals:
StackMap stack:
iconst_0
istore 1
start local 1 8: goto 11
9: StackMap locals: int
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 10
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.registerBlocked:[I
iload 1
iaload
ifeq 10
new java.lang.AssertionError
dup
ldc "register map must be empty before and after processing"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
10: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
11: iload 1
aload 0
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.getRegisters:()Ljdk/vm/ci/code/RegisterArray;
invokevirtual jdk.vm.ci.code.RegisterArray.size:()I
if_icmplt 9
end local 1 12: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
1 5 1 i I
8 12 1 i I
private boolean verifyBeforeResolve();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=1
start local 0 0: getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 2
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingTo:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
if_icmpne 1
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFromStack:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
if_icmpeq 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
ldc "length must be equal"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 3
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.insertIdx:I
iconst_m1
if_icmpne 3
new java.lang.AssertionError
dup
ldc "insert position not set"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
3: StackMap locals:
StackMap stack:
invokestatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.areMultipleReadsAllowed:()Z
ifne 13
4: iconst_0
istore 1
start local 1 5: goto 12
6: StackMap locals: int
StackMap stack:
iload 1
iconst_1
iadd
istore 2
start local 2 7: goto 10
8: StackMap locals: int
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 9
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
iload 1
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
ifnull 9
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
iload 1
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
iload 2
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
if_acmpne 9
new java.lang.AssertionError
dup
ldc "cannot read from same interval twice"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
9: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
10: iload 2
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
if_icmplt 8
11: iinc 1 1
end local 2 StackMap locals:
StackMap stack:
12: iload 1
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
if_icmplt 6
end local 1 13: StackMap locals:
StackMap stack:
iconst_0
istore 1
start local 1 14: goto 21
15: StackMap locals: int
StackMap stack:
iload 1
iconst_1
iadd
istore 2
start local 2 16: goto 19
17: StackMap locals: int
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 18
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingTo:Ljava/util/ArrayList;
iload 1
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingTo:Ljava/util/ArrayList;
iload 2
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
if_acmpne 18
new java.lang.AssertionError
dup
ldc "cannot write to same interval twice"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
18: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
19: iload 2
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingTo:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
if_icmplt 17
20: iinc 1 1
end local 2 StackMap locals:
StackMap stack:
21: iload 1
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingTo:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
if_icmplt 15
22: iconst_0
istore 1
goto 26
23: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingTo:Ljava/util/ArrayList;
iload 1
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast jdk.vm.ci.meta.Value
astore 3
start local 3 24: getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 25
aload 3
invokestatic org.graalvm.compiler.lir.LIRValueUtil.isStackSlotValue:(Ljdk/vm/ci/meta/Value;)Z
ifeq 25
aload 0
aload 3
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.getStackArrayIndex:(Ljdk/vm/ci/meta/Value;)I
iconst_m1
if_icmpne 25
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "Cannot move to in argument: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
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
end local 3 25: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
26: iload 1
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingTo:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
if_icmplt 23
27: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 3
start local 3 28: invokestatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.areMultipleReadsAllowed:()Z
ifne 36
29: iconst_0
istore 1
goto 35
30: StackMap locals: org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver int top java.util.HashSet
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
iload 1
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast jdk.vm.ci.meta.Value
astore 4
start local 4 31: aload 4
ifnull 34
aload 4
invokestatic jdk.vm.ci.code.ValueUtil.isIllegal:(Ljdk/vm/ci/meta/Value;)Z
ifne 34
32: aload 3
aload 4
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
istore 5
start local 5 33: getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 34
iload 5
ifne 34
new java.lang.AssertionError
dup
ldc "cannot read from same register twice"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 5 end local 4 34: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
35: iload 1
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
if_icmplt 30
36: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.util.HashSet.clear:()V
37: iconst_0
istore 1
goto 44
38: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingTo:Ljava/util/ArrayList;
iload 1
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast jdk.vm.ci.meta.Value
astore 4
start local 4 39: aload 4
invokestatic jdk.vm.ci.code.ValueUtil.isIllegal:(Ljdk/vm/ci/meta/Value;)Z
ifeq 41
40: goto 43
41: StackMap locals: jdk.vm.ci.meta.Value
StackMap stack:
aload 3
aload 4
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
istore 5
start local 5 42: getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 43
iload 5
ifne 43
new java.lang.AssertionError
dup
ldc "cannot write to same register twice"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 5 end local 4 43: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
44: iload 1
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingTo:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
if_icmplt 38
45: iconst_1
ireturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 46 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
5 13 1 i I
14 46 1 i I
7 12 2 j I
16 21 2 j I
24 25 3 to Ljdk/vm/ci/meta/Value;
28 46 3 usedRegs Ljava/util/HashSet<Ljdk/vm/ci/meta/Value;>;
31 34 4 from Ljdk/vm/ci/meta/Value;
33 34 5 unique Z
39 43 4 to Ljdk/vm/ci/meta/Value;
42 43 5 unique Z
private void block(jdk.vm.ci.meta.Value);
descriptor: (Ljdk/vm/ci/meta/Value;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mightBeBlocked:(Ljdk/vm/ci/meta/Value;)Z
ifeq 4
1: getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 2
invokestatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.areMultipleReadsAllowed:()Z
ifne 2
aload 0
aload 1
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.valueBlocked:(Ljdk/vm/ci/meta/Value;)I
ifeq 2
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "location already marked as used: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
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
2: StackMap locals:
StackMap stack:
aload 0
aload 1
iconst_1
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.setValueBlocked:(Ljdk/vm/ci/meta/Value;I)V
3: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.debug:Lorg/graalvm/compiler/debug/DebugContext;
ldc "block %s"
aload 1
invokevirtual org.graalvm.compiler.debug.DebugContext.log:(Ljava/lang/String;Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
0 5 1 location Ljdk/vm/ci/meta/Value;
MethodParameters:
Name Flags
location
private void unblock(jdk.vm.ci.meta.Value);
descriptor: (Ljdk/vm/ci/meta/Value;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mightBeBlocked:(Ljdk/vm/ci/meta/Value;)Z
ifeq 4
1: getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 2
aload 0
aload 1
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.valueBlocked:(Ljdk/vm/ci/meta/Value;)I
ifgt 2
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "location already marked as unused: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
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
2: StackMap locals:
StackMap stack:
aload 0
aload 1
iconst_m1
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.setValueBlocked:(Ljdk/vm/ci/meta/Value;I)V
3: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.debug:Lorg/graalvm/compiler/debug/DebugContext;
ldc "unblock %s"
aload 1
invokevirtual org.graalvm.compiler.debug.DebugContext.log:(Ljava/lang/String;Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
0 5 1 location Ljdk/vm/ci/meta/Value;
MethodParameters:
Name Flags
location
private boolean safeToProcessMove(jdk.vm.ci.meta.Value, jdk.vm.ci.meta.Value);
descriptor: (Ljdk/vm/ci/meta/Value;Ljdk/vm/ci/meta/Value;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mightBeBlocked:(Ljdk/vm/ci/meta/Value;)Z
ifeq 3
1: aload 0
aload 2
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.valueBlocked:(Ljdk/vm/ci/meta/Value;)I
iconst_1
if_icmpgt 2
aload 0
aload 2
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.valueBlocked:(Ljdk/vm/ci/meta/Value;)I
iconst_1
if_icmpne 3
aload 1
aload 2
invokestatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.isMoveToSelf:(Ljdk/vm/ci/meta/Value;Ljdk/vm/ci/meta/Value;)Z
ifne 3
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
3: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
0 4 1 fromLocation Ljdk/vm/ci/meta/Value;
0 4 2 toLocation Ljdk/vm/ci/meta/Value;
MethodParameters:
Name Flags
fromLocation
toLocation
public static boolean isMoveToSelf(jdk.vm.ci.meta.Value, jdk.vm.ci.meta.Value);
descriptor: (Ljdk/vm/ci/meta/Value;Ljdk/vm/ci/meta/Value;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 1
aload 1
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual jdk.vm.ci.meta.Value.equals:(Ljava/lang/Object;)Z
ifeq 3
2: iconst_1
ireturn
3: StackMap locals:
StackMap stack:
aload 0
ifnonnull 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
aload 0
invokestatic org.graalvm.compiler.lir.alloc.trace.TraceUtil.isShadowedRegisterValue:(Ljdk/vm/ci/meta/Value;)Z
ifeq 13
6: aload 1
invokestatic org.graalvm.compiler.lir.alloc.trace.TraceUtil.isShadowedRegisterValue:(Ljdk/vm/ci/meta/Value;)Z
ifeq 8
7: iconst_0
ireturn
8: StackMap locals:
StackMap stack:
aload 0
invokestatic org.graalvm.compiler.lir.alloc.trace.TraceUtil.asShadowedRegisterValue:(Ljdk/vm/ci/meta/Value;)Lorg/graalvm/compiler/lir/alloc/trace/ShadowedRegisterValue;
astore 2
start local 2 9: aload 2
invokevirtual org.graalvm.compiler.lir.alloc.trace.ShadowedRegisterValue.getRegister:()Ljdk/vm/ci/code/RegisterValue;
aload 1
invokestatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.isRegisterToRegisterMoveToSelf:(Ljdk/vm/ci/meta/Value;Ljdk/vm/ci/meta/Value;)Z
ifeq 11
10: iconst_1
ireturn
11: StackMap locals: org.graalvm.compiler.lir.alloc.trace.ShadowedRegisterValue
StackMap stack:
aload 1
invokestatic org.graalvm.compiler.lir.LIRValueUtil.isStackSlotValue:(Ljdk/vm/ci/meta/Value;)Z
ifeq 14
12: aload 1
aload 2
invokevirtual org.graalvm.compiler.lir.alloc.trace.ShadowedRegisterValue.getStackSlot:()Ljdk/vm/ci/meta/AllocatableValue;
invokevirtual jdk.vm.ci.meta.Value.equals:(Ljava/lang/Object;)Z
ireturn
end local 2 13: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.isRegisterToRegisterMoveToSelf:(Ljdk/vm/ci/meta/Value;Ljdk/vm/ci/meta/Value;)Z
ireturn
14: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 from Ljdk/vm/ci/meta/Value;
0 15 1 to Ljdk/vm/ci/meta/Value;
9 13 2 shadowed Lorg/graalvm/compiler/lir/alloc/trace/ShadowedRegisterValue;
MethodParameters:
Name Flags
from
to
private static boolean isRegisterToRegisterMoveToSelf(jdk.vm.ci.meta.Value, jdk.vm.ci.meta.Value);
descriptor: (Ljdk/vm/ci/meta/Value;Ljdk/vm/ci/meta/Value;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual jdk.vm.ci.meta.Value.equals:(Ljava/lang/Object;)Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic jdk.vm.ci.code.ValueUtil.isRegister:(Ljdk/vm/ci/meta/Value;)Z
ifeq 4
aload 1
invokestatic jdk.vm.ci.code.ValueUtil.isRegister:(Ljdk/vm/ci/meta/Value;)Z
ifeq 4
aload 0
invokestatic jdk.vm.ci.code.ValueUtil.asRegister:(Ljdk/vm/ci/meta/Value;)Ljdk/vm/ci/code/Register;
aload 1
invokestatic jdk.vm.ci.code.ValueUtil.asRegister:(Ljdk/vm/ci/meta/Value;)Ljdk/vm/ci/code/Register;
invokevirtual jdk.vm.ci.code.Register.equals:(Ljava/lang/Object;)Z
ifeq 4
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 from Ljdk/vm/ci/meta/Value;
0 5 1 to Ljdk/vm/ci/meta/Value;
MethodParameters:
Name Flags
from
to
private static boolean mightBeBlocked(jdk.vm.ci.meta.Value);
descriptor: (Ljdk/vm/ci/meta/Value;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic jdk.vm.ci.code.ValueUtil.isRegister:(Ljdk/vm/ci/meta/Value;)Z
ifne 1
aload 0
invokestatic org.graalvm.compiler.lir.LIRValueUtil.isStackSlotValue:(Ljdk/vm/ci/meta/Value;)Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 location Ljdk/vm/ci/meta/Value;
MethodParameters:
Name Flags
location
private void createInsertionBuffer(java.util.ArrayList<org.graalvm.compiler.lir.LIRInstruction>);
descriptor: (Ljava/util/ArrayList;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 1
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.insertionBuffer:Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.initialized:()Z
ifeq 1
new java.lang.AssertionError
dup
ldc "overwriting existing buffer"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.insertionBuffer:Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
aload 1
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.init:(Ljava/util/List;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
0 3 1 list Ljava/util/ArrayList<Lorg/graalvm/compiler/lir/LIRInstruction;>;
Signature: (Ljava/util/ArrayList<Lorg/graalvm/compiler/lir/LIRInstruction;>;)V
MethodParameters:
Name Flags
list
private void appendInsertionBuffer();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.insertionBuffer:Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.initialized:()Z
ifeq 2
1: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.insertionBuffer:Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.finish:()V
2: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 3
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.insertionBuffer:Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.initialized:()Z
ifeq 3
new java.lang.AssertionError
dup
ldc "must be uninitialized now"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
iconst_m1
putfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.insertIdx:I
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
private org.graalvm.compiler.lir.LIRInstruction insertMove(jdk.vm.ci.meta.Value, jdk.vm.ci.meta.AllocatableValue);
descriptor: (Ljdk/vm/ci/meta/Value;Ljdk/vm/ci/meta/AllocatableValue;)Lorg/graalvm/compiler/lir/LIRInstruction;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 1
aload 1
aload 2
invokevirtual jdk.vm.ci.meta.Value.equals:(Ljava/lang/Object;)Z
ifeq 1
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "from and to are equal: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " vs. "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
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
1: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 2
aload 1
invokevirtual jdk.vm.ci.meta.Value.getValueKind:()Ljdk/vm/ci/meta/ValueKind;
aload 1
invokevirtual jdk.vm.ci.meta.Value.getValueKind:()Ljdk/vm/ci/meta/ValueKind;
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.registerAllocationConfig:Lorg/graalvm/compiler/core/common/alloc/RegisterAllocationConfig;
invokestatic org.graalvm.compiler.core.common.LIRKind.verifyMoveKinds:(Ljdk/vm/ci/meta/ValueKind;Ljdk/vm/ci/meta/ValueKind;Lorg/graalvm/compiler/core/common/alloc/RegisterAllocationConfig;)Z
ifne 2
new java.lang.AssertionError
dup
ldc "move between different types"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 3
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.insertIdx:I
iconst_m1
if_icmpne 3
new java.lang.AssertionError
dup
ldc "must setup insert position first"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.createMove:(Ljdk/vm/ci/meta/Value;Ljdk/vm/ci/meta/AllocatableValue;)Lorg/graalvm/compiler/lir/LIRInstruction;
astore 3
start local 3 4: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.insertionBuffer:Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.insertIdx:I
aload 3
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.append:(ILorg/graalvm/compiler/lir/LIRInstruction;)V
5: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.debug:Lorg/graalvm/compiler/debug/DebugContext;
invokevirtual org.graalvm.compiler.debug.DebugContext.isLogEnabled:()Z
ifeq 7
6: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.debug:Lorg/graalvm/compiler/debug/DebugContext;
ldc "insert move from %s to %s at %d"
aload 1
aload 2
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.insertIdx:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual org.graalvm.compiler.debug.DebugContext.log:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
7: StackMap locals: org.graalvm.compiler.lir.LIRInstruction
StackMap stack:
aload 3
areturn
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/lir/alloc/trace/TraceGlobalMoveResolver;
0 8 1 fromOperand Ljdk/vm/ci/meta/Value;
0 8 2 toOperand Ljdk/vm/ci/meta/AllocatableValue;
4 8 3 move Lorg/graalvm/compiler/lir/LIRInstruction;
MethodParameters:
Name Flags
fromOperand
toOperand
private org.graalvm.compiler.lir.LIRInstruction createMove(jdk.vm.ci.meta.Value, jdk.vm.ci.meta.AllocatableValue);
descriptor: (Ljdk/vm/ci/meta/Value;Ljdk/vm/ci/meta/AllocatableValue;)Lorg/graalvm/compiler/lir/LIRInstruction;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic org.graalvm.compiler.lir.LIRValueUtil.isStackSlotValue:(Ljdk/vm/ci/meta/Value;)Z
ifeq 2
aload 1
invokestatic org.graalvm.compiler.lir.LIRValueUtil.isStackSlotValue:(Ljdk/vm/ci/meta/Value;)Z
ifeq 2
1: aload 0
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.getSpillMoveFactory:()Lorg/graalvm/compiler/lir/gen/LIRGeneratorTool$MoveFactory;
aload 2
aload 1
invokestatic jdk.vm.ci.code.ValueUtil.asAllocatableValue:(Ljdk/vm/ci/meta/Value;)Ljdk/vm/ci/meta/AllocatableValue;
invokeinterface org.graalvm.compiler.lir.gen.LIRGeneratorTool$MoveFactory.createStackMove:(Ljdk/vm/ci/meta/AllocatableValue;Ljdk/vm/ci/meta/AllocatableValue;)Lorg/graalvm/compiler/lir/LIRInstruction;
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.getSpillMoveFactory:()Lorg/graalvm/compiler/lir/gen/LIRGeneratorTool$MoveFactory;
aload 2
aload 1
invokeinterface org.graalvm.compiler.lir.gen.LIRGeneratorTool$MoveFactory.createMove:(Ljdk/vm/ci/meta/AllocatableValue;Ljdk/vm/ci/meta/Value;)Lorg/graalvm/compiler/lir/LIRInstruction;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
0 3 1 fromOpr Ljdk/vm/ci/meta/Value;
0 3 2 toOpr Ljdk/vm/ci/meta/AllocatableValue;
MethodParameters:
Name Flags
fromOpr
toOpr
private void resolveMappings();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=11, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.debug:Lorg/graalvm/compiler/debug/DebugContext;
ldc "resolveMapping"
invokevirtual org.graalvm.compiler.debug.DebugContext.logAndIndent:(Ljava/lang/String;)Lorg/graalvm/compiler/debug/Indent;
astore 3
start local 3 2: getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 3
aload 0
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.verifyBeforeResolve:()Z
ifne 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.debug:Lorg/graalvm/compiler/debug/DebugContext;
invokevirtual org.graalvm.compiler.debug.DebugContext.isLogEnabled:()Z
ifeq 5
4: aload 0
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.printMapping:()V
5: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
iconst_1
isub
istore 4
start local 4 6: goto 10
7: StackMap locals: int
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
iload 4
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast jdk.vm.ci.meta.Value
astore 5
start local 5 8: aload 0
aload 5
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.block:(Ljdk/vm/ci/meta/Value;)V
end local 5 9: iinc 4 -1
StackMap locals:
StackMap stack:
10: iload 4
ifge 7
end local 4 11: aconst_null
astore 4
start local 4 12: goto 42
13: StackMap locals: org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent java.util.ArrayList
StackMap stack:
iconst_0
istore 5
start local 5 14: iconst_m1
istore 6
start local 6 15: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
iconst_1
isub
istore 7
start local 7 16: goto 39
17: StackMap locals: int int int
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
iload 7
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast jdk.vm.ci.meta.Value
astore 8
start local 8 18: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingTo:Ljava/util/ArrayList;
iload 7
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast jdk.vm.ci.meta.AllocatableValue
astore 9
start local 9 19: aload 0
aload 8
aload 9
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.safeToProcessMove:(Ljdk/vm/ci/meta/Value;Ljdk/vm/ci/meta/Value;)Z
ifeq 32
20: aload 0
aload 8
aload 9
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.insertMove:(Ljdk/vm/ci/meta/Value;Ljdk/vm/ci/meta/AllocatableValue;)Lorg/graalvm/compiler/lir/LIRInstruction;
astore 10
start local 10 21: aload 10
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.res:Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;
ldc "TraceGlobalMoveResolver: resolveMapping"
invokevirtual org.graalvm.compiler.lir.LIRInstruction.setComment:(Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;Ljava/lang/String;)V
22: aload 0
aload 8
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.unblock:(Ljdk/vm/ci/meta/Value;)V
23: aload 9
invokestatic org.graalvm.compiler.lir.LIRValueUtil.isStackSlotValue:(Ljdk/vm/ci/meta/Value;)Z
ifeq 27
24: aload 4
ifnonnull 26
25: new java.util.ArrayList
dup
iconst_2
invokespecial java.util.ArrayList.<init>:(I)V
astore 4
26: StackMap locals: jdk.vm.ci.meta.Value jdk.vm.ci.meta.AllocatableValue org.graalvm.compiler.lir.LIRInstruction
StackMap stack:
aload 4
aload 9
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
27: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
iload 7
invokevirtual java.util.ArrayList.remove:(I)Ljava/lang/Object;
pop
28: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFromStack:Ljava/util/ArrayList;
iload 7
invokevirtual java.util.ArrayList.remove:(I)Ljava/lang/Object;
pop
29: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingTo:Ljava/util/ArrayList;
iload 7
invokevirtual java.util.ArrayList.remove:(I)Ljava/lang/Object;
pop
30: iconst_1
istore 5
end local 10 31: goto 38
StackMap locals:
StackMap stack:
32: aload 8
ifnull 38
33: aload 8
invokestatic jdk.vm.ci.code.ValueUtil.isRegister:(Ljdk/vm/ci/meta/Value;)Z
ifeq 36
aload 4
ifnull 34
aload 4
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFromStack:Ljava/util/ArrayList;
iload 7
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
invokevirtual java.util.ArrayList.contains:(Ljava/lang/Object;)Z
ifne 36
34: StackMap locals:
StackMap stack:
iload 7
istore 6
35: goto 38
StackMap locals:
StackMap stack:
36: aload 8
invokestatic org.graalvm.compiler.lir.LIRValueUtil.isStackSlotValue:(Ljdk/vm/ci/meta/Value;)Z
ifeq 38
iload 6
iconst_m1
if_icmpne 38
37: iload 7
istore 6
end local 9 end local 8 38: StackMap locals:
StackMap stack:
iinc 7 -1
StackMap locals:
StackMap stack:
39: iload 7
ifge 17
end local 7 40: iload 5
ifne 42
41: aload 0
iload 6
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.breakCycle:(I)V
end local 6 end local 5 42: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
ifgt 13
end local 4 43: aload 3
ifnull 49
aload 3
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
goto 49
StackMap locals: org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent
StackMap stack: java.lang.Throwable
44: astore 1
aload 3
ifnull 45
aload 3
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
end local 3 StackMap locals:
StackMap stack:
45: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
46: astore 2
aload 1
ifnonnull 47
aload 2
astore 1
goto 48
StackMap locals:
StackMap stack:
47: aload 1
aload 2
if_acmpeq 48
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
48: aload 1
athrow
49: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 50
aload 0
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.checkEmpty:()Z
ifne 50
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
50: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 51 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
2 45 3 indent Lorg/graalvm/compiler/debug/Indent;
6 11 4 i I
8 9 5 from Ljdk/vm/ci/meta/Value;
12 43 4 busySpillSlots Ljava/util/ArrayList<Ljdk/vm/ci/meta/AllocatableValue;>;
14 42 5 processedInterval Z
15 42 6 spillCandidate I
16 40 7 i I
18 38 8 fromLocation Ljdk/vm/ci/meta/Value;
19 38 9 toLocation Ljdk/vm/ci/meta/AllocatableValue;
21 31 10 move Lorg/graalvm/compiler/lir/LIRInstruction;
Exception table:
from to target type
2 43 44 any
1 46 46 any
private void breakCycle(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=8, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 1
iload 1
iconst_m1
if_icmpne 1
new java.lang.AssertionError
dup
ldc "no interval in register for spilling found"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
iload 1
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast jdk.vm.ci.meta.Value
astore 2
start local 2 2: aconst_null
astore 3
aconst_null
astore 4
3: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.debug:Lorg/graalvm/compiler/debug/DebugContext;
ldc "BreakCycle: %s"
aload 2
invokevirtual org.graalvm.compiler.debug.DebugContext.logAndIndent:(Ljava/lang/String;Ljava/lang/Object;)Lorg/graalvm/compiler/debug/Indent;
astore 5
start local 5 4: aconst_null
astore 6
start local 6 5: getstatic org.graalvm.compiler.lir.alloc.trace.TraceRegisterAllocationPhase$Options.TraceRAreuseStackSlotsForMoveResolutionCycleBreaking:Lorg/graalvm/compiler/options/OptionKey;
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.options: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 11
aload 2
invokestatic org.graalvm.compiler.lir.LIRValueUtil.isStackSlotValue:(Ljdk/vm/ci/meta/Value;)Z
ifne 11
6: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFromStack:Ljava/util/ArrayList;
iload 1
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast jdk.vm.ci.meta.Value
astore 7
start local 7 7: aload 7
ifnull 11
8: aload 7
checkcast jdk.vm.ci.meta.AllocatableValue
astore 6
9: getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.cycleBreakingSlotsReused:Lorg/graalvm/compiler/debug/CounterKey;
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.debug:Lorg/graalvm/compiler/debug/DebugContext;
invokeinterface org.graalvm.compiler.debug.CounterKey.increment:(Lorg/graalvm/compiler/debug/DebugContext;)V
10: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.debug:Lorg/graalvm/compiler/debug/DebugContext;
ldc "reuse slot for spilling: %s"
aload 6
invokevirtual org.graalvm.compiler.debug.DebugContext.log:(Ljava/lang/String;Ljava/lang/Object;)V
end local 7 11: StackMap locals: org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver int jdk.vm.ci.meta.Value java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent jdk.vm.ci.meta.AllocatableValue
StackMap stack:
aload 6
ifnonnull 17
12: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.frameMapBuilder:Lorg/graalvm/compiler/lir/framemap/FrameMapBuilder;
aload 2
invokevirtual jdk.vm.ci.meta.Value.getValueKind:()Ljdk/vm/ci/meta/ValueKind;
invokevirtual org.graalvm.compiler.lir.framemap.FrameMapBuilder.allocateSpillSlot:(Ljdk/vm/ci/meta/ValueKind;)Lorg/graalvm/compiler/lir/VirtualStackSlot;
astore 6
13: getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.cycleBreakingSlotsAllocated:Lorg/graalvm/compiler/debug/CounterKey;
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.debug:Lorg/graalvm/compiler/debug/DebugContext;
invokeinterface org.graalvm.compiler.debug.CounterKey.increment:(Lorg/graalvm/compiler/debug/DebugContext;)V
14: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.debug:Lorg/graalvm/compiler/debug/DebugContext;
ldc "created new slot for spilling: %s"
aload 6
invokevirtual org.graalvm.compiler.debug.DebugContext.log:(Ljava/lang/String;Ljava/lang/Object;)V
15: aload 0
aload 2
aload 6
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.insertMove:(Ljdk/vm/ci/meta/Value;Ljdk/vm/ci/meta/AllocatableValue;)Lorg/graalvm/compiler/lir/LIRInstruction;
astore 7
start local 7 16: aload 7
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.res:Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;
ldc "TraceGlobalMoveResolver: breakCycle"
invokevirtual org.graalvm.compiler.lir.LIRInstruction.setComment:(Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;Ljava/lang/String;)V
end local 7 17: StackMap locals:
StackMap stack:
aload 0
aload 6
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.block:(Ljdk/vm/ci/meta/Value;)V
18: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
iload 1
aload 6
invokevirtual java.util.ArrayList.set:(ILjava/lang/Object;)Ljava/lang/Object;
pop
19: aload 0
aload 2
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.unblock:(Ljdk/vm/ci/meta/Value;)V
end local 6 20: aload 5
ifnull 26
aload 5
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
goto 26
StackMap locals: org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver int jdk.vm.ci.meta.Value java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent
StackMap stack: java.lang.Throwable
21: astore 3
aload 5
ifnull 22
aload 5
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
end local 5 StackMap locals:
StackMap stack:
22: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
23: astore 4
aload 3
ifnonnull 24
aload 4
astore 3
goto 25
StackMap locals:
StackMap stack:
24: aload 3
aload 4
if_acmpeq 25
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
25: aload 3
athrow
26: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
0 27 1 spillCandidate I
2 27 2 from Ljdk/vm/ci/meta/Value;
4 22 5 indent Lorg/graalvm/compiler/debug/Indent;
5 20 6 spillSlot Ljdk/vm/ci/meta/AllocatableValue;
7 11 7 fromStack Ljdk/vm/ci/meta/Value;
16 17 7 move Lorg/graalvm/compiler/lir/LIRInstruction;
Exception table:
from to target type
4 20 21 any
3 23 23 any
MethodParameters:
Name Flags
spillCandidate
private void printMapping();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.debug:Lorg/graalvm/compiler/debug/DebugContext;
ldc "Mapping"
invokevirtual org.graalvm.compiler.debug.DebugContext.logAndIndent:(Ljava/lang/String;)Lorg/graalvm/compiler/debug/Indent;
astore 3
start local 3 2: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
iconst_1
isub
istore 4
start local 4 3: goto 6
4: StackMap locals: org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent int
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.debug:Lorg/graalvm/compiler/debug/DebugContext;
ldc "move %s <- %s (%s)"
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingTo:Ljava/util/ArrayList;
iload 4
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
iload 4
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFromStack:Ljava/util/ArrayList;
iload 4
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
invokevirtual org.graalvm.compiler.debug.DebugContext.log:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
5: iinc 4 -1
StackMap locals:
StackMap stack:
6: iload 4
ifge 4
end local 4 7: aload 3
ifnull 13
aload 3
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
goto 13
StackMap locals: org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent
StackMap stack: java.lang.Throwable
8: astore 1
aload 3
ifnull 9
aload 3
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
end local 3 StackMap locals:
StackMap stack:
9: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 2
aload 1
ifnonnull 11
aload 2
astore 1
goto 12
StackMap locals:
StackMap stack:
11: aload 1
aload 2
if_acmpeq 12
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
12: aload 1
athrow
13: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
2 9 3 indent Lorg/graalvm/compiler/debug/Indent;
3 7 4 i I
Exception table:
from to target type
2 7 8 any
1 10 10 any
public void setInsertPosition(java.util.ArrayList<org.graalvm.compiler.lir.LIRInstruction>, );
descriptor: (Ljava/util/ArrayList;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 1
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.insertIdx:I
iconst_m1
if_icmpeq 1
new java.lang.AssertionError
dup
ldc "use moveInsertPosition instead of setInsertPosition when data already set"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.createInsertionBuffer:(Ljava/util/ArrayList;)V
2: aload 0
iload 2
putfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.insertIdx:I
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
0 4 1 insertList Ljava/util/ArrayList<Lorg/graalvm/compiler/lir/LIRInstruction;>;
0 4 2 insertIdx I
Signature: (Ljava/util/ArrayList<Lorg/graalvm/compiler/lir/LIRInstruction;>;I)V
MethodParameters:
Name Flags
insertList
insertIdx
public void addMapping(jdk.vm.ci.meta.Value, jdk.vm.ci.meta.AllocatableValue, jdk.vm.ci.meta.Value);
descriptor: (Ljdk/vm/ci/meta/Value;Ljdk/vm/ci/meta/AllocatableValue;Ljdk/vm/ci/meta/Value;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.debug:Lorg/graalvm/compiler/debug/DebugContext;
invokevirtual org.graalvm.compiler.debug.DebugContext.isLogEnabled:()Z
ifeq 2
1: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.debug:Lorg/graalvm/compiler/debug/DebugContext;
ldc "add move mapping from %s to %s"
aload 1
aload 2
invokevirtual org.graalvm.compiler.debug.DebugContext.log:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 3
aload 1
aload 2
invokevirtual jdk.vm.ci.meta.Value.equals:(Ljava/lang/Object;)Z
ifeq 3
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "from and to interval equal: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
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
3: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 6
aload 2
invokevirtual jdk.vm.ci.meta.AllocatableValue.getValueKind:()Ljdk/vm/ci/meta/ValueKind;
aload 1
invokevirtual jdk.vm.ci.meta.Value.getValueKind:()Ljdk/vm/ci/meta/ValueKind;
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.registerAllocationConfig:Lorg/graalvm/compiler/core/common/alloc/RegisterAllocationConfig;
invokestatic org.graalvm.compiler.core.common.LIRKind.verifyMoveKinds:(Ljdk/vm/ci/meta/ValueKind;Ljdk/vm/ci/meta/ValueKind;Lorg/graalvm/compiler/core/common/alloc/RegisterAllocationConfig;)Z
ifne 6
new java.lang.AssertionError
dup
ldc "Kind mismatch: %s vs. %s, from=%s, to=%s"
iconst_4
anewarray java.lang.Object
dup
iconst_0
aload 1
invokevirtual jdk.vm.ci.meta.Value.getValueKind:()Ljdk/vm/ci/meta/ValueKind;
aastore
dup
iconst_1
4: aload 2
invokevirtual jdk.vm.ci.meta.AllocatableValue.getValueKind:()Ljdk/vm/ci/meta/ValueKind;
aastore
dup
iconst_2
aload 1
aastore
dup
iconst_3
aload 2
aastore
5: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
6: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 10
aload 3
ifnull 10
aload 2
invokevirtual jdk.vm.ci.meta.AllocatableValue.getValueKind:()Ljdk/vm/ci/meta/ValueKind;
aload 3
invokevirtual jdk.vm.ci.meta.Value.getValueKind:()Ljdk/vm/ci/meta/ValueKind;
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.registerAllocationConfig:Lorg/graalvm/compiler/core/common/alloc/RegisterAllocationConfig;
invokestatic org.graalvm.compiler.core.common.LIRKind.verifyMoveKinds:(Ljdk/vm/ci/meta/ValueKind;Ljdk/vm/ci/meta/ValueKind;Lorg/graalvm/compiler/core/common/alloc/RegisterAllocationConfig;)Z
ifne 10
new java.lang.AssertionError
dup
ldc "Kind mismatch: %s vs. %s, fromStack=%s, to=%s"
iconst_4
anewarray java.lang.Object
dup
iconst_0
7: aload 3
invokevirtual jdk.vm.ci.meta.Value.getValueKind:()Ljdk/vm/ci/meta/ValueKind;
aastore
dup
iconst_1
8: aload 2
invokevirtual jdk.vm.ci.meta.AllocatableValue.getValueKind:()Ljdk/vm/ci/meta/ValueKind;
aastore
dup
iconst_2
aload 3
aastore
dup
iconst_3
aload 2
aastore
9: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
10: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFrom:Ljava/util/ArrayList;
aload 1
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
11: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingFromStack:Ljava/util/ArrayList;
aload 3
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
12: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.mappingTo:Ljava/util/ArrayList;
aload 2
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
13: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
0 14 1 from Ljdk/vm/ci/meta/Value;
0 14 2 to Ljdk/vm/ci/meta/AllocatableValue;
0 14 3 fromStack Ljdk/vm/ci/meta/Value;
MethodParameters:
Name Flags
from
to
fromStack
public void resolveAndAppendMoves();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.hasMappings:()Z
ifeq 2
1: aload 0
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.resolveMappings:()V
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.appendInsertionBuffer:()V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
private int getStackArrayIndex(jdk.vm.ci.meta.Value);
descriptor: (Ljdk/vm/ci/meta/Value;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic jdk.vm.ci.code.ValueUtil.isStackSlot:(Ljdk/vm/ci/meta/Value;)Z
ifeq 2
1: aload 0
aload 1
invokestatic jdk.vm.ci.code.ValueUtil.asStackSlot:(Ljdk/vm/ci/meta/Value;)Ljdk/vm/ci/code/StackSlot;
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.getStackArrayIndex:(Ljdk/vm/ci/code/StackSlot;)I
ireturn
2: StackMap locals:
StackMap stack:
aload 1
invokestatic org.graalvm.compiler.lir.LIRValueUtil.isVirtualStackSlot:(Ljdk/vm/ci/meta/Value;)Z
ifeq 4
3: aload 0
aload 1
invokestatic org.graalvm.compiler.lir.LIRValueUtil.asVirtualStackSlot:(Ljdk/vm/ci/meta/Value;)Lorg/graalvm/compiler/lir/VirtualStackSlot;
invokevirtual org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.getStackArrayIndex:(Lorg/graalvm/compiler/lir/VirtualStackSlot;)I
ireturn
4: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "value is not a stack slot: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.debug.GraalError.shouldNotReachHere:(Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
0 5 1 stackSlotValue Ljdk/vm/ci/meta/Value;
MethodParameters:
Name Flags
stackSlotValue
private int getStackArrayIndex(jdk.vm.ci.code.StackSlot);
descriptor: (Ljdk/vm/ci/code/StackSlot;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.vm.ci.code.StackSlot.isInCallerFrame:()Z
ifeq 3
1: iconst_m1
istore 2
start local 2 2: goto 8
end local 2 3: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 4
aload 1
invokevirtual jdk.vm.ci.code.StackSlot.getRawAddFrameSize:()Z
ifne 4
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "Unexpected stack slot: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
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:
StackMap stack:
aload 1
invokevirtual jdk.vm.ci.code.StackSlot.getRawOffset:()I
ineg
istore 3
start local 3 5: getstatic org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.$assertionsDisabled:Z
ifne 7
iload 3
iflt 6
iload 3
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.firstVirtualStackIndex:I
if_icmplt 7
StackMap locals: org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver jdk.vm.ci.code.StackSlot top int
StackMap stack:
6: new java.lang.AssertionError
dup
ldc "Wrong stack slot offset: %d (first virtual stack slot index: %d"
iconst_2
anewarray java.lang.Object
dup
iconst_0
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.firstVirtualStackIndex:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
7: StackMap locals:
StackMap stack:
iload 3
istore 2
end local 3 start local 2 8: StackMap locals: org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver jdk.vm.ci.code.StackSlot int
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
0 9 1 stackSlot Ljdk/vm/ci/code/StackSlot;
2 3 2 stackIdx I
8 9 2 stackIdx I
5 8 3 offset I
MethodParameters:
Name Flags
stackSlot
private int getStackArrayIndex(org.graalvm.compiler.lir.VirtualStackSlot);
descriptor: (Lorg/graalvm/compiler/lir/VirtualStackSlot;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolver.firstVirtualStackIndex:I
aload 1
invokevirtual org.graalvm.compiler.lir.VirtualStackSlot.getId:()I
iadd
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/lir/alloc/trace/TraceGlobalMoveResolver;
0 1 1 virtualStackSlot Lorg/graalvm/compiler/lir/VirtualStackSlot;
MethodParameters:
Name Flags
virtualStackSlot
}
SourceFile: "TraceGlobalMoveResolver.java"
InnerClasses:
public abstract MoveResolver = org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolutionPhase$MoveResolver of org.graalvm.compiler.lir.alloc.trace.TraceGlobalMoveResolutionPhase
public Options = org.graalvm.compiler.lir.alloc.trace.TraceRegisterAllocationPhase$Options of org.graalvm.compiler.lir.alloc.trace.TraceRegisterAllocationPhase
public abstract MoveFactory = org.graalvm.compiler.lir.gen.LIRGeneratorTool$MoveFactory of org.graalvm.compiler.lir.gen.LIRGeneratorTool