public class com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage extends com.oracle.truffle.api.test.polyglot.ProxyLanguage
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage
super_class: com.oracle.truffle.api.test.polyglot.ProxyLanguage
{
public static final java.lang.String ID;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "truffle-allocation-reporter-language"
public static final java.lang.String PROP_SIZE_CALLS;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "sizeCalls"
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.oracle.truffle.api.test.polyglot.ProxyLanguage.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage;
protected com.oracle.truffle.api.CallTarget parse(com.oracle.truffle.api.TruffleLanguage$ParsingRequest);
descriptor: (Lcom/oracle/truffle/api/TruffleLanguage$ParsingRequest;)Lcom/oracle/truffle/api/CallTarget;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.oracle.truffle.api.TruffleLanguage$ParsingRequest.getSource:()Lcom/oracle/truffle/api/source/Source;
astore 2
start local 2 1: invokestatic com.oracle.truffle.api.Truffle.getRuntime:()Lcom/oracle/truffle/api/TruffleRuntime;
new com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$1
dup
aload 0
aload 0
aload 2
invokespecial com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$1.<init>:(Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage;Lcom/oracle/truffle/api/TruffleLanguage;Lcom/oracle/truffle/api/source/Source;)V
invokeinterface com.oracle.truffle.api.TruffleRuntime.createCallTarget:(Lcom/oracle/truffle/api/nodes/RootNode;)Lcom/oracle/truffle/api/RootCallTarget;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage;
0 2 1 request Lcom/oracle/truffle/api/TruffleLanguage$ParsingRequest;
1 2 2 code Lcom/oracle/truffle/api/source/Source;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
request
private static com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocNode parse(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocNode;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=12, args_size=1
start local 0 0: aload 0
ldc "\\s"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 1
start local 1 1: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 2
start local 2 2: new com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode
dup
aconst_null
aconst_null
invokespecial com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode.<init>:(Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue;Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue;)V
astore 3
start local 3 3: aconst_null
astore 4
start local 4 4: aload 2
aload 3
invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
5: aload 1
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 30
StackMap locals: java.lang.String java.lang.String[] java.util.LinkedList com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode top int int java.lang.String[]
StackMap stack:
6: aload 8
iload 6
aaload
astore 5
start local 5 7: ldc "{"
aload 5
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 12
8: aload 2
aload 4
invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
9: aload 4
astore 3
10: aconst_null
astore 4
11: goto 29
12: StackMap locals: java.lang.String java.lang.String[] java.util.LinkedList com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode java.lang.String int int java.lang.String[]
StackMap stack:
aload 4
ifnull 15
13: aload 3
aload 4
invokevirtual com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode.toNode:()Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocNode;
invokevirtual com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode.addChild:(Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocNode;)V
14: aconst_null
astore 4
15: StackMap locals:
StackMap stack:
ldc "}"
aload 5
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 21
16: aload 3
invokevirtual com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode.toNode:()Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocNode;
astore 9
start local 9 17: aload 2
invokevirtual java.util.LinkedList.removeLast:()Ljava/lang/Object;
pop
18: aload 2
invokevirtual java.util.LinkedList.getLast:()Ljava/lang/Object;
checkcast com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode
astore 3
19: aload 3
aload 9
invokevirtual com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode.addChild:(Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocNode;)V
20: goto 29
end local 9 21: StackMap locals:
StackMap stack:
aload 5
ldc "->"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 9
start local 9 22: iload 9
ifge 26
23: aload 5
invokestatic com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage.parseValue:(Ljava/lang/String;)Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue;
astore 10
start local 10 24: new com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode
dup
aconst_null
aload 10
invokespecial com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode.<init>:(Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue;Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue;)V
astore 4
end local 10 25: goto 29
26: StackMap locals: int
StackMap stack:
aload 5
iconst_0
iload 9
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage.parseValue:(Ljava/lang/String;)Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue;
astore 10
start local 10 27: aload 5
iload 9
iconst_2
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage.parseValue:(Ljava/lang/String;)Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue;
astore 11
start local 11 28: new com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode
dup
aload 10
aload 11
invokespecial com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode.<init>:(Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue;Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue;)V
astore 4
end local 11 end local 10 end local 9 end local 5 29: StackMap locals: java.lang.String java.lang.String[] java.util.LinkedList com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode top int int java.lang.String[]
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
30: iload 6
iload 7
if_icmplt 6
31: aload 4
ifnull 33
32: aload 3
aload 4
invokevirtual com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode.toNode:()Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocNode;
invokevirtual com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode.addChild:(Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocNode;)V
33: StackMap locals: java.lang.String java.lang.String[] java.util.LinkedList com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode
StackMap stack:
aload 2
invokevirtual java.util.LinkedList.removeLast:()Ljava/lang/Object;
checkcast com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode
invokevirtual com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode.toNode:()Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocNode;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 code Ljava/lang/String;
1 34 1 allocations [Ljava/lang/String;
2 34 2 futures Ljava/util/LinkedList<Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$FutureNode;>;
3 34 3 parent Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$FutureNode;
4 34 4 last Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$FutureNode;
7 29 5 allocCommand Ljava/lang/String;
17 21 9 node Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocNode;
22 29 9 reallocIndex I
24 25 10 newValue Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue;
27 29 10 oldValue Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue;
28 29 11 newValue Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue;
MethodParameters:
Name Flags
code
private static com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue parseValue(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: ldc "new"
aload 0
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 3
1: new com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue
dup
getstatic com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue$Kind.UNKNOWN:Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue$Kind;
aconst_null
invokespecial com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue.<init>:(Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue$Kind;Ljava/lang/String;)V
astore 1
start local 1 2: goto 18
end local 1 StackMap locals:
StackMap stack:
3: ldc "internal"
aload 0
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 6
4: new com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue
dup
getstatic com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue$Kind.INTERNAL:Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue$Kind;
aconst_null
invokespecial com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue.<init>:(Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue$Kind;Ljava/lang/String;)V
astore 1
start local 1 5: goto 18
end local 1 StackMap locals:
StackMap stack:
6: ldc "wrong"
aload 0
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 9
7: new com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue
dup
getstatic com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue$Kind.WRONG:Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue$Kind;
aconst_null
invokespecial com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue.<init>:(Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue$Kind;Ljava/lang/String;)V
astore 1
start local 1 8: goto 18
end local 1 9: StackMap locals:
StackMap stack:
aload 0
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
pop
10: new com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue
dup
getstatic com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue$Kind.INT:Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue$Kind;
aload 0
invokespecial com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue.<init>:(Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue$Kind;Ljava/lang/String;)V
astore 1
start local 1 11: goto 18
end local 1 StackMap locals:
StackMap stack: java.lang.NumberFormatException
12: pop
13: aload 0
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
pop2
14: new com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue
dup
getstatic com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue$Kind.LONG:Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue$Kind;
aload 0
invokespecial com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue.<init>:(Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue$Kind;Ljava/lang/String;)V
astore 1
start local 1 15: goto 18
end local 1 StackMap locals:
StackMap stack: java.lang.NumberFormatException
16: pop
17: new com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue
dup
getstatic com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue$Kind.BIG:Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue$Kind;
aload 0
invokespecial com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue.<init>:(Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue$Kind;Ljava/lang/String;)V
astore 1
start local 1 18: StackMap locals: com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 allocCommand Ljava/lang/String;
2 3 1 newValue Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue;
5 6 1 newValue Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue;
8 9 1 newValue Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue;
11 12 1 newValue Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue;
15 16 1 newValue Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue;
18 19 1 newValue Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage$AllocValue;
Exception table:
from to target type
9 11 12 Class java.lang.NumberFormatException
13 15 16 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
allocCommand
public static com.oracle.truffle.api.test.polyglot.ProxyLanguage$LanguageContext getCurrentContext();
descriptor: ()Lcom/oracle/truffle/api/test/polyglot/ProxyLanguage$LanguageContext;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterTest$AllocationReporterLanguage;
invokestatic com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage.getCurrentContext:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast com.oracle.truffle.api.test.polyglot.ProxyLanguage$LanguageContext
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "AllocationReporterTest.java"
NestHost: com.oracle.truffle.api.instrumentation.test.AllocationReporterTest
InnerClasses:
public final ParsingRequest = com.oracle.truffle.api.TruffleLanguage$ParsingRequest of com.oracle.truffle.api.TruffleLanguage
public abstract Registration = com.oracle.truffle.api.TruffleLanguage$Registration of com.oracle.truffle.api.TruffleLanguage
public AllocationReporterLanguage = com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage of com.oracle.truffle.api.instrumentation.test.AllocationReporterTest
com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$1
private AllocNode = com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocNode of com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage
private AllocValue = com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue of com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage
final Kind = com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue$Kind of com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$AllocValue
private FutureNode = com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage$FutureNode of com.oracle.truffle.api.instrumentation.test.AllocationReporterTest$AllocationReporterLanguage
public LanguageContext = com.oracle.truffle.api.test.polyglot.ProxyLanguage$LanguageContext of com.oracle.truffle.api.test.polyglot.ProxyLanguage
RuntimeVisibleAnnotations:
com.oracle.truffle.api.TruffleLanguage$Registration(id = "truffle-allocation-reporter-language", name = "Allocation Reporter Language", version = "1.0")