public class org.graalvm.compiler.hotspot.stubs.ExceptionHandlerStub extends org.graalvm.compiler.hotspot.stubs.SnippetStub
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.hotspot.stubs.ExceptionHandlerStub
super_class: org.graalvm.compiler.hotspot.stubs.SnippetStub
{
public static final org.graalvm.compiler.core.common.spi.ForeignCallDescriptor EXCEPTION_HANDLER_FOR_PC;
descriptor: Lorg/graalvm/compiler/core/common/spi/ForeignCallDescriptor;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, 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=7, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/hotspot/stubs/ExceptionHandlerStub;
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.hotspot.stubs.ExceptionHandlerStub.$assertionsDisabled:Z
3: ldc Lorg/graalvm/compiler/hotspot/stubs/ExceptionHandlerStub;
ldc "exceptionHandlerForPc"
ldc Lorg/graalvm/compiler/word/Word;
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lorg/graalvm/compiler/word/Word;
aastore
invokestatic org.graalvm.compiler.hotspot.stubs.StubUtil.newDescriptor:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/Class;)Lorg/graalvm/compiler/core/common/spi/ForeignCallDescriptor;
putstatic org.graalvm.compiler.hotspot.stubs.ExceptionHandlerStub.EXCEPTION_HANDLER_FOR_PC:Lorg/graalvm/compiler/core/common/spi/ForeignCallDescriptor;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.graalvm.compiler.hotspot.meta.HotSpotProviders, org.graalvm.compiler.hotspot.HotSpotForeignCallLinkage);
descriptor: (Lorg/graalvm/compiler/hotspot/meta/HotSpotProviders;Lorg/graalvm/compiler/hotspot/HotSpotForeignCallLinkage;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc "exceptionHandler"
aload 1
aload 2
invokespecial org.graalvm.compiler.hotspot.stubs.SnippetStub.<init>:(Ljava/lang/String;Lorg/graalvm/compiler/hotspot/meta/HotSpotProviders;Lorg/graalvm/compiler/hotspot/HotSpotForeignCallLinkage;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/hotspot/stubs/ExceptionHandlerStub;
0 2 1 providers Lorg/graalvm/compiler/hotspot/meta/HotSpotProviders;
0 2 2 linkage Lorg/graalvm/compiler/hotspot/HotSpotForeignCallLinkage;
MethodParameters:
Name Flags
providers
linkage
public boolean preservesRegisters();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/stubs/ExceptionHandlerStub;
protected java.lang.Object getConstantParameterValue(int, java.lang.String);
descriptor: (ILjava/lang/String;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.graalvm.compiler.hotspot.stubs.ExceptionHandlerStub.$assertionsDisabled:Z
ifne 1
iload 1
iconst_2
if_icmpeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.hotspot.stubs.ExceptionHandlerStub.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
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/hotspot/stubs/ExceptionHandlerStub;
0 2 1 index I
0 2 2 name Ljava/lang/String;
MethodParameters:
Name Flags
index
name
private static void exceptionHandler(java.lang.Object, org.graalvm.compiler.word.Word, jdk.vm.ci.code.Register);
descriptor: (Ljava/lang/Object;Lorg/graalvm/compiler/word/Word;Ljdk/vm/ci/code/Register;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic org.graalvm.compiler.hotspot.replacements.HotSpotReplacementsUtil.registerAsWord:(Ljdk/vm/ci/code/Register;)Lorg/graalvm/compiler/word/Word;
astore 3
start local 3 1: aload 3
getstatic org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.INJECTED_VMCONFIG:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
invokestatic org.graalvm.compiler.hotspot.stubs.ExceptionHandlerStub.assertionsEnabled:(Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)Z
invokestatic org.graalvm.compiler.hotspot.stubs.ExceptionHandlerStub.checkNoExceptionInThread:(Lorg/graalvm/compiler/word/Word;Z)V
2: getstatic org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.INJECTED_VMCONFIG:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
invokestatic org.graalvm.compiler.hotspot.stubs.ExceptionHandlerStub.assertionsEnabled:(Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)Z
aload 0
invokestatic org.graalvm.compiler.hotspot.stubs.ExceptionHandlerStub.checkExceptionNotNull:(ZLjava/lang/Object;)V
3: aload 3
aload 0
invokestatic org.graalvm.compiler.hotspot.replacements.HotSpotReplacementsUtil.writeExceptionOop:(Lorg/graalvm/compiler/word/Word;Ljava/lang/Object;)V
4: aload 3
aload 1
invokestatic org.graalvm.compiler.hotspot.replacements.HotSpotReplacementsUtil.writeExceptionPc:(Lorg/graalvm/compiler/word/Word;Lorg/graalvm/compiler/word/Word;)V
5: invokestatic org.graalvm.compiler.hotspot.stubs.ExceptionHandlerStub.logging:()Z
ifeq 11
6: ldc "handling exception %p ("
aload 0
invokestatic org.graalvm.compiler.word.Word.objectToTrackedPointer:(Ljava/lang/Object;)Lorg/graalvm/compiler/word/Pointer;
invokeinterface org.graalvm.compiler.word.Pointer.rawValue:()J
invokestatic org.graalvm.compiler.hotspot.stubs.StubUtil.printf:(Ljava/lang/String;J)V
7: aload 0
invokestatic org.graalvm.compiler.word.Word.objectToTrackedPointer:(Ljava/lang/Object;)Lorg/graalvm/compiler/word/Pointer;
invokeinterface org.graalvm.compiler.word.Pointer.rawValue:()J
invokestatic org.graalvm.compiler.hotspot.stubs.StubUtil.decipher:(J)V
8: ldc ") at %p ("
aload 1
invokevirtual org.graalvm.compiler.word.Word.rawValue:()J
invokestatic org.graalvm.compiler.hotspot.stubs.StubUtil.printf:(Ljava/lang/String;J)V
9: aload 1
invokevirtual org.graalvm.compiler.word.Word.rawValue:()J
invokestatic org.graalvm.compiler.hotspot.stubs.StubUtil.decipher:(J)V
10: ldc ")\n"
invokestatic org.graalvm.compiler.hotspot.stubs.StubUtil.printf:(Ljava/lang/String;)V
11: StackMap locals: org.graalvm.compiler.word.Word
StackMap stack:
aload 1
invokestatic org.graalvm.compiler.hotspot.nodes.PatchReturnAddressNode.patchReturnAddress:(Lorg/graalvm/compiler/word/Word;)V
12: getstatic org.graalvm.compiler.hotspot.stubs.ExceptionHandlerStub.EXCEPTION_HANDLER_FOR_PC:Lorg/graalvm/compiler/core/common/spi/ForeignCallDescriptor;
aload 3
invokestatic org.graalvm.compiler.hotspot.stubs.ExceptionHandlerStub.exceptionHandlerForPc:(Lorg/graalvm/compiler/core/common/spi/ForeignCallDescriptor;Lorg/graalvm/compiler/word/Word;)Lorg/graalvm/compiler/word/Word;
astore 4
start local 4 13: invokestatic org.graalvm.compiler.hotspot.stubs.ExceptionHandlerStub.logging:()Z
ifeq 17
14: ldc "handler for exception %p at %p is at %p ("
aload 0
invokestatic org.graalvm.compiler.word.Word.objectToTrackedPointer:(Ljava/lang/Object;)Lorg/graalvm/compiler/word/Pointer;
invokeinterface org.graalvm.compiler.word.Pointer.rawValue:()J
aload 1
invokevirtual org.graalvm.compiler.word.Word.rawValue:()J
aload 4
invokevirtual org.graalvm.compiler.word.Word.rawValue:()J
invokestatic org.graalvm.compiler.hotspot.stubs.StubUtil.printf:(Ljava/lang/String;JJJ)V
15: aload 4
invokevirtual org.graalvm.compiler.word.Word.rawValue:()J
invokestatic org.graalvm.compiler.hotspot.stubs.StubUtil.decipher:(J)V
16: ldc ")\n"
invokestatic org.graalvm.compiler.hotspot.stubs.StubUtil.printf:(Ljava/lang/String;)V
17: StackMap locals: org.graalvm.compiler.word.Word
StackMap stack:
aload 4
invokestatic org.graalvm.compiler.hotspot.nodes.JumpToExceptionHandlerNode.jumpToExceptionHandler:(Lorg/graalvm/compiler/word/Word;)V
18: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 exception Ljava/lang/Object;
0 19 1 exceptionPc Lorg/graalvm/compiler/word/Word;
0 19 2 threadRegister Ljdk/vm/ci/code/Register;
1 19 3 thread Lorg/graalvm/compiler/word/Word;
13 19 4 handlerPc Lorg/graalvm/compiler/word/Word;
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.Snippet()
RuntimeVisibleParameterAnnotations:
0:
1:
2:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
MethodParameters:
Name Flags
exception
exceptionPc
threadRegister
static void checkNoExceptionInThread(org.graalvm.compiler.word.Word, boolean);
descriptor: (Lorg/graalvm/compiler/word/Word;Z)V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: iload 1
ifeq 8
1: aload 0
invokestatic org.graalvm.compiler.hotspot.replacements.HotSpotReplacementsUtil.readExceptionOop:(Lorg/graalvm/compiler/word/Word;)Ljava/lang/Object;
astore 2
start local 2 2: aload 2
ifnull 4
3: ldc "exception object in thread must be null, not %p"
aload 2
invokestatic org.graalvm.compiler.word.Word.objectToTrackedPointer:(Ljava/lang/Object;)Lorg/graalvm/compiler/word/Pointer;
invokeinterface org.graalvm.compiler.word.Pointer.rawValue:()J
invokestatic org.graalvm.compiler.hotspot.stubs.StubUtil.fatal:(Ljava/lang/String;J)V
4: StackMap locals: java.lang.Object
StackMap stack:
getstatic org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.INJECTED_VMCONFIG:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
invokestatic org.graalvm.compiler.hotspot.stubs.StubUtil.cAssertionsEnabled:(Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)Z
ifeq 8
5: aload 0
invokestatic org.graalvm.compiler.hotspot.replacements.HotSpotReplacementsUtil.readExceptionPc:(Lorg/graalvm/compiler/word/Word;)Lorg/graalvm/compiler/word/Word;
astore 3
start local 3 6: aload 3
invokestatic org.graalvm.compiler.word.Word.zero:()Lorg/graalvm/compiler/word/Word;
invokevirtual org.graalvm.compiler.word.Word.notEqual:(Lorg/graalvm/compiler/word/Word;)Z
ifeq 8
7: ldc "exception PC in thread must be zero, not %p"
aload 3
invokevirtual org.graalvm.compiler.word.Word.rawValue:()J
invokestatic org.graalvm.compiler.hotspot.stubs.StubUtil.fatal:(Ljava/lang/String;J)V
end local 3 end local 2 8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 thread Lorg/graalvm/compiler/word/Word;
0 9 1 enabled Z
2 8 2 currentException Ljava/lang/Object;
6 8 3 currentExceptionPc Lorg/graalvm/compiler/word/Word;
MethodParameters:
Name Flags
thread
enabled
static void checkExceptionNotNull(boolean, java.lang.Object);
descriptor: (ZLjava/lang/Object;)V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 0
ifeq 2
aload 1
ifnonnull 2
1: ldc "exception must not be null"
invokestatic org.graalvm.compiler.hotspot.stubs.StubUtil.fatal:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 enabled Z
0 3 1 exception Ljava/lang/Object;
MethodParameters:
Name Flags
enabled
exception
static boolean logging();
descriptor: ()Z
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.graalvm.compiler.hotspot.stubs.StubOptions.TraceExceptionHandlerStub:Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.Fold()
static boolean assertionsEnabled(org.graalvm.compiler.hotspot.GraalHotSpotVMConfig);
descriptor: (Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: getstatic org.graalvm.compiler.hotspot.stubs.ExceptionHandlerStub.$assertionsDisabled:Z
ifne 2
iconst_1
dup
istore 1
ifne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: int
StackMap stack:
iload 1
ifne 3
aload 0
invokestatic org.graalvm.compiler.hotspot.stubs.StubUtil.cAssertionsEnabled:(Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)Z
ifne 3
iconst_0
ireturn
StackMap locals:
StackMap stack:
3: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 config Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
1 4 1 enabled Z
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.Fold()
RuntimeVisibleParameterAnnotations:
0:
org.graalvm.compiler.api.replacements.Fold$InjectedParameter()
MethodParameters:
Name Flags
config
public static native org.graalvm.compiler.word.Word exceptionHandlerForPc(org.graalvm.compiler.core.common.spi.ForeignCallDescriptor, org.graalvm.compiler.word.Word);
descriptor: (Lorg/graalvm/compiler/core/common/spi/ForeignCallDescriptor;Lorg/graalvm/compiler/word/Word;)Lorg/graalvm/compiler/word/Word;
flags: (0x0109) ACC_PUBLIC, ACC_STATIC, ACC_NATIVE
RuntimeVisibleAnnotations:
org.graalvm.compiler.graph.Node$NodeIntrinsic(value = Lorg/graalvm/compiler/hotspot/nodes/StubForeignCallNode;, setStampFromReturnType = true)
RuntimeVisibleParameterAnnotations:
0:
org.graalvm.compiler.graph.Node$ConstantNodeParameter()
1:
MethodParameters:
Name Flags
exceptionHandlerForPc
thread
}
SourceFile: "ExceptionHandlerStub.java"
InnerClasses:
public abstract InjectedParameter = org.graalvm.compiler.api.replacements.Fold$InjectedParameter of org.graalvm.compiler.api.replacements.Fold
public abstract ConstantParameter = org.graalvm.compiler.api.replacements.Snippet$ConstantParameter of org.graalvm.compiler.api.replacements.Snippet
public abstract ConstantNodeParameter = org.graalvm.compiler.graph.Node$ConstantNodeParameter of org.graalvm.compiler.graph.Node
public abstract NodeIntrinsic = org.graalvm.compiler.graph.Node$NodeIntrinsic of org.graalvm.compiler.graph.Node