class com.oracle.truffle.polyglot.PolyglotInstrument extends org.graalvm.polyglot.impl.AbstractPolyglotImpl$AbstractInstrumentImpl implements com.oracle.truffle.polyglot.PolyglotImpl$VMObject
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.oracle.truffle.polyglot.PolyglotInstrument
super_class: org.graalvm.polyglot.impl.AbstractPolyglotImpl$AbstractInstrumentImpl
{
org.graalvm.polyglot.Instrument api;
descriptor: Lorg/graalvm/polyglot/Instrument;
flags: (0x0000)
com.oracle.truffle.api.InstrumentInfo info;
descriptor: Lcom/oracle/truffle/api/InstrumentInfo;
flags: (0x0000)
final com.oracle.truffle.polyglot.InstrumentCache cache;
descriptor: Lcom/oracle/truffle/polyglot/InstrumentCache;
flags: (0x0010) ACC_FINAL
final com.oracle.truffle.polyglot.PolyglotEngineImpl engine;
descriptor: Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
flags: (0x0010) ACC_FINAL
private final java.lang.Object instrumentLock;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile org.graalvm.options.OptionDescriptors engineOptions;
descriptor: Lorg/graalvm/options/OptionDescriptors;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile org.graalvm.options.OptionDescriptors contextOptions;
descriptor: Lorg/graalvm/options/OptionDescriptors;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile org.graalvm.options.OptionDescriptors allOptions;
descriptor: Lorg/graalvm/options/OptionDescriptors;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile com.oracle.truffle.polyglot.OptionValuesImpl optionValues;
descriptor: Lcom/oracle/truffle/polyglot/OptionValuesImpl;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile boolean initialized;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile boolean created;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
int requestedAsyncStackDepth;
descriptor: I
flags: (0x0000)
com.oracle.truffle.polyglot.PolyglotLocals$LocalLocation[] contextLocalLocations;
descriptor: [Lcom/oracle/truffle/polyglot/PolyglotLocals$LocalLocation;
flags: (0x0000)
com.oracle.truffle.polyglot.PolyglotLocals$LocalLocation[] contextThreadLocalLocations;
descriptor: [Lcom/oracle/truffle/polyglot/PolyglotLocals$LocalLocation;
flags: (0x0000)
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 Lcom/oracle/truffle/polyglot/PolyglotInstrument;
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 com.oracle.truffle.polyglot.PolyglotInstrument.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(com.oracle.truffle.polyglot.PolyglotEngineImpl, com.oracle.truffle.polyglot.InstrumentCache);
descriptor: (Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;Lcom/oracle/truffle/polyglot/InstrumentCache;)V
flags: (0x0000)
Code:
stack=3, 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;
invokespecial org.graalvm.polyglot.impl.AbstractPolyglotImpl$AbstractInstrumentImpl.<init>:(Lorg/graalvm/polyglot/impl/AbstractPolyglotImpl;)V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield com.oracle.truffle.polyglot.PolyglotInstrument.instrumentLock:Ljava/lang/Object;
2: aload 0
iconst_0
putfield com.oracle.truffle.polyglot.PolyglotInstrument.requestedAsyncStackDepth:I
3: aload 0
aload 1
putfield com.oracle.truffle.polyglot.PolyglotInstrument.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
4: aload 0
aload 2
putfield com.oracle.truffle.polyglot.PolyglotInstrument.cache:Lcom/oracle/truffle/polyglot/InstrumentCache;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/truffle/polyglot/PolyglotInstrument;
0 6 1 engine Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
0 6 2 cache Lcom/oracle/truffle/polyglot/InstrumentCache;
MethodParameters:
Name Flags
engine
cache
public org.graalvm.options.OptionDescriptors getOptions();
descriptor: ()Lorg/graalvm/options/OptionDescriptors;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
invokevirtual com.oracle.truffle.polyglot.PolyglotEngineImpl.checkState:()V
1: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotInstrument.getAllOptionsInternal:()Lorg/graalvm/options/OptionDescriptors;
2: areturn
3: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
start local 1 4: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
aload 1
invokestatic com.oracle.truffle.polyglot.PolyglotImpl.guestToHostException:(Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;Ljava/lang/Throwable;)Lorg/graalvm/polyglot/PolyglotException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/polyglot/PolyglotInstrument;
4 5 1 t Ljava/lang/Throwable;
Exception table:
from to target type
0 2 3 Class java.lang.Throwable
org.graalvm.options.OptionDescriptors getAllOptionsInternal();
descriptor: ()Lorg/graalvm/options/OptionDescriptors;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotInstrument.ensureInitialized:()V
1: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.allOptions:Lorg/graalvm/options/OptionDescriptors;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/polyglot/PolyglotInstrument;
org.graalvm.options.OptionDescriptors getEngineOptionsInternal();
descriptor: ()Lorg/graalvm/options/OptionDescriptors;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotInstrument.ensureInitialized:()V
1: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.engineOptions:Lorg/graalvm/options/OptionDescriptors;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/polyglot/PolyglotInstrument;
org.graalvm.options.OptionDescriptors getContextOptionsInternal();
descriptor: ()Lorg/graalvm/options/OptionDescriptors;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotInstrument.ensureInitialized:()V
1: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.contextOptions:Lorg/graalvm/options/OptionDescriptors;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/polyglot/PolyglotInstrument;
com.oracle.truffle.polyglot.OptionValuesImpl getEngineOptionValues();
descriptor: ()Lcom/oracle/truffle/polyglot/OptionValuesImpl;
flags: (0x0000)
Code:
stack=6, locals=2, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.optionValues:Lcom/oracle/truffle/polyglot/OptionValuesImpl;
ifnonnull 8
1: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.instrumentLock:Ljava/lang/Object;
dup
astore 1
monitorenter
2: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.optionValues:Lcom/oracle/truffle/polyglot/OptionValuesImpl;
ifnonnull 4
3: aload 0
new com.oracle.truffle.polyglot.OptionValuesImpl
dup
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotInstrument.getAllOptionsInternal:()Lorg/graalvm/options/OptionDescriptors;
iconst_0
invokespecial com.oracle.truffle.polyglot.OptionValuesImpl.<init>:(Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;Lorg/graalvm/options/OptionDescriptors;Z)V
putfield com.oracle.truffle.polyglot.PolyglotInstrument.optionValues:Lcom/oracle/truffle/polyglot/OptionValuesImpl;
4: StackMap locals: java.lang.Object
StackMap stack:
aload 1
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 1
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.optionValues:Lcom/oracle/truffle/polyglot/OptionValuesImpl;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/truffle/polyglot/PolyglotInstrument;
Exception table:
from to target type
2 5 6 any
6 7 6 any
com.oracle.truffle.polyglot.OptionValuesImpl getOptionValuesIfExists();
descriptor: ()Lcom/oracle/truffle/polyglot/OptionValuesImpl;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.optionValues:Lcom/oracle/truffle/polyglot/OptionValuesImpl;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotInstrument;
public com.oracle.truffle.polyglot.PolyglotEngineImpl getEngine();
descriptor: ()Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotInstrument;
void ensureInitialized();
descriptor: ()V
flags: (0x0000)
Code:
stack=7, locals=4, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.initialized:Z
ifne 19
1: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.instrumentLock:Ljava/lang/Object;
dup
astore 1
monitorenter
2: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.initialized:Z
ifne 15
3: getstatic com.oracle.truffle.polyglot.EngineAccessor.INSTRUMENT:Lcom/oracle/truffle/api/impl/Accessor$InstrumentSupport;
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.instrumentationHandler:Ljava/lang/Object;
aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.cache:Lcom/oracle/truffle/polyglot/InstrumentCache;
invokevirtual com.oracle.truffle.polyglot.InstrumentCache.getClassName:()Ljava/lang/String;
new com.oracle.truffle.polyglot.PolyglotInstrument$1
dup
aload 0
invokespecial com.oracle.truffle.polyglot.PolyglotInstrument$1.<init>:(Lcom/oracle/truffle/polyglot/PolyglotInstrument;)V
invokevirtual com.oracle.truffle.api.impl.Accessor$InstrumentSupport.initializeInstrument:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/String;Ljava/util/function/Supplier;)V
4: getstatic com.oracle.truffle.polyglot.EngineAccessor.INSTRUMENT:Lcom/oracle/truffle/api/impl/Accessor$InstrumentSupport;
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.instrumentationHandler:Ljava/lang/Object;
aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.cache:Lcom/oracle/truffle/polyglot/InstrumentCache;
invokevirtual com.oracle.truffle.polyglot.InstrumentCache.getId:()Ljava/lang/String;
invokevirtual com.oracle.truffle.api.impl.Accessor$InstrumentSupport.describeEngineOptions:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/String;)Lorg/graalvm/options/OptionDescriptors;
astore 2
start local 2 5: getstatic com.oracle.truffle.polyglot.EngineAccessor.INSTRUMENT:Lcom/oracle/truffle/api/impl/Accessor$InstrumentSupport;
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.instrumentationHandler:Ljava/lang/Object;
aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.cache:Lcom/oracle/truffle/polyglot/InstrumentCache;
invokevirtual com.oracle.truffle.polyglot.InstrumentCache.getId:()Ljava/lang/String;
invokevirtual com.oracle.truffle.api.impl.Accessor$InstrumentSupport.describeContextOptions:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/String;)Lorg/graalvm/options/OptionDescriptors;
astore 3
start local 3 6: getstatic com.oracle.truffle.polyglot.PolyglotInstrument.$assertionsDisabled:Z
ifne 7
aload 2
aload 3
invokestatic com.oracle.truffle.polyglot.PolyglotInstrument.verifyNoOverlap:(Lorg/graalvm/options/OptionDescriptors;Lorg/graalvm/options/OptionDescriptors;)Z
ifne 7
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
7: StackMap locals: java.lang.Object org.graalvm.options.OptionDescriptors org.graalvm.options.OptionDescriptors
StackMap stack:
aload 0
aload 2
putfield com.oracle.truffle.polyglot.PolyglotInstrument.engineOptions:Lorg/graalvm/options/OptionDescriptors;
8: aload 0
aload 3
putfield com.oracle.truffle.polyglot.PolyglotInstrument.contextOptions:Lorg/graalvm/options/OptionDescriptors;
9: aload 0
iconst_2
anewarray org.graalvm.options.OptionDescriptors
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 3
aastore
invokestatic org.graalvm.options.OptionDescriptors.createUnion:([Lorg/graalvm/options/OptionDescriptors;)Lorg/graalvm/options/OptionDescriptors;
putfield com.oracle.truffle.polyglot.PolyglotInstrument.allOptions:Lorg/graalvm/options/OptionDescriptors;
end local 3 end local 2 10: goto 13
StackMap locals: com.oracle.truffle.polyglot.PolyglotInstrument java.lang.Object
StackMap stack: java.lang.Exception
11: astore 2
start local 2 12: new java.lang.IllegalStateException
dup
ldc "Error initializing instrument '%s' using class '%s'. Message: %s."
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.cache:Lcom/oracle/truffle/polyglot/InstrumentCache;
invokevirtual com.oracle.truffle.polyglot.InstrumentCache.getId:()Ljava/lang/String;
aastore
dup
iconst_1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.cache:Lcom/oracle/truffle/polyglot/InstrumentCache;
invokevirtual com.oracle.truffle.polyglot.InstrumentCache.getClassName:()Ljava/lang/String;
aastore
dup
iconst_2
aload 2
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 2
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 13: StackMap locals:
StackMap stack:
getstatic com.oracle.truffle.polyglot.PolyglotInstrument.$assertionsDisabled:Z
ifne 14
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.contextLocalLocations:[Lcom/oracle/truffle/polyglot/PolyglotLocals$LocalLocation;
ifnonnull 14
new java.lang.AssertionError
dup
ldc "context local locations not initialized"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
14: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield com.oracle.truffle.polyglot.PolyglotInstrument.initialized:Z
15: StackMap locals:
StackMap stack:
aload 1
monitorexit
16: goto 19
StackMap locals:
StackMap stack: java.lang.Throwable
17: aload 1
monitorexit
18: athrow
19: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lcom/oracle/truffle/polyglot/PolyglotInstrument;
5 10 2 eOptions Lorg/graalvm/options/OptionDescriptors;
6 10 3 cOptions Lorg/graalvm/options/OptionDescriptors;
12 13 2 e Ljava/lang/Exception;
Exception table:
from to target type
3 10 11 Class java.lang.Exception
2 16 17 any
17 18 17 any
private static boolean verifyNoOverlap(org.graalvm.options.OptionDescriptors, org.graalvm.options.OptionDescriptors);
descriptor: (Lorg/graalvm/options/OptionDescriptors;Lorg/graalvm/options/OptionDescriptors;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.graalvm.options.OptionDescriptors.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.graalvm.options.OptionDescriptors org.graalvm.options.OptionDescriptors top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.options.OptionDescriptor
astore 2
start local 2 2: aload 1
aload 2
invokevirtual org.graalvm.options.OptionDescriptor.getName:()Ljava/lang/String;
invokeinterface org.graalvm.options.OptionDescriptors.get:(Ljava/lang/String;)Lorg/graalvm/options/OptionDescriptor;
ifnull 4
3: new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "Overlapping descriptor name "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual org.graalvm.options.OptionDescriptor.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " between context and engine options detected."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 engineOptions Lorg/graalvm/options/OptionDescriptors;
0 6 1 contextOptions Lorg/graalvm/options/OptionDescriptors;
2 4 2 engineDescriptor Lorg/graalvm/options/OptionDescriptor;
MethodParameters:
Name Flags
engineOptions
contextOptions
public boolean isInitialized();
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.PolyglotInstrument.initialized:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotInstrument;
public boolean isCreated();
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.PolyglotInstrument.created:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotInstrument;
void ensureCreated();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=7, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.created:Z
ifne 30
1: aconst_null
astore 1
start local 1 2: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.instrumentLock:Ljava/lang/Object;
dup
astore 2
monitorenter
3: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.created:Z
ifne 10
4: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.initialized:Z
ifne 6
5: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotInstrument.ensureInitialized:()V
6: StackMap locals: com.oracle.truffle.polyglot.PolyglotContextImpl[] java.lang.Object
StackMap stack:
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.contextLocalLocations:[Lcom/oracle/truffle/polyglot/PolyglotLocals$LocalLocation;
arraylength
ifle 8
7: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
invokevirtual com.oracle.truffle.polyglot.PolyglotEngineImpl.collectAliveContexts:()Ljava/util/List;
iconst_0
anewarray com.oracle.truffle.polyglot.PolyglotContextImpl
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast com.oracle.truffle.polyglot.PolyglotContextImpl[]
astore 1
8: StackMap locals:
StackMap stack:
getstatic com.oracle.truffle.polyglot.EngineAccessor.INSTRUMENT:Lcom/oracle/truffle/api/impl/Accessor$InstrumentSupport;
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.instrumentationHandler:Ljava/lang/Object;
aload 0
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.cache:Lcom/oracle/truffle/polyglot/InstrumentCache;
invokevirtual com.oracle.truffle.polyglot.InstrumentCache.services:()[Ljava/lang/String;
aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotInstrument.getEngineOptionValues:()Lcom/oracle/truffle/polyglot/OptionValuesImpl;
invokevirtual com.oracle.truffle.api.impl.Accessor$InstrumentSupport.createInstrument:(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/String;Lorg/graalvm/options/OptionValues;)V
9: aload 0
iconst_1
putfield com.oracle.truffle.polyglot.PolyglotInstrument.created:Z
10: StackMap locals:
StackMap stack:
aload 2
monitorexit
11: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
12: aload 2
monitorexit
13: athrow
14: StackMap locals:
StackMap stack:
aload 1
ifnull 30
15: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 29
StackMap locals: com.oracle.truffle.polyglot.PolyglotInstrument com.oracle.truffle.polyglot.PolyglotContextImpl[] top int int com.oracle.truffle.polyglot.PolyglotContextImpl[]
StackMap stack:
16: aload 5
iload 3
aaload
astore 2
start local 2 17: aload 2
dup
astore 6
monitorenter
18: aload 2
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.closed:Z
ifne 19
aload 2
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.invalid:Z
ifeq 21
19: StackMap locals: com.oracle.truffle.polyglot.PolyglotInstrument com.oracle.truffle.polyglot.PolyglotContextImpl[] com.oracle.truffle.polyglot.PolyglotContextImpl int int com.oracle.truffle.polyglot.PolyglotContextImpl[] com.oracle.truffle.polyglot.PolyglotContextImpl
StackMap stack:
aload 6
monitorexit
20: goto 28
21: StackMap locals:
StackMap stack:
aload 2
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.contextLocals:[Ljava/lang/Object;
ifnull 24
22: aload 2
aload 2
getfield com.oracle.truffle.polyglot.PolyglotContextImpl.contextLocals:[Ljava/lang/Object;
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.contextLocalLocations:[Lcom/oracle/truffle/polyglot/PolyglotLocals$LocalLocation;
invokevirtual com.oracle.truffle.polyglot.PolyglotContextImpl.invokeContextLocalsFactory:([Ljava/lang/Object;[Lcom/oracle/truffle/polyglot/PolyglotLocals$LocalLocation;)V
23: aload 2
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.contextThreadLocalLocations:[Lcom/oracle/truffle/polyglot/PolyglotLocals$LocalLocation;
invokevirtual com.oracle.truffle.polyglot.PolyglotContextImpl.invokeContextThreadLocalFactory:([Lcom/oracle/truffle/polyglot/PolyglotLocals$LocalLocation;)V
24: StackMap locals:
StackMap stack:
aload 6
monitorexit
25: goto 28
StackMap locals:
StackMap stack: java.lang.Throwable
26: aload 6
monitorexit
27: athrow
end local 2 28: StackMap locals: com.oracle.truffle.polyglot.PolyglotInstrument com.oracle.truffle.polyglot.PolyglotContextImpl[] top int int com.oracle.truffle.polyglot.PolyglotContextImpl[]
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
29: iload 3
iload 4
if_icmplt 16
end local 1 30: StackMap locals: com.oracle.truffle.polyglot.PolyglotInstrument
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lcom/oracle/truffle/polyglot/PolyglotInstrument;
2 30 1 contexts [Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
17 28 2 context Lcom/oracle/truffle/polyglot/PolyglotContextImpl;
Exception table:
from to target type
3 11 12 any
12 13 12 any
18 20 26 any
21 25 26 any
26 27 26 any
void notifyClosing();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.created:Z
ifeq 8
1: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.instrumentLock:Ljava/lang/Object;
dup
astore 1
monitorenter
2: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.created:Z
ifeq 4
3: getstatic com.oracle.truffle.polyglot.EngineAccessor.INSTRUMENT:Lcom/oracle/truffle/api/impl/Accessor$InstrumentSupport;
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.instrumentationHandler:Ljava/lang/Object;
aload 0
invokevirtual com.oracle.truffle.api.impl.Accessor$InstrumentSupport.finalizeInstrument:(Ljava/lang/Object;Ljava/lang/Object;)V
4: StackMap locals: java.lang.Object
StackMap stack:
aload 1
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 1
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/truffle/polyglot/PolyglotInstrument;
Exception table:
from to target type
2 5 6 any
6 7 6 any
void ensureClosed();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=1
start local 0 0: getstatic com.oracle.truffle.polyglot.PolyglotInstrument.$assertionsDisabled:Z
ifne 1
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.lock:Ljava/lang/Object;
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.created:Z
ifeq 13
2: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.instrumentLock:Ljava/lang/Object;
dup
astore 1
monitorenter
3: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.created:Z
ifeq 5
4: getstatic com.oracle.truffle.polyglot.EngineAccessor.INSTRUMENT:Lcom/oracle/truffle/api/impl/Accessor$InstrumentSupport;
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.instrumentationHandler:Ljava/lang/Object;
aload 0
iconst_0
invokevirtual com.oracle.truffle.api.impl.Accessor$InstrumentSupport.disposeInstrument:(Ljava/lang/Object;Ljava/lang/Object;Z)V
5: StackMap locals: java.lang.Object
StackMap stack:
aload 0
iconst_0
putfield com.oracle.truffle.polyglot.PolyglotInstrument.created:Z
6: aload 0
iconst_0
putfield com.oracle.truffle.polyglot.PolyglotInstrument.initialized:Z
7: aload 0
aconst_null
putfield com.oracle.truffle.polyglot.PolyglotInstrument.engineOptions:Lorg/graalvm/options/OptionDescriptors;
8: aload 0
aconst_null
putfield com.oracle.truffle.polyglot.PolyglotInstrument.optionValues:Lcom/oracle/truffle/polyglot/OptionValuesImpl;
9: aload 1
monitorexit
10: goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
11: aload 1
monitorexit
12: athrow
13: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/oracle/truffle/polyglot/PolyglotInstrument;
Exception table:
from to target type
3 10 11 any
11 12 11 any
public <T> T lookup(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
invokevirtual com.oracle.truffle.polyglot.PolyglotEngineImpl.checkState:()V
1: aload 0
aload 1
invokevirtual com.oracle.truffle.polyglot.PolyglotInstrument.lookupInternal:(Ljava/lang/Class;)Ljava/lang/Object;
2: areturn
3: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
start local 2 4: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
aload 2
invokestatic com.oracle.truffle.polyglot.PolyglotImpl.guestToHostException:(Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;Ljava/lang/Throwable;)Lorg/graalvm/polyglot/PolyglotException;
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/polyglot/PolyglotInstrument;
0 5 1 serviceClass Ljava/lang/Class<TT;>;
4 5 2 t Ljava/lang/Throwable;
Exception table:
from to target type
0 2 3 Class java.lang.Throwable
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
serviceClass
<T> T lookupInternal(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.cache:Lcom/oracle/truffle/polyglot/InstrumentCache;
aload 1
invokevirtual com.oracle.truffle.polyglot.InstrumentCache.supportsService:(Ljava/lang/Class;)Z
ifeq 3
1: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotInstrument.ensureCreated:()V
2: getstatic com.oracle.truffle.polyglot.EngineAccessor.INSTRUMENT:Lcom/oracle/truffle/api/impl/Accessor$InstrumentSupport;
aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.instrumentationHandler:Ljava/lang/Object;
aload 0
aload 1
invokevirtual com.oracle.truffle.api.impl.Accessor$InstrumentSupport.getInstrumentationHandlerService:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
areturn
3: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/polyglot/PolyglotInstrument;
0 4 1 serviceClass Ljava/lang/Class<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
serviceClass
public java.lang.String getId();
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.PolyglotInstrument.cache:Lcom/oracle/truffle/polyglot/InstrumentCache;
invokevirtual com.oracle.truffle.polyglot.InstrumentCache.getId:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotInstrument;
public java.lang.String getName();
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.PolyglotInstrument.cache:Lcom/oracle/truffle/polyglot/InstrumentCache;
invokevirtual com.oracle.truffle.polyglot.InstrumentCache.getName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/PolyglotInstrument;
public java.lang.String getVersion();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.cache:Lcom/oracle/truffle/polyglot/InstrumentCache;
invokevirtual com.oracle.truffle.polyglot.InstrumentCache.getVersion:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ldc "inherit"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
2: aload 0
getfield com.oracle.truffle.polyglot.PolyglotInstrument.engine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
getfield com.oracle.truffle.polyglot.PolyglotEngineImpl.creatorApi:Lorg/graalvm/polyglot/Engine;
invokevirtual org.graalvm.polyglot.Engine.getVersion:()Ljava/lang/String;
areturn
3: StackMap locals: java.lang.String
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/polyglot/PolyglotInstrument;
1 4 1 version Ljava/lang/String;
}
SourceFile: "PolyglotInstrument.java"
NestMembers:
com.oracle.truffle.polyglot.PolyglotInstrument$1
InnerClasses:
public abstract InstrumentSupport = com.oracle.truffle.api.impl.Accessor$InstrumentSupport of com.oracle.truffle.api.impl.Accessor
abstract VMObject = com.oracle.truffle.polyglot.PolyglotImpl$VMObject of com.oracle.truffle.polyglot.PolyglotImpl
com.oracle.truffle.polyglot.PolyglotInstrument$1
abstract LocalLocation = com.oracle.truffle.polyglot.PolyglotLocals$LocalLocation of com.oracle.truffle.polyglot.PolyglotLocals
public abstract AbstractInstrumentImpl = org.graalvm.polyglot.impl.AbstractPolyglotImpl$AbstractInstrumentImpl of org.graalvm.polyglot.impl.AbstractPolyglotImpl