public class org.graalvm.compiler.hotspot.stubs.OutOfBoundsExceptionStub extends org.graalvm.compiler.hotspot.stubs.CreateExceptionStub
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.hotspot.stubs.OutOfBoundsExceptionStub
super_class: org.graalvm.compiler.hotspot.stubs.CreateExceptionStub
{
private static final boolean PRINT_LENGTH_IN_EXCEPTION;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int MAX_INT_STRING_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String STR_INDEX;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "Index "
private static final java.lang.String STR_OUTOFBOUNDSFORLENGTH;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: " out of bounds for length "
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic org.graalvm.compiler.serviceprovider.JavaVersionUtil.JAVA_SPEC:I
bipush 11
if_icmplt 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.graalvm.compiler.hotspot.stubs.OutOfBoundsExceptionStub.PRINT_LENGTH_IN_EXCEPTION:Z
3: ldc -2147483648
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
invokevirtual java.lang.String.length:()I
putstatic org.graalvm.compiler.hotspot.stubs.OutOfBoundsExceptionStub.MAX_INT_STRING_SIZE:I
4: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.graalvm.compiler.options.OptionValues, org.graalvm.compiler.hotspot.meta.HotSpotProviders, org.graalvm.compiler.hotspot.HotSpotForeignCallLinkage);
descriptor: (Lorg/graalvm/compiler/options/OptionValues;Lorg/graalvm/compiler/hotspot/meta/HotSpotProviders;Lorg/graalvm/compiler/hotspot/HotSpotForeignCallLinkage;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
ldc "createOutOfBoundsException"
aload 1
aload 2
aload 3
invokespecial org.graalvm.compiler.hotspot.stubs.CreateExceptionStub.<init>:(Ljava/lang/String;Lorg/graalvm/compiler/options/OptionValues;Lorg/graalvm/compiler/hotspot/meta/HotSpotProviders;Lorg/graalvm/compiler/hotspot/HotSpotForeignCallLinkage;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/hotspot/stubs/OutOfBoundsExceptionStub;
0 2 1 options Lorg/graalvm/compiler/options/OptionValues;
0 2 2 providers Lorg/graalvm/compiler/hotspot/meta/HotSpotProviders;
0 2 3 linkage Lorg/graalvm/compiler/hotspot/HotSpotForeignCallLinkage;
MethodParameters:
Name Flags
options
providers
linkage
protected java.lang.Object getConstantParameterValue(int, java.lang.String);
descriptor: (ILjava/lang/String;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iload 1
tableswitch { // 2 - 4
2: 1
3: 2
4: 8
default: 9
}
1: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.hotspot.stubs.OutOfBoundsExceptionStub.providers:Lorg/graalvm/compiler/hotspot/meta/HotSpotProviders;
invokevirtual org.graalvm.compiler.hotspot.meta.HotSpotProviders.getRegisters:()Lorg/graalvm/compiler/hotspot/meta/HotSpotRegistersProvider;
invokeinterface org.graalvm.compiler.hotspot.meta.HotSpotRegistersProvider.getThreadRegister:()Ljdk/vm/ci/code/Register;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.hotspot.stubs.OutOfBoundsExceptionStub.providers:Lorg/graalvm/compiler/hotspot/meta/HotSpotProviders;
invokevirtual org.graalvm.compiler.hotspot.meta.HotSpotProviders.getWordTypes:()Lorg/graalvm/compiler/hotspot/word/HotSpotWordTypes;
invokevirtual org.graalvm.compiler.hotspot.word.HotSpotWordTypes.getWordKind:()Ljdk/vm/ci/meta/JavaKind;
invokevirtual jdk.vm.ci.meta.JavaKind.getByteCount:()I
istore 3
start local 3 3: getstatic org.graalvm.compiler.hotspot.stubs.OutOfBoundsExceptionStub.PRINT_LENGTH_IN_EXCEPTION:Z
ifeq 6
4: ldc "Index "
invokevirtual java.lang.String.length:()I
ldc " out of bounds for length "
invokevirtual java.lang.String.length:()I
iadd
iconst_2
getstatic org.graalvm.compiler.hotspot.stubs.OutOfBoundsExceptionStub.MAX_INT_STRING_SIZE:I
imul
iadd
istore 4
start local 4 5: goto 7
end local 4 6: StackMap locals: int
StackMap stack:
getstatic org.graalvm.compiler.hotspot.stubs.OutOfBoundsExceptionStub.MAX_INT_STRING_SIZE:I
istore 4
start local 4 7: StackMap locals: int
StackMap stack:
iload 4
iconst_1
iadd
iload 3
idiv
iconst_1
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
end local 4 end local 3 8: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.hotspot.stubs.OutOfBoundsExceptionStub.PRINT_LENGTH_IN_EXCEPTION:Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
9: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "unknown parameter "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " at index "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 1
invokevirtual java.lang.StringBuilder.append:(I)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 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/graalvm/compiler/hotspot/stubs/OutOfBoundsExceptionStub;
0 10 1 index I
0 10 2 name Ljava/lang/String;
3 8 3 wordSize I
5 6 4 bytes I
7 8 4 bytes I
MethodParameters:
Name Flags
index
name
private static java.lang.Object createOutOfBoundsException(int, int, jdk.vm.ci.code.Register, int, boolean);
descriptor: (IILjdk/vm/ci/code/Register;IZ)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iload 3
invokestatic org.graalvm.compiler.hotspot.nodes.AllocaNode.alloca:(I)Lorg/graalvm/compiler/word/Word;
astore 5
start local 5 1: iload 4
ifeq 7
2: aload 5
ldc "Index "
invokestatic org.graalvm.compiler.hotspot.stubs.StubUtil.printString:(Lorg/graalvm/compiler/word/Word;Ljava/lang/String;)Lorg/graalvm/compiler/word/Word;
astore 6
start local 6 3: aload 6
iload 0
i2l
invokestatic org.graalvm.compiler.hotspot.stubs.StubUtil.printNumber:(Lorg/graalvm/compiler/word/Word;J)Lorg/graalvm/compiler/word/Word;
astore 6
4: aload 6
ldc " out of bounds for length "
invokestatic org.graalvm.compiler.hotspot.stubs.StubUtil.printString:(Lorg/graalvm/compiler/word/Word;Ljava/lang/String;)Lorg/graalvm/compiler/word/Word;
astore 6
5: aload 6
iload 1
i2l
invokestatic org.graalvm.compiler.hotspot.stubs.StubUtil.printNumber:(Lorg/graalvm/compiler/word/Word;J)Lorg/graalvm/compiler/word/Word;
astore 6
6: goto 8
end local 6 7: StackMap locals: org.graalvm.compiler.word.Word
StackMap stack:
aload 5
iload 0
i2l
invokestatic org.graalvm.compiler.hotspot.stubs.StubUtil.printNumber:(Lorg/graalvm/compiler/word/Word;J)Lorg/graalvm/compiler/word/Word;
astore 6
start local 6 8: StackMap locals: org.graalvm.compiler.word.Word
StackMap stack:
aload 6
iconst_0
iconst_0
invokevirtual org.graalvm.compiler.word.Word.writeByte:(IB)V
9: aload 2
ldc Ljava/lang/ArrayIndexOutOfBoundsException;
aload 5
invokestatic org.graalvm.compiler.hotspot.stubs.OutOfBoundsExceptionStub.createException:(Ljdk/vm/ci/code/Register;Ljava/lang/Class;Lorg/graalvm/compiler/word/Word;)Ljava/lang/Object;
areturn
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 10 0 idx I
0 10 1 length I
0 10 2 threadRegister Ljdk/vm/ci/code/Register;
0 10 3 bufferSizeInWords I
0 10 4 printLengthInException Z
1 10 5 buffer Lorg/graalvm/compiler/word/Word;
3 7 6 ptr Lorg/graalvm/compiler/word/Word;
8 10 6 ptr Lorg/graalvm/compiler/word/Word;
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.Snippet()
RuntimeVisibleParameterAnnotations:
0:
1:
2:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
3:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
4:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
MethodParameters:
Name Flags
idx
length
threadRegister
bufferSizeInWords
printLengthInException
}
SourceFile: "OutOfBoundsExceptionStub.java"
InnerClasses:
public abstract ConstantParameter = org.graalvm.compiler.api.replacements.Snippet$ConstantParameter of org.graalvm.compiler.api.replacements.Snippet