final class com.oracle.truffle.polyglot.PolyglotExceptionImpl extends org.graalvm.polyglot.impl.AbstractPolyglotImpl$AbstractExceptionImpl
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.polyglot.PolyglotExceptionImpl
super_class: org.graalvm.polyglot.impl.AbstractPolyglotImpl$AbstractExceptionImpl
{
private static final java.lang.String CAUSE_CAPTION;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "Caused by host exception: "
private static final boolean TRACE_STACK_TRACE_WALKING;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private org.graalvm.polyglot.PolyglotException impl;
descriptor: Lorg/graalvm/polyglot/PolyglotException;
flags: (0x0002) ACC_PRIVATE
final com.oracle.truffle.polyglot.PolyglotImpl polyglot;
descriptor: Lcom/oracle/truffle/polyglot/PolyglotImpl;
flags: (0x0010) ACC_FINAL
final com.oracle.truffle.polyglot.PolyglotEngineImpl engine;
descriptor: Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
flags: (0x0010) ACC_FINAL
final com.oracle.truffle.polyglot.PolyglotContextImpl context;
descriptor: Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
flags: (0x0010) ACC_FINAL
final java.lang.Throwable exception;
descriptor: Ljava/lang/Throwable;
flags: (0x0010) ACC_FINAL
final boolean showInternalStackFrames;
descriptor: Z
flags: (0x0010) ACC_FINAL
private final java.util.List<com.oracle.truffle.api.TruffleStackTraceElement> guestFrames;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lcom/oracle/truffle/api/TruffleStackTraceElement;>;
private java.lang.StackTraceElement[] javaStackTrace;
descriptor: [Ljava/lang/StackTraceElement;
flags: (0x0002) ACC_PRIVATE
private java.util.List<org.graalvm.polyglot.PolyglotException$StackFrame> materializedFrames;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lorg/graalvm/polyglot/PolyglotException$StackFrame;>;
private final org.graalvm.polyglot.SourceSection sourceLocation;
descriptor: Lorg/graalvm/polyglot/SourceSection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean internal;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean cancelled;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean exit;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean incompleteSource;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean syntaxError;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean resourceExhausted;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean interrupted;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int exitStatus;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.graalvm.polyglot.Value guestObject;
descriptor: Lorg/graalvm/polyglot/Value;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String message;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(com.oracle.truffle.polyglot.PolyglotEngineImpl, java.lang.Throwable);
descriptor: (Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;Ljava/lang/Throwable;)V
flags: (0x0000)
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.impl:Lcom/oracle/truffle/polyglot/PolyglotImpl;
aload 1
aconst_null
aload 2
iconst_0
iconst_0
invokespecial com.oracle.truffle.polyglot.PolyglotExceptionImpl.<init>:(Lcom/oracle/truffle/polyglot/PolyglotImpl;Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;Ljava/lang/Throwable;ZZ)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
0 2 1 engine Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
0 2 2 original Ljava/lang/Throwable;
MethodParameters:
Name Flags
engine
original
void <init>(com.oracle.truffle.polyglot.PolyglotImpl, java.lang.Throwable);
descriptor: (Lcom/oracle/truffle/polyglot/PolyglotImpl;Ljava/lang/Throwable;)V
flags: (0x0000)
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aconst_null
aconst_null
aload 2
iconst_1
iconst_0
invokespecial com.oracle.truffle.polyglot.PolyglotExceptionImpl.<init>:(Lcom/oracle/truffle/polyglot/PolyglotImpl;Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;Ljava/lang/Throwable;ZZ)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
0 2 1 polyglot Lcom/oracle/truffle/polyglot/PolyglotImpl;
0 2 2 original Ljava/lang/Throwable;
MethodParameters:
Name Flags
polyglot
original
void <init>(com.oracle.truffle.polyglot.PolyglotImpl, com.oracle.truffle.polyglot.PolyglotEngineImpl, com.oracle.truffle.polyglot.PolyglotLanguageContext, java.lang.Throwable, boolean, boolean);
descriptor: (Lcom/oracle/truffle/polyglot/PolyglotImpl;Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;Ljava/lang/Throwable;ZZ)V
flags: (0x0000)
Code:
stack=4, locals=11, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
aload 1
invokespecial org.graalvm.polyglot.impl.AbstractPolyglotImpl$AbstractExceptionImpl.<init>:(Lorg/graalvm/polyglot/impl/AbstractPolyglotImpl;)V
1: aload 0
aload 1
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.polyglot:Lcom/oracle/truffle/polyglot/PolyglotImpl;
2: aload 0
aload 2
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
3: aload 0
aload 3
ifnull 4
aload 3
getfield com.oracle.truffle.polyglot.PolyglotLanguageContext.context:Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
goto 5
StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotImpl com.oracle.truffle.polyglot.PolyglotEngineImpl com.oracle.truffle.polyglot.PolyglotLanguageContext java.lang.Throwable int int
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl
4: aconst_null
StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotImpl com.oracle.truffle.polyglot.PolyglotEngineImpl com.oracle.truffle.polyglot.PolyglotLanguageContext java.lang.Throwable int int
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotContextImpl
5: putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.context:Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
6: aload 0
aload 4
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
7: aload 0
aload 4
invokestatic com.oracle.truffle.api.TruffleStackTrace.getStackTrace:(Ljava/lang/Throwable;)Ljava/util/List;
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.guestFrames:Ljava/util/List;
8: aload 0
aload 2
ifnonnull 9
iconst_0
goto 10
StackMap locals:
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl
9: aload 2
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.engineOptionValues:Lcom/oracle/truffle/polyglot/OptionValuesImpl;
getstatic com.oracle.truffle.polyglot.PolyglotEngineOptions.ShowInternalStackFrames:Lorg/graalvm/options/OptionKey;
invokevirtual com.oracle.truffle.polyglot.OptionValuesImpl.get:(Lorg/graalvm/options/OptionKey;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotImpl com.oracle.truffle.polyglot.PolyglotEngineImpl com.oracle.truffle.polyglot.PolyglotLanguageContext java.lang.Throwable int int
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl int
10: putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.showInternalStackFrames:Z
11: aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokestatic com.oracle.truffle.polyglot.PolyglotExceptionImpl.isResourceLimit:(Ljava/lang/Throwable;)Z
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.resourceExhausted:Z
12: iload 5
ifeq 48
invokestatic com.oracle.truffle.api.interop.InteropLibrary.getUncached:()Lcom/oracle/truffle/api/interop/InteropLibrary;
dup
astore 7
start local 7 13: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isException:(Ljava/lang/Object;)Z
ifeq 48
14: aload 7
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.getExceptionType:(Ljava/lang/Object;)Lcom/oracle/truffle/api/interop/ExceptionType;
astore 8
start local 8 15: aload 0
iconst_0
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.internal:Z
16: aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokestatic com.oracle.truffle.polyglot.PolyglotExceptionImpl.isLegacyTruffleExceptionCancelled:(Ljava/lang/Throwable;)Z
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.cancelled:Z
17: aload 0
aload 8
getstatic com.oracle.truffle.api.interop.ExceptionType.PARSE_ERROR:Lcom/oracle/truffle/api/interop/ExceptionType;
if_acmpne 18
iconst_1
goto 19
StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotImpl com.oracle.truffle.polyglot.PolyglotEngineImpl com.oracle.truffle.polyglot.PolyglotLanguageContext java.lang.Throwable int int com.oracle.truffle.api.interop.InteropLibrary com.oracle.truffle.api.interop.ExceptionType
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl
18: iconst_0
StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotImpl com.oracle.truffle.polyglot.PolyglotEngineImpl com.oracle.truffle.polyglot.PolyglotLanguageContext java.lang.Throwable int int com.oracle.truffle.api.interop.InteropLibrary com.oracle.truffle.api.interop.ExceptionType
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl int
19: putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.syntaxError:Z
20: aload 0
aload 8
getstatic com.oracle.truffle.api.interop.ExceptionType.EXIT:Lcom/oracle/truffle/api/interop/ExceptionType;
if_acmpne 21
iconst_1
goto 22
StackMap locals:
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl
21: iconst_0
StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotImpl com.oracle.truffle.polyglot.PolyglotEngineImpl com.oracle.truffle.polyglot.PolyglotLanguageContext java.lang.Throwable int int com.oracle.truffle.api.interop.InteropLibrary com.oracle.truffle.api.interop.ExceptionType
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl int
22: putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exit:Z
23: aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exit:Z
ifeq 24
aload 7
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.getExceptionExitStatus:(Ljava/lang/Object;)I
goto 25
StackMap locals:
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl
24: iconst_0
StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotImpl com.oracle.truffle.polyglot.PolyglotEngineImpl com.oracle.truffle.polyglot.PolyglotLanguageContext java.lang.Throwable int int com.oracle.truffle.api.interop.InteropLibrary com.oracle.truffle.api.interop.ExceptionType
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl int
25: putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exitStatus:I
26: aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.syntaxError:Z
ifeq 27
aload 7
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isExceptionIncompleteSource:(Ljava/lang/Object;)Z
goto 28
StackMap locals:
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl
27: iconst_0
StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotImpl com.oracle.truffle.polyglot.PolyglotEngineImpl com.oracle.truffle.polyglot.PolyglotLanguageContext java.lang.Throwable int int com.oracle.truffle.api.interop.InteropLibrary com.oracle.truffle.api.interop.ExceptionType
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl int
28: putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.incompleteSource:Z
29: aload 0
aload 8
getstatic com.oracle.truffle.api.interop.ExceptionType.INTERRUPT:Lcom/oracle/truffle/api/interop/ExceptionType;
if_acmpne 30
iconst_1
goto 31
StackMap locals:
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl
30: iconst_0
StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotImpl com.oracle.truffle.polyglot.PolyglotEngineImpl com.oracle.truffle.polyglot.PolyglotLanguageContext java.lang.Throwable int int com.oracle.truffle.api.interop.InteropLibrary com.oracle.truffle.api.interop.ExceptionType
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl int
31: putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.interrupted:Z
32: aload 7
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.hasSourceLocation:(Ljava/lang/Object;)Z
ifeq 35
33: aload 0
aload 0
aload 7
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.getSourceLocation:(Ljava/lang/Object;)Lcom/oracle/truffle/api/source/SourceSection;
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.newSourceSection:(Lcom/oracle/truffle/api/source/SourceSection;)Lorg/graalvm/polyglot/SourceSection;
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.sourceLocation:Lorg/graalvm/polyglot/SourceSection;
34: goto 36
35: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.sourceLocation:Lorg/graalvm/polyglot/SourceSection;
36: StackMap locals:
StackMap stack:
iload 6
ifeq 44
aload 3
ifnull 44
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
instanceof com.oracle.truffle.polyglot.HostException
ifne 44
37: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
checkcast com.oracle.truffle.api.TruffleException
invokeinterface com.oracle.truffle.api.TruffleException.getExceptionObject:()Ljava/lang/Object;
dup
astore 9
start local 9 38: ifnull 44
39: aload 9
astore 10
start local 10 40: aload 10
instanceof org.graalvm.polyglot.proxy.Proxy
ifeq 42
41: aload 3
aconst_null
aload 10
invokevirtual com.oracle.truffle.polyglot.PolyglotLanguageContext.toGuestValue:(Lcom/oracle/truffle/api/nodes/Node;Ljava/lang/Object;)Ljava/lang/Object;
astore 10
42: StackMap locals: java.lang.Object java.lang.Object
StackMap stack:
aload 0
aload 3
aload 10
invokevirtual com.oracle.truffle.polyglot.PolyglotLanguageContext.asValue:(Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.guestObject:Lorg/graalvm/polyglot/Value;
end local 10 43: goto 79
end local 9 44: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.guestObject:Lorg/graalvm/polyglot/Value;
end local 8 45: goto 79
StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotImpl com.oracle.truffle.polyglot.PolyglotEngineImpl com.oracle.truffle.polyglot.PolyglotLanguageContext java.lang.Throwable int int com.oracle.truffle.api.interop.InteropLibrary
StackMap stack: com.oracle.truffle.api.interop.UnsupportedMessageException
46: astore 8
start local 8 47: aload 8
invokestatic com.oracle.truffle.api.CompilerDirectives.shouldNotReachHere:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
athrow
end local 8 end local 7 48: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
instanceof com.oracle.truffle.polyglot.PolyglotEngineImpl$CancelExecution
ifne 49
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokestatic com.oracle.truffle.polyglot.PolyglotExceptionImpl.isLegacyTruffleExceptionCancelled:(Ljava/lang/Throwable;)Z
ifne 49
iconst_0
goto 50
StackMap locals:
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl
49: iconst_1
StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotImpl com.oracle.truffle.polyglot.PolyglotEngineImpl com.oracle.truffle.polyglot.PolyglotLanguageContext java.lang.Throwable int int
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl int
50: putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.cancelled:Z
51: aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
ifnull 52
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
instanceof java.lang.InterruptedException
ifeq 52
iconst_1
goto 53
StackMap locals:
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl
52: iconst_0
StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotImpl com.oracle.truffle.polyglot.PolyglotEngineImpl com.oracle.truffle.polyglot.PolyglotLanguageContext java.lang.Throwable int int
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl int
53: putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.interrupted:Z
54: aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.interrupted:Z
ifne 55
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.cancelled:Z
ifne 55
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.resourceExhausted:Z
ifne 55
iconst_1
goto 56
StackMap locals:
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl
55: iconst_0
StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotImpl com.oracle.truffle.polyglot.PolyglotEngineImpl com.oracle.truffle.polyglot.PolyglotLanguageContext java.lang.Throwable int int
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl int
56: putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.internal:Z
57: aload 0
iconst_0
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.syntaxError:Z
58: aload 0
iconst_0
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.incompleteSource:Z
59: iload 5
ifeq 66
60: aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokestatic com.oracle.truffle.polyglot.PolyglotExceptionImpl.isLegacyTruffleExceptionExit:(Ljava/lang/Throwable;)Z
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exit:Z
61: aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exit:Z
ifeq 62
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokestatic com.oracle.truffle.polyglot.PolyglotExceptionImpl.getLegacyTruffleExceptionExitStatus:(Ljava/lang/Throwable;)I
goto 63
StackMap locals:
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl
62: iconst_0
StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotImpl com.oracle.truffle.polyglot.PolyglotEngineImpl com.oracle.truffle.polyglot.PolyglotLanguageContext java.lang.Throwable int int
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl int
63: putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exitStatus:I
64: aload 0
aload 3
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokestatic com.oracle.truffle.polyglot.PolyglotExceptionImpl.getLegacyTruffleExceptionGuestObject:(Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;Ljava/lang/Throwable;)Lorg/graalvm/polyglot/Value;
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.guestObject:Lorg/graalvm/polyglot/Value;
65: goto 69
66: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exit:Z
67: aload 0
iconst_0
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exitStatus:I
68: aload 0
aconst_null
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.guestObject:Lorg/graalvm/polyglot/Value;
69: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
instanceof com.oracle.truffle.polyglot.PolyglotEngineImpl$CancelExecution
ifeq 72
70: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
checkcast com.oracle.truffle.polyglot.PolyglotEngineImpl$CancelExecution
invokevirtual com.oracle.truffle.polyglot.PolyglotEngineImpl$CancelExecution.getSourceLocation:()Lcom/oracle/truffle/api/source/SourceSection;
astore 8
start local 8 71: goto 76
end local 8 StackMap locals:
StackMap stack:
72: iload 5
ifeq 75
73: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokestatic com.oracle.truffle.polyglot.PolyglotExceptionImpl.getLegacyTruffleExceptionSourceLocation:(Ljava/lang/Throwable;)Lcom/oracle/truffle/api/source/SourceSection;
astore 8
start local 8 74: goto 76
end local 8 75: StackMap locals:
StackMap stack:
aconst_null
astore 8
start local 8 76: StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotImpl com.oracle.truffle.polyglot.PolyglotEngineImpl com.oracle.truffle.polyglot.PolyglotLanguageContext java.lang.Throwable int int top com.oracle.truffle.api.source.SourceSection
StackMap stack:
aload 0
aload 8
ifnull 77
aload 0
aload 8
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.newSourceSection:(Lcom/oracle/truffle/api/source/SourceSection;)Lorg/graalvm/polyglot/SourceSection;
goto 78
StackMap locals:
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl
77: aconst_null
StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotImpl com.oracle.truffle.polyglot.PolyglotEngineImpl com.oracle.truffle.polyglot.PolyglotLanguageContext java.lang.Throwable int int top com.oracle.truffle.api.source.SourceSection
StackMap stack: com.oracle.truffle.polyglot.PolyglotExceptionImpl org.graalvm.polyglot.SourceSection
78: putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.sourceLocation:Lorg/graalvm/polyglot/SourceSection;
end local 8 79: StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotImpl com.oracle.truffle.polyglot.PolyglotEngineImpl com.oracle.truffle.polyglot.PolyglotLanguageContext java.lang.Throwable int int
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.isHostException:()Z
ifeq 82
80: aload 0
aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.asHostException:()Ljava/lang/Throwable;
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.message:Ljava/lang/String;
81: goto 86
82: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.internal:Z
ifeq 85
83: aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokevirtual java.lang.Throwable.toString:()Ljava/lang/String;
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.message:Ljava/lang/String;
84: goto 86
85: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.message:Ljava/lang/String;
86: StackMap locals:
StackMap stack:
getstatic com.oracle.truffle.polyglot.EngineAccessor.LANGUAGE:Lcom/oracle/truffle/api/impl/Accessor$LanguageSupport;
aload 4
invokevirtual com.oracle.truffle.api.impl.Accessor$LanguageSupport.materializeHostFrames:(Ljava/lang/Throwable;)V
87: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 88 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
0 88 1 polyglot Lcom/oracle/truffle/polyglot/PolyglotImpl;
0 88 2 engine Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
0 88 3 languageContext Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
0 88 4 original Ljava/lang/Throwable;
0 88 5 allowInterop Z
0 88 6 entered Z
13 48 7 interop Lcom/oracle/truffle/api/interop/InteropLibrary;
15 45 8 exceptionType Lcom/oracle/truffle/api/interop/ExceptionType;
38 44 9 exceptionObject Ljava/lang/Object;
40 43 10 receiver Ljava/lang/Object;
47 48 8 ume Lcom/oracle/truffle/api/interop/UnsupportedMessageException;
71 72 8 location Lcom/oracle/truffle/api/source/SourceSection;
74 75 8 location Lcom/oracle/truffle/api/source/SourceSection;
76 79 8 location Lcom/oracle/truffle/api/source/SourceSection;
Exception table:
from to target type
14 45 46 Class com.oracle.truffle.api.interop.UnsupportedMessageException
MethodParameters:
Name Flags
polyglot
engine
languageContext
original
allowInterop
entered
private static boolean isResourceLimit(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
instanceof com.oracle.truffle.polyglot.PolyglotEngineImpl$CancelExecution
ifeq 2
1: aload 0
checkcast com.oracle.truffle.polyglot.PolyglotEngineImpl$CancelExecution
invokevirtual com.oracle.truffle.polyglot.PolyglotEngineImpl$CancelExecution.isResourceLimit:()Z
ireturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof com.oracle.truffle.polyglot.HostException
ifeq 5
3: aload 0
checkcast com.oracle.truffle.polyglot.HostException
invokevirtual com.oracle.truffle.polyglot.HostException.getOriginal:()Ljava/lang/Throwable;
astore 1
start local 1 4: goto 6
end local 1 5: StackMap locals:
StackMap stack:
aload 0
astore 1
start local 1 6: StackMap locals: java.lang.Throwable
StackMap stack:
aload 1
instanceof java.lang.StackOverflowError
ifne 7
aload 1
instanceof java.lang.OutOfMemoryError
ifne 7
iconst_0
ireturn
StackMap locals:
StackMap stack:
7: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 e Ljava/lang/Throwable;
4 5 1 toCheck Ljava/lang/Throwable;
6 8 1 toCheck Ljava/lang/Throwable;
MethodParameters:
Name Flags
e
private static boolean isLegacyTruffleExceptionCancelled(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof com.oracle.truffle.api.TruffleException
ifeq 2
1: aload 0
checkcast com.oracle.truffle.api.TruffleException
invokeinterface com.oracle.truffle.api.TruffleException.isCancelled:()Z
ireturn
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 e Ljava/lang/Throwable;
MethodParameters:
Name Flags
e
private static boolean isLegacyTruffleExceptionExit(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof com.oracle.truffle.api.TruffleException
ifeq 2
1: aload 0
checkcast com.oracle.truffle.api.TruffleException
invokeinterface com.oracle.truffle.api.TruffleException.isExit:()Z
ireturn
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 e Ljava/lang/Throwable;
MethodParameters:
Name Flags
e
private static int getLegacyTruffleExceptionExitStatus(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof com.oracle.truffle.api.TruffleException
ifeq 2
1: aload 0
checkcast com.oracle.truffle.api.TruffleException
invokeinterface com.oracle.truffle.api.TruffleException.getExitStatus:()I
ireturn
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 e Ljava/lang/Throwable;
MethodParameters:
Name Flags
e
private static com.oracle.truffle.api.source.SourceSection getLegacyTruffleExceptionSourceLocation(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Lcom/oracle/truffle/api/source/SourceSection;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof com.oracle.truffle.api.TruffleException
ifeq 2
1: aload 0
checkcast com.oracle.truffle.api.TruffleException
invokeinterface com.oracle.truffle.api.TruffleException.getSourceLocation:()Lcom/oracle/truffle/api/source/SourceSection;
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 e Ljava/lang/Throwable;
MethodParameters:
Name Flags
e
private static org.graalvm.polyglot.Value getLegacyTruffleExceptionGuestObject(com.oracle.truffle.polyglot.PolyglotLanguageContext, java.lang.Throwable);
descriptor: (Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;Ljava/lang/Throwable;)Lorg/graalvm/polyglot/Value;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof com.oracle.truffle.api.TruffleException
ifeq 6
aload 0
ifnull 6
1: aload 1
checkcast com.oracle.truffle.api.TruffleException
invokeinterface com.oracle.truffle.api.TruffleException.getExceptionObject:()Ljava/lang/Object;
astore 2
start local 2 2: aload 2
ifnull 6
3: aload 2
instanceof org.graalvm.polyglot.proxy.Proxy
ifeq 5
4: aload 0
aconst_null
aload 2
invokevirtual com.oracle.truffle.polyglot.PolyglotLanguageContext.toGuestValue:(Lcom/oracle/truffle/api/nodes/Node;Ljava/lang/Object;)Ljava/lang/Object;
astore 2
5: StackMap locals: java.lang.Object
StackMap stack:
aload 0
aload 2
invokevirtual com.oracle.truffle.polyglot.PolyglotLanguageContext.asValue:(Ljava/lang/Object;)Lorg/graalvm/polyglot/Value;
areturn
end local 2 6: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 languageContext Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
0 7 1 e Ljava/lang/Throwable;
2 6 2 exceptionObject Ljava/lang/Object;
MethodParameters:
Name Flags
languageContext
e
private org.graalvm.polyglot.SourceSection newSourceSection(com.oracle.truffle.api.source.SourceSection);
descriptor: (Lcom/oracle/truffle/api/source/SourceSection;)Lorg/graalvm/polyglot/SourceSection;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.oracle.truffle.api.source.SourceSection.getSource:()Lcom/oracle/truffle/api/source/Source;
astore 2
start local 2 1: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.polyglot:Lcom/oracle/truffle/polyglot/PolyglotImpl;
invokevirtual com.oracle.truffle.polyglot.PolyglotImpl.getAPIAccess:()Lorg/graalvm/polyglot/impl/AbstractPolyglotImpl$APIAccess;
aload 2
invokevirtual org.graalvm.polyglot.impl.AbstractPolyglotImpl$APIAccess.newSource:(Ljava/lang/Object;)Lorg/graalvm/polyglot/Source;
astore 3
start local 3 2: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.polyglot:Lcom/oracle/truffle/polyglot/PolyglotImpl;
invokevirtual com.oracle.truffle.polyglot.PolyglotImpl.getAPIAccess:()Lorg/graalvm/polyglot/impl/AbstractPolyglotImpl$APIAccess;
aload 3
aload 1
invokevirtual org.graalvm.polyglot.impl.AbstractPolyglotImpl$APIAccess.newSourceSection:(Lorg/graalvm/polyglot/Source;Ljava/lang/Object;)Lorg/graalvm/polyglot/SourceSection;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
0 3 1 section Lcom/oracle/truffle/api/source/SourceSection;
1 3 2 truffleSource Lcom/oracle/truffle/api/source/Source;
2 3 3 source Lorg/graalvm/polyglot/Source;
MethodParameters:
Name Flags
section
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof com.oracle.truffle.polyglot.PolyglotExceptionImpl
ifeq 3
1: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
aload 1
checkcast com.oracle.truffle.polyglot.PolyglotExceptionImpl
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
if_acmpne 2
iconst_1
ireturn
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
0 4 1 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokevirtual java.lang.Object.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
public org.graalvm.polyglot.SourceSection getSourceLocation();
descriptor: ()Lorg/graalvm/polyglot/SourceSection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.sourceLocation:Lorg/graalvm/polyglot/SourceSection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
public void onCreate(org.graalvm.polyglot.PolyglotException);
descriptor: (Lorg/graalvm/polyglot/PolyglotException;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.impl:Lorg/graalvm/polyglot/PolyglotException;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
0 2 1 instance Lorg/graalvm/polyglot/PolyglotException;
MethodParameters:
Name Flags
instance
public boolean isResourceExhausted();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.resourceExhausted:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
public boolean isInterrupted();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.interrupted:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
public boolean isHostException();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
instanceof com.oracle.truffle.polyglot.HostException
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
public java.lang.Throwable asHostException();
descriptor: ()Ljava/lang/Throwable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
instanceof com.oracle.truffle.polyglot.HostException
ifne 6
1: ldc "Unsupported operation %s.%s. You can ensure that the operation is supported using %s.%s."
iconst_4
anewarray java.lang.Object
dup
iconst_0
2: ldc Lorg/graalvm/polyglot/PolyglotException;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
aastore
dup
iconst_1
ldc "asHostException()"
aastore
dup
iconst_2
3: ldc Lorg/graalvm/polyglot/PolyglotException;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
aastore
dup
iconst_3
ldc "isHostException()"
aastore
4: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
5: invokestatic com.oracle.truffle.polyglot.PolyglotEngineException.unsupported:(Ljava/lang/String;)Lcom/oracle/truffle/polyglot/PolyglotEngineException;
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
checkcast com.oracle.truffle.polyglot.HostException
invokevirtual com.oracle.truffle.polyglot.HostException.getOriginal:()Ljava/lang/Throwable;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
public void printStackTrace(java.io.PrintWriter);
descriptor: (Ljava/io/PrintWriter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new com.oracle.truffle.polyglot.PolyglotExceptionImpl$WrappedPrintWriter
dup
aload 1
invokespecial com.oracle.truffle.polyglot.PolyglotExceptionImpl$WrappedPrintWriter.<init>:(Ljava/io/PrintWriter;)V
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.printStackTrace:(Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl$PrintStreamOrWriter;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
0 2 1 s Ljava/io/PrintWriter;
MethodParameters:
Name Flags
s
public void printStackTrace(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new com.oracle.truffle.polyglot.PolyglotExceptionImpl$WrappedPrintStream
dup
aload 1
invokespecial com.oracle.truffle.polyglot.PolyglotExceptionImpl$WrappedPrintStream.<init>:(Ljava/io/PrintStream;)V
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.printStackTrace:(Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl$PrintStreamOrWriter;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
0 2 1 s Ljava/io/PrintStream;
MethodParameters:
Name Flags
s
private void printStackTrace(com.oracle.truffle.polyglot.PolyglotExceptionImpl$PrintStreamOrWriter);
descriptor: (Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl$PrintStreamOrWriter;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl$PrintStreamOrWriter.lock:()Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.isInternalError:()Z
ifeq 7
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.guestFrames:Ljava/util/List;
ifnull 2
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.guestFrames:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 7
2: StackMap locals: java.lang.Object
StackMap stack:
aload 1
new java.lang.StringBuilder
dup
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.impl:Lorg/graalvm/polyglot/PolyglotException;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl$PrintStreamOrWriter.print:(Ljava/lang/Object;)V
3: aload 1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl$PrintStreamOrWriter.printStackTrace:(Ljava/lang/Throwable;)V
4: aload 1
ldc "Internal GraalVM error, please report at https://github.com/oracle/graal/issues/."
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl$PrintStreamOrWriter.println:(Ljava/lang/Object;)V
5: aload 2
monitorexit
6: return
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.isInternalError:()Z
ifne 8
aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.getMessage:()Ljava/lang/String;
ifnull 8
aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.getMessage:()Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifeq 10
8: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.impl:Lorg/graalvm/polyglot/PolyglotException;
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl$PrintStreamOrWriter.println:(Ljava/lang/Object;)V
9: goto 11
10: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.getMessage:()Ljava/lang/String;
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl$PrintStreamOrWriter.println:(Ljava/lang/Object;)V
11: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.materialize:()V
12: iconst_0
istore 3
start local 3 13: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.getPolyglotStackTrace:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 5
goto 17
StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotExceptionImpl$PrintStreamOrWriter java.lang.Object int top java.util.Iterator
StackMap stack:
14: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.PolyglotException$StackFrame
astore 4
start local 4 15: aload 4
invokevirtual org.graalvm.polyglot.PolyglotException$StackFrame.isHostFrame:()Z
ifne 17
16: iload 3
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.polyglot:Lcom/oracle/truffle/polyglot/PolyglotImpl;
invokevirtual com.oracle.truffle.polyglot.PolyglotImpl.getAPIAccess:()Lorg/graalvm/polyglot/impl/AbstractPolyglotImpl$APIAccess;
aload 4
invokevirtual org.graalvm.polyglot.impl.AbstractPolyglotImpl$APIAccess.getImpl:(Lorg/graalvm/polyglot/PolyglotException$StackFrame;)Lorg/graalvm/polyglot/impl/AbstractPolyglotImpl$AbstractStackFrameImpl;
invokevirtual org.graalvm.polyglot.impl.AbstractPolyglotImpl$AbstractStackFrameImpl.getLanguage:()Lorg/graalvm/polyglot/Language;
invokevirtual org.graalvm.polyglot.Language.getId:()Ljava/lang/String;
invokevirtual java.lang.String.length:()I
invokestatic java.lang.Math.max:(II)I
istore 3
end local 4 17: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
18: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.getPolyglotStackTrace:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 5
goto 21
StackMap locals:
StackMap stack:
19: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.PolyglotException$StackFrame
astore 4
start local 4 20: aload 1
new java.lang.StringBuilder
dup
ldc "\tat "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.polyglot:Lcom/oracle/truffle/polyglot/PolyglotImpl;
invokevirtual com.oracle.truffle.polyglot.PolyglotImpl.getAPIAccess:()Lorg/graalvm/polyglot/impl/AbstractPolyglotImpl$APIAccess;
aload 4
invokevirtual org.graalvm.polyglot.impl.AbstractPolyglotImpl$APIAccess.getImpl:(Lorg/graalvm/polyglot/PolyglotException$StackFrame;)Lorg/graalvm/polyglot/impl/AbstractPolyglotImpl$AbstractStackFrameImpl;
iload 3
invokevirtual org.graalvm.polyglot.impl.AbstractPolyglotImpl$AbstractStackFrameImpl.toStringImpl:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl$PrintStreamOrWriter.println:(Ljava/lang/Object;)V
end local 4 21: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 19
22: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.isHostException:()Z
ifeq 24
23: aload 1
new java.lang.StringBuilder
dup
ldc "Caused by host exception: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.asHostException:()Ljava/lang/Throwable;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl$PrintStreamOrWriter.println:(Ljava/lang/Object;)V
24: StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotExceptionImpl$PrintStreamOrWriter java.lang.Object int
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.isInternalError:()Z
ifeq 27
25: aload 1
ldc "Original Internal Error: "
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl$PrintStreamOrWriter.println:(Ljava/lang/Object;)V
26: aload 1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl$PrintStreamOrWriter.printStackTrace:(Ljava/lang/Throwable;)V
end local 3 27: StackMap locals:
StackMap stack:
aload 2
monitorexit
28: goto 31
StackMap locals:
StackMap stack: java.lang.Throwable
29: aload 2
monitorexit
30: athrow
31: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
0 32 1 s Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl$PrintStreamOrWriter;
13 27 3 languageIdLength I
15 17 4 traceElement Lorg/graalvm/polyglot/PolyglotException$StackFrame;
20 21 4 traceElement Lorg/graalvm/polyglot/PolyglotException$StackFrame;
Exception table:
from to target type
1 6 29 any
7 28 29 any
29 30 29 any
MethodParameters:
Name Flags
s
public java.lang.String getMessage();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.message:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
public java.lang.StackTraceElement[] getJavaStackTrace();
descriptor: ()[Ljava/lang/StackTraceElement;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.javaStackTrace:[Ljava/lang/StackTraceElement;
ifnonnull 8
1: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.materialize:()V
2: aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.materializedFrames:Ljava/util/List;
invokeinterface java.util.List.size:()I
anewarray java.lang.StackTraceElement
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.javaStackTrace:[Ljava/lang/StackTraceElement;
3: iconst_0
istore 1
start local 1 4: goto 7
5: StackMap locals: int
StackMap stack:
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.javaStackTrace:[Ljava/lang/StackTraceElement;
iload 1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.materializedFrames:Ljava/util/List;
iload 1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.graalvm.polyglot.PolyglotException$StackFrame
invokevirtual org.graalvm.polyglot.PolyglotException$StackFrame.toHostFrame:()Ljava/lang/StackTraceElement;
aastore
6: iinc 1 1
StackMap locals:
StackMap stack:
7: iload 1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.javaStackTrace:[Ljava/lang/StackTraceElement;
arraylength
if_icmplt 5
end local 1 8: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.javaStackTrace:[Ljava/lang/StackTraceElement;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
4 8 1 i I
private void materialize();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.materializedFrames:Ljava/util/List;
ifnonnull 7
1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 2: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.getPolyglotStackTrace:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl java.util.List top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.polyglot.PolyglotException$StackFrame
astore 2
start local 2 4: aload 1
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: aload 0
aload 1
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
putfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.materializedFrames:Ljava/util/List;
end local 1 7: StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
2 7 1 frames Ljava/util/List<Lorg/graalvm/polyglot/PolyglotException$StackFrame;>;
4 5 2 frame Lorg/graalvm/polyglot/PolyglotException$StackFrame;
public java.lang.StackTraceElement[] getStackTrace();
descriptor: ()[Ljava/lang/StackTraceElement;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.getJavaStackTrace:()[Ljava/lang/StackTraceElement;
invokevirtual java.lang.StackTraceElement[].clone:()Ljava/lang/Object;
checkcast java.lang.StackTraceElement[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
public boolean isInternalError();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.internal:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
public java.lang.Iterable<org.graalvm.polyglot.PolyglotException$StackFrame> getPolyglotStackTrace();
descriptor: ()Ljava/lang/Iterable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.materializedFrames:Ljava/util/List;
ifnull 2
1: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.materializedFrames:Ljava/util/List;
areturn
2: StackMap locals:
StackMap stack:
new com.oracle.truffle.polyglot.PolyglotExceptionImpl$1
dup
aload 0
invokespecial com.oracle.truffle.polyglot.PolyglotExceptionImpl$1.<init>:(Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
Signature: ()Ljava/lang/Iterable<Lorg/graalvm/polyglot/PolyglotException$StackFrame;>;
public boolean isCancelled();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.cancelled:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
public boolean isExit();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exit:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
public boolean isIncompleteSource();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.incompleteSource:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
public int getExitStatus();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exitStatus:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
public boolean isSyntaxError();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.syntaxError:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
public org.graalvm.polyglot.Value getGuestObject();
descriptor: ()Lorg/graalvm/polyglot/Value;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.guestObject:Lorg/graalvm/polyglot/Value;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
java.lang.Object getFileSystemContext(com.oracle.truffle.polyglot.PolyglotLanguage);
descriptor: (Lcom/oracle/truffle/polyglot/PolyglotLanguage;)Ljava/lang/Object;
flags: (0x0000)
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.context:Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.context:Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
dup
astore 2
monitorenter
3: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.context:Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
aload 1
invokevirtual com.oracle.truffle.polyglot.PolyglotContextImpl.getContext:(Lcom/oracle/truffle/polyglot/PolyglotLanguage;)Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
astore 3
start local 3 4: aload 3
invokevirtual com.oracle.truffle.polyglot.PolyglotLanguageContext.isCreated:()Z
ifne 7
5: aload 2
monitorexit
6: aconst_null
areturn
7: StackMap locals: com.oracle.truffle.polyglot.PolyglotContextImpl com.oracle.truffle.polyglot.PolyglotLanguageContext
StackMap stack:
aload 3
invokevirtual com.oracle.truffle.polyglot.PolyglotLanguageContext.getInternalFileSystemContext:()Ljava/lang/Object;
aload 2
monitorexit
8: areturn
end local 3 9: StackMap locals: com.oracle.truffle.polyglot.PolyglotExceptionImpl com.oracle.truffle.polyglot.PolyglotLanguage com.oracle.truffle.polyglot.PolyglotContextImpl
StackMap stack: java.lang.Throwable
aload 2
monitorexit
10: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
0 11 1 language Lcom/oracle/truffle/polyglot/PolyglotLanguage;
4 9 3 languageContext Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
Exception table:
from to target type
3 6 9 any
7 8 9 any
9 10 9 any
MethodParameters:
Name Flags
language
static java.util.Iterator<org.graalvm.polyglot.PolyglotException$StackFrame> createStackFrameIterator(com.oracle.truffle.polyglot.PolyglotExceptionImpl);
descriptor: (Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;)Ljava/util/Iterator;
flags: (0x0008) ACC_STATIC
Code:
stack=10, locals=6, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.polyglot:Lcom/oracle/truffle/polyglot/PolyglotImpl;
invokevirtual com.oracle.truffle.polyglot.PolyglotImpl.getAPIAccess:()Lorg/graalvm/polyglot/impl/AbstractPolyglotImpl$APIAccess;
astore 1
start local 1 1: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokestatic com.oracle.truffle.polyglot.PolyglotExceptionImpl.findCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
astore 2
start local 2 2: getstatic com.oracle.truffle.polyglot.EngineAccessor.LANGUAGE:Lcom/oracle/truffle/api/impl/Accessor$LanguageSupport;
aload 2
invokevirtual com.oracle.truffle.api.impl.Accessor$LanguageSupport.isTruffleStackTrace:(Ljava/lang/Throwable;)Z
ifeq 5
3: getstatic com.oracle.truffle.polyglot.EngineAccessor.LANGUAGE:Lcom/oracle/truffle/api/impl/Accessor$LanguageSupport;
aload 2
invokevirtual com.oracle.truffle.api.impl.Accessor$LanguageSupport.getInternalStackTraceElements:(Ljava/lang/Throwable;)[Ljava/lang/StackTraceElement;
astore 3
start local 3 4: goto 9
end local 3 StackMap locals: org.graalvm.polyglot.impl.AbstractPolyglotImpl$APIAccess java.lang.Throwable
StackMap stack:
5: aload 2
invokevirtual java.lang.Throwable.getStackTrace:()[Ljava/lang/StackTraceElement;
ifnull 6
aload 2
invokevirtual java.lang.Throwable.getStackTrace:()[Ljava/lang/StackTraceElement;
arraylength
ifne 8
6: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.exception:Ljava/lang/Throwable;
invokevirtual java.lang.Throwable.getStackTrace:()[Ljava/lang/StackTraceElement;
astore 3
start local 3 7: goto 9
end local 3 8: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.Throwable.getStackTrace:()[Ljava/lang/StackTraceElement;
astore 3
start local 3 9: StackMap locals: java.lang.StackTraceElement[]
StackMap stack:
aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.guestFrames:Ljava/util/List;
ifnonnull 10
invokestatic java.util.Collections.emptyIterator:()Ljava/util/Iterator;
goto 11
StackMap locals:
StackMap stack:
10: aload 0
getfield com.oracle.truffle.polyglot.PolyglotExceptionImpl.guestFrames:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
StackMap locals:
StackMap stack: java.util.Iterator
11: astore 4
start local 4 12: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.isHostException:()Z
ifne 13
aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotExceptionImpl.isInternalError:()Z
ifne 13
iconst_0
goto 14
StackMap locals: java.util.Iterator
StackMap stack:
13: iconst_1
StackMap locals:
StackMap stack: int
14: istore 5
start local 5 15: new com.oracle.truffle.polyglot.PolyglotExceptionImpl$MergedHostGuestIterator
dup
aload 3
aload 4
iload 5
new com.oracle.truffle.polyglot.PolyglotExceptionImpl$2
dup
aload 1
aload 0
invokespecial com.oracle.truffle.polyglot.PolyglotExceptionImpl$2.<init>:(Lorg/graalvm/polyglot/impl/AbstractPolyglotImpl$APIAccess;Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;)V
16: new com.oracle.truffle.polyglot.PolyglotExceptionImpl$3
dup
aload 0
aload 1
invokespecial com.oracle.truffle.polyglot.PolyglotExceptionImpl$3.<init>:(Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;Lorg/graalvm/polyglot/impl/AbstractPolyglotImpl$APIAccess;)V
17: invokespecial com.oracle.truffle.polyglot.PolyglotExceptionImpl$MergedHostGuestIterator.<init>:([Ljava/lang/StackTraceElement;Ljava/util/Iterator;ZLjava/util/function/Function;Ljava/util/function/Function;)V
areturn
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 18 0 impl Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;
1 18 1 apiAccess Lorg/graalvm/polyglot/impl/AbstractPolyglotImpl$APIAccess;
2 18 2 cause Ljava/lang/Throwable;
4 5 3 hostStack [Ljava/lang/StackTraceElement;
7 8 3 hostStack [Ljava/lang/StackTraceElement;
9 18 3 hostStack [Ljava/lang/StackTraceElement;
12 18 4 guestFrames Ljava/util/Iterator<Lcom/oracle/truffle/api/TruffleStackTraceElement;>;
15 18 5 inHostLanguage Z
Signature: (Lcom/oracle/truffle/polyglot/PolyglotExceptionImpl;)Ljava/util/Iterator<Lorg/graalvm/polyglot/PolyglotException$StackFrame;>;
MethodParameters:
Name Flags
impl
private static java.lang.Throwable findCause(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/Throwable;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
astore 1
start local 1 1: aload 1
instanceof com.oracle.truffle.polyglot.HostException
ifeq 3
2: aload 1
checkcast com.oracle.truffle.polyglot.HostException
invokevirtual com.oracle.truffle.polyglot.HostException.getOriginal:()Ljava/lang/Throwable;
invokestatic com.oracle.truffle.polyglot.PolyglotExceptionImpl.findCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
areturn
3: StackMap locals: java.lang.Throwable
StackMap stack:
getstatic com.oracle.truffle.polyglot.EngineAccessor.EXCEPTION:Lcom/oracle/truffle/api/impl/Accessor$ExceptionSupport;
aload 1
invokevirtual com.oracle.truffle.api.impl.Accessor$ExceptionSupport.isException:(Ljava/lang/Object;)Z
ifeq 9
4: getstatic com.oracle.truffle.polyglot.EngineAccessor.EXCEPTION:Lcom/oracle/truffle/api/impl/Accessor$ExceptionSupport;
aload 1
invokevirtual com.oracle.truffle.api.impl.Accessor$ExceptionSupport.getLazyStackTrace:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
areturn
5: StackMap locals:
StackMap stack:
aload 1
instanceof com.oracle.truffle.polyglot.HostException
ifeq 8
6: aload 1
checkcast com.oracle.truffle.polyglot.HostException
invokevirtual com.oracle.truffle.polyglot.HostException.getOriginal:()Ljava/lang/Throwable;
astore 1
7: goto 9
8: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
astore 1
9: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
ifnull 10
aload 1
invokevirtual java.lang.Throwable.getStackTrace:()[Ljava/lang/StackTraceElement;
arraylength
ifeq 5
10: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 throwable Ljava/lang/Throwable;
1 11 1 cause Ljava/lang/Throwable;
MethodParameters:
Name Flags
throwable
}
SourceFile: "PolyglotExceptionImpl.java"
NestMembers:
com.oracle.truffle.polyglot.PolyglotExceptionImpl$1 com.oracle.truffle.polyglot.PolyglotExceptionImpl$2 com.oracle.truffle.polyglot.PolyglotExceptionImpl$3 com.oracle.truffle.polyglot.PolyglotExceptionImpl$MergedHostGuestIterator com.oracle.truffle.polyglot.PolyglotExceptionImpl$PrintStreamOrWriter com.oracle.truffle.polyglot.PolyglotExceptionImpl$WrappedPrintStream com.oracle.truffle.polyglot.PolyglotExceptionImpl$WrappedPrintWriter
InnerClasses:
public abstract ExceptionSupport = com.oracle.truffle.api.impl.Accessor$ExceptionSupport of com.oracle.truffle.api.impl.Accessor
public abstract LanguageSupport = com.oracle.truffle.api.impl.Accessor$LanguageSupport of com.oracle.truffle.api.impl.Accessor
final CancelExecution = com.oracle.truffle.polyglot.PolyglotEngineImpl$CancelExecution of com.oracle.truffle.polyglot.PolyglotEngineImpl
com.oracle.truffle.polyglot.PolyglotExceptionImpl$1
com.oracle.truffle.polyglot.PolyglotExceptionImpl$2
com.oracle.truffle.polyglot.PolyglotExceptionImpl$3
MergedHostGuestIterator = com.oracle.truffle.polyglot.PolyglotExceptionImpl$MergedHostGuestIterator of com.oracle.truffle.polyglot.PolyglotExceptionImpl
private abstract PrintStreamOrWriter = com.oracle.truffle.polyglot.PolyglotExceptionImpl$PrintStreamOrWriter of com.oracle.truffle.polyglot.PolyglotExceptionImpl
private WrappedPrintStream = com.oracle.truffle.polyglot.PolyglotExceptionImpl$WrappedPrintStream of com.oracle.truffle.polyglot.PolyglotExceptionImpl
private WrappedPrintWriter = com.oracle.truffle.polyglot.PolyglotExceptionImpl$WrappedPrintWriter of com.oracle.truffle.polyglot.PolyglotExceptionImpl
public final StackFrame = org.graalvm.polyglot.PolyglotException$StackFrame of org.graalvm.polyglot.PolyglotException
public abstract APIAccess = org.graalvm.polyglot.impl.AbstractPolyglotImpl$APIAccess of org.graalvm.polyglot.impl.AbstractPolyglotImpl
public abstract AbstractExceptionImpl = org.graalvm.polyglot.impl.AbstractPolyglotImpl$AbstractExceptionImpl of org.graalvm.polyglot.impl.AbstractPolyglotImpl
public abstract AbstractStackFrameImpl = org.graalvm.polyglot.impl.AbstractPolyglotImpl$AbstractStackFrameImpl of org.graalvm.polyglot.impl.AbstractPolyglotImpl