public class com.oracle.svm.truffle.NodeClassFeature implements org.graalvm.nativeimage.hosted.Feature
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.svm.truffle.NodeClassFeature
super_class: java.lang.Object
{
private com.oracle.graal.pointsto.meta.AnalysisMetaAccess metaAccess;
descriptor: Lcom/oracle/graal/pointsto/meta/AnalysisMetaAccess;
flags: (0x0002) ACC_PRIVATE
private com.oracle.svm.graal.hosted.GraalObjectReplacer graalObjectReplacer;
descriptor: Lcom/oracle/svm/graal/hosted/GraalObjectReplacer;
flags: (0x0002) ACC_PRIVATE
private final java.util.Set<java.lang.Class<?>> registeredClasses;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/Class<*>;>;
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/svm/truffle/NodeClassFeature;
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.svm.truffle.NodeClassFeature.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield com.oracle.svm.truffle.NodeClassFeature.registeredClasses:Ljava/util/Set;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/svm/truffle/NodeClassFeature;
public java.util.List<java.lang.Class<? extends org.graalvm.nativeimage.hosted.Feature>> getRequiredFeatures();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: iconst_2
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/svm/truffle/TruffleFeature;
aastore
dup
iconst_1
ldc Lcom/oracle/svm/graal/hosted/GraalFeature;
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/svm/truffle/NodeClassFeature;
Signature: ()Ljava/util/List<Ljava/lang/Class<+Lorg/graalvm/nativeimage/hosted/Feature;>;>;
public void duringSetup(org.graalvm.nativeimage.hosted.Feature$DuringSetupAccess);
descriptor: (Lorg/graalvm/nativeimage/hosted/Feature$DuringSetupAccess;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
checkcast com.oracle.svm.hosted.FeatureImpl$DuringSetupAccessImpl
invokevirtual com.oracle.svm.hosted.FeatureImpl$DuringSetupAccessImpl.getMetaAccess:()Lcom/oracle/graal/pointsto/meta/AnalysisMetaAccess;
putfield com.oracle.svm.truffle.NodeClassFeature.metaAccess:Lcom/oracle/graal/pointsto/meta/AnalysisMetaAccess;
1: aload 0
ldc Lcom/oracle/svm/graal/hosted/GraalFeature;
invokestatic org.graalvm.nativeimage.ImageSingletons.lookup:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast com.oracle.svm.graal.hosted.GraalFeature
invokevirtual com.oracle.svm.graal.hosted.GraalFeature.getObjectReplacer:()Lcom/oracle/svm/graal/hosted/GraalObjectReplacer;
putfield com.oracle.svm.truffle.NodeClassFeature.graalObjectReplacer:Lcom/oracle/svm/graal/hosted/GraalObjectReplacer;
2: aload 1
aload 0
invokedynamic apply(Lcom/oracle/svm/truffle/NodeClassFeature;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
com/oracle/svm/truffle/NodeClassFeature.replaceNodeFieldAccessor(Ljava/lang/Object;)Ljava/lang/Object; (7)
(Ljava/lang/Object;)Ljava/lang/Object;
invokeinterface org.graalvm.nativeimage.hosted.Feature$DuringSetupAccess.registerObjectReplacer:(Ljava/util/function/Function;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/svm/truffle/NodeClassFeature;
0 4 1 access Lorg/graalvm/nativeimage/hosted/Feature$DuringSetupAccess;
MethodParameters:
Name Flags
access
private java.lang.Object replaceNodeFieldAccessor(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof com.oracle.truffle.api.nodes.NodeFieldAccessor
ifne 2
1: aload 1
instanceof com.oracle.truffle.api.nodes.NodeFieldAccessor[]
ifeq 3
aload 1
checkcast com.oracle.truffle.api.nodes.NodeFieldAccessor[]
arraylength
ifle 3
2: StackMap locals:
StackMap stack:
ldc "Cannot have NodeFieldAccessor in image, they must be created lazily"
invokestatic com.oracle.svm.core.util.VMError.shouldNotReachHere:(Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
3: StackMap locals:
StackMap stack:
aload 1
instanceof com.oracle.truffle.api.nodes.NodeClass
ifeq 8
aload 1
instanceof com.oracle.svm.graal.meta.SubstrateType
ifne 8
4: aload 1
checkcast com.oracle.truffle.api.nodes.NodeClass
astore 2
start local 2 5: aload 0
getfield com.oracle.svm.truffle.NodeClassFeature.graalObjectReplacer:Lcom/oracle/svm/graal/hosted/GraalObjectReplacer;
aload 0
getfield com.oracle.svm.truffle.NodeClassFeature.metaAccess:Lcom/oracle/graal/pointsto/meta/AnalysisMetaAccess;
aload 2
invokevirtual com.oracle.truffle.api.nodes.NodeClass.getType:()Ljava/lang/Class;
invokevirtual com.oracle.graal.pointsto.meta.AnalysisMetaAccess.lookupJavaType:(Ljava/lang/Class;)Lcom/oracle/graal/pointsto/meta/AnalysisType;
invokevirtual com.oracle.svm.graal.hosted.GraalObjectReplacer.createType:(Ljdk/vm/ci/meta/JavaType;)Lcom/oracle/svm/graal/meta/SubstrateType;
astore 3
start local 3 6: getstatic com.oracle.svm.truffle.NodeClassFeature.$assertionsDisabled:Z
ifne 7
aload 3
ifnonnull 7
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
7: StackMap locals: com.oracle.truffle.api.nodes.NodeClass com.oracle.truffle.api.nodes.NodeClass
StackMap stack:
aload 3
areturn
end local 3 end local 2 8: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/svm/truffle/NodeClassFeature;
0 9 1 source Ljava/lang/Object;
5 8 2 nodeClass Lcom/oracle/truffle/api/nodes/NodeClass;
6 8 3 replacement Lcom/oracle/truffle/api/nodes/NodeClass;
MethodParameters:
Name Flags
source
public void duringAnalysis(org.graalvm.nativeimage.hosted.Feature$DuringAnalysisAccess);
descriptor: (Lorg/graalvm/nativeimage/hosted/Feature$DuringAnalysisAccess;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ldc Lcom/oracle/truffle/api/nodes/Node;
invokeinterface org.graalvm.nativeimage.hosted.Feature$DuringAnalysisAccess.reachableSubtypes:(Ljava/lang/Class;)Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 6
StackMap locals: com.oracle.svm.truffle.NodeClassFeature org.graalvm.nativeimage.hosted.Feature$DuringAnalysisAccess top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Class
astore 2
start local 2 2: aload 0
aload 1
aload 2
ldc Lcom/oracle/truffle/api/nodes/Node;
invokevirtual java.lang.Class.asSubclass:(Ljava/lang/Class;)Ljava/lang/Class;
invokevirtual com.oracle.svm.truffle.NodeClassFeature.registerUnsafeAccess:(Lorg/graalvm/nativeimage/hosted/Feature$DuringAnalysisAccess;Ljava/lang/Class;)V
3: aload 1
checkcast com.oracle.svm.hosted.FeatureImpl$DuringAnalysisAccessImpl
invokevirtual com.oracle.svm.hosted.FeatureImpl$DuringAnalysisAccessImpl.getMetaAccess:()Lcom/oracle/graal/pointsto/meta/AnalysisMetaAccess;
aload 2
invokevirtual com.oracle.graal.pointsto.meta.AnalysisMetaAccess.lookupJavaType:(Ljava/lang/Class;)Lcom/oracle/graal/pointsto/meta/AnalysisType;
astore 4
start local 4 4: aload 4
invokevirtual com.oracle.graal.pointsto.meta.AnalysisType.isInstantiated:()Z
ifeq 6
5: aload 0
getfield com.oracle.svm.truffle.NodeClassFeature.graalObjectReplacer:Lcom/oracle/svm/graal/hosted/GraalObjectReplacer;
aload 4
invokevirtual com.oracle.svm.graal.hosted.GraalObjectReplacer.createType:(Ljdk/vm/ci/meta/JavaType;)Lcom/oracle/svm/graal/meta/SubstrateType;
pop
end local 4 end local 2 6: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/oracle/svm/truffle/NodeClassFeature;
0 8 1 access Lorg/graalvm/nativeimage/hosted/Feature$DuringAnalysisAccess;
2 6 2 clazz Ljava/lang/Class<*>;
4 6 4 type Lcom/oracle/graal/pointsto/meta/AnalysisType;
MethodParameters:
Name Flags
access
private void registerUnsafeAccess(org.graalvm.nativeimage.hosted.Feature$DuringAnalysisAccess, java.lang.Class<? extends com.oracle.truffle.api.nodes.Node>);
descriptor: (Lorg/graalvm/nativeimage/hosted/Feature$DuringAnalysisAccess;Ljava/lang/Class;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.oracle.svm.truffle.NodeClassFeature.registeredClasses:Ljava/util/Set;
aload 2
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.svm.truffle.NodeClassFeature.registeredClasses:Ljava/util/Set;
aload 2
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
3: aload 2
invokestatic com.oracle.truffle.api.nodes.NodeClass.get:(Ljava/lang/Class;)Lcom/oracle/truffle/api/nodes/NodeClass;
astore 3
start local 3 4: aload 3
invokevirtual com.oracle.truffle.api.nodes.NodeClass.getFields:()[Lcom/oracle/truffle/api/nodes/NodeFieldAccessor;
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 19
StackMap locals: com.oracle.svm.truffle.NodeClassFeature org.graalvm.nativeimage.hosted.Feature$DuringAnalysisAccess java.lang.Class com.oracle.truffle.api.nodes.NodeClass top int int com.oracle.truffle.api.nodes.NodeFieldAccessor[]
StackMap stack:
5: aload 7
iload 5
aaload
astore 4
start local 4 6: aload 4
invokevirtual com.oracle.truffle.api.nodes.NodeFieldAccessor.getDeclaringClass:()Ljava/lang/Class;
aload 4
invokevirtual com.oracle.truffle.api.nodes.NodeFieldAccessor.getName:()Ljava/lang/String;
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 8
start local 8 7: goto 10
end local 8 StackMap locals: com.oracle.svm.truffle.NodeClassFeature org.graalvm.nativeimage.hosted.Feature$DuringAnalysisAccess java.lang.Class com.oracle.truffle.api.nodes.NodeClass com.oracle.truffle.api.nodes.NodeFieldAccessor int int com.oracle.truffle.api.nodes.NodeFieldAccessor[]
StackMap stack: java.lang.NoSuchFieldException
8: astore 9
start local 9 9: aload 9
invokestatic com.oracle.svm.core.util.VMError.shouldNotReachHere:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
athrow
end local 9 start local 8 10: StackMap locals: java.lang.reflect.Field
StackMap stack:
aload 4
invokevirtual com.oracle.truffle.api.nodes.NodeFieldAccessor.getKind:()Lcom/oracle/truffle/api/nodes/NodeFieldAccessor$NodeFieldKind;
getstatic com.oracle.truffle.api.nodes.NodeFieldAccessor$NodeFieldKind.PARENT:Lcom/oracle/truffle/api/nodes/NodeFieldAccessor$NodeFieldKind;
if_acmpeq 13
11: aload 4
invokevirtual com.oracle.truffle.api.nodes.NodeFieldAccessor.getKind:()Lcom/oracle/truffle/api/nodes/NodeFieldAccessor$NodeFieldKind;
getstatic com.oracle.truffle.api.nodes.NodeFieldAccessor$NodeFieldKind.CHILD:Lcom/oracle/truffle/api/nodes/NodeFieldAccessor$NodeFieldKind;
if_acmpeq 13
12: aload 4
invokevirtual com.oracle.truffle.api.nodes.NodeFieldAccessor.getKind:()Lcom/oracle/truffle/api/nodes/NodeFieldAccessor$NodeFieldKind;
getstatic com.oracle.truffle.api.nodes.NodeFieldAccessor$NodeFieldKind.CHILDREN:Lcom/oracle/truffle/api/nodes/NodeFieldAccessor$NodeFieldKind;
if_acmpne 14
13: StackMap locals:
StackMap stack:
aload 1
aload 8
invokeinterface org.graalvm.nativeimage.hosted.Feature$DuringAnalysisAccess.registerAsUnsafeAccessed:(Ljava/lang/reflect/Field;)V
14: StackMap locals:
StackMap stack:
aload 4
invokevirtual com.oracle.truffle.api.nodes.NodeFieldAccessor.getKind:()Lcom/oracle/truffle/api/nodes/NodeFieldAccessor$NodeFieldKind;
getstatic com.oracle.truffle.api.nodes.NodeFieldAccessor$NodeFieldKind.DATA:Lcom/oracle/truffle/api/nodes/NodeFieldAccessor$NodeFieldKind;
if_acmpne 17
15: ldc Lcom/oracle/truffle/api/nodes/NodeCloneable;
aload 4
invokevirtual com.oracle.truffle.api.nodes.NodeFieldAccessor.getType:()Ljava/lang/Class;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 17
16: aload 1
aload 8
invokeinterface org.graalvm.nativeimage.hosted.Feature$DuringAnalysisAccess.registerAsUnsafeAccessed:(Ljava/lang/reflect/Field;)V
17: StackMap locals:
StackMap stack:
aload 1
aload 8
invokeinterface org.graalvm.nativeimage.hosted.Feature$DuringAnalysisAccess.registerAsAccessed:(Ljava/lang/reflect/Field;)V
end local 8 end local 4 18: iinc 5 1
StackMap locals: com.oracle.svm.truffle.NodeClassFeature org.graalvm.nativeimage.hosted.Feature$DuringAnalysisAccess java.lang.Class com.oracle.truffle.api.nodes.NodeClass top int int com.oracle.truffle.api.nodes.NodeFieldAccessor[]
StackMap stack:
19: iload 5
iload 6
if_icmplt 5
20: aload 1
invokeinterface org.graalvm.nativeimage.hosted.Feature$DuringAnalysisAccess.requireAnalysisIteration:()V
21: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lcom/oracle/svm/truffle/NodeClassFeature;
0 22 1 access Lorg/graalvm/nativeimage/hosted/Feature$DuringAnalysisAccess;
0 22 2 clazz Ljava/lang/Class<+Lcom/oracle/truffle/api/nodes/Node;>;
4 22 3 nodeClass Lcom/oracle/truffle/api/nodes/NodeClass;
6 18 4 accessor Lcom/oracle/truffle/api/nodes/NodeFieldAccessor;
7 8 8 field Ljava/lang/reflect/Field;
10 18 8 field Ljava/lang/reflect/Field;
9 10 9 ex Ljava/lang/NoSuchFieldException;
Exception table:
from to target type
6 7 8 Class java.lang.NoSuchFieldException
Signature: (Lorg/graalvm/nativeimage/hosted/Feature$DuringAnalysisAccess;Ljava/lang/Class<+Lcom/oracle/truffle/api/nodes/Node;>;)V
MethodParameters:
Name Flags
access
clazz
}
SourceFile: "NodeClassFeature.java"
InnerClasses:
public DuringAnalysisAccessImpl = com.oracle.svm.hosted.FeatureImpl$DuringAnalysisAccessImpl of com.oracle.svm.hosted.FeatureImpl
public DuringSetupAccessImpl = com.oracle.svm.hosted.FeatureImpl$DuringSetupAccessImpl of com.oracle.svm.hosted.FeatureImpl
public final NodeFieldKind = com.oracle.truffle.api.nodes.NodeFieldAccessor$NodeFieldKind of com.oracle.truffle.api.nodes.NodeFieldAccessor
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract DuringAnalysisAccess = org.graalvm.nativeimage.hosted.Feature$DuringAnalysisAccess of org.graalvm.nativeimage.hosted.Feature
public abstract DuringSetupAccess = org.graalvm.nativeimage.hosted.Feature$DuringSetupAccess of org.graalvm.nativeimage.hosted.Feature