final class com.oracle.truffle.api.instrumentation.test.InstrumentationTest$TestAllocation extends com.oracle.truffle.api.test.polyglot.ProxyInstrument implements com.oracle.truffle.api.instrumentation.AllocationListener
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.api.instrumentation.test.InstrumentationTest$TestAllocation
super_class: com.oracle.truffle.api.test.polyglot.ProxyInstrument
{
private final java.util.List<java.lang.String> allocations;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/String;>;
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.oracle.truffle.api.test.polyglot.ProxyInstrument.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$TestAllocation.allocations:Ljava/util/List;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$TestAllocation;
protected void onCreate(com.oracle.truffle.api.instrumentation.TruffleInstrument$Env);
descriptor: (Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial com.oracle.truffle.api.test.polyglot.ProxyInstrument.onCreate:(Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;)V
1: aload 1
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getLanguages:()Ljava/util/Map;
ldc "instrumentation-test-language"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.oracle.truffle.api.nodes.LanguageInfo
astore 2
start local 2 2: aload 1
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getInstrumenter:()Lcom/oracle/truffle/api/instrumentation/Instrumenter;
invokestatic com.oracle.truffle.api.instrumentation.AllocationEventFilter.newBuilder:()Lcom/oracle/truffle/api/instrumentation/AllocationEventFilter$Builder;
iconst_1
anewarray com.oracle.truffle.api.nodes.LanguageInfo
dup
iconst_0
aload 2
aastore
invokevirtual com.oracle.truffle.api.instrumentation.AllocationEventFilter$Builder.languages:([Lcom/oracle/truffle/api/nodes/LanguageInfo;)Lcom/oracle/truffle/api/instrumentation/AllocationEventFilter$Builder;
invokevirtual com.oracle.truffle.api.instrumentation.AllocationEventFilter$Builder.build:()Lcom/oracle/truffle/api/instrumentation/AllocationEventFilter;
aload 0
invokevirtual com.oracle.truffle.api.instrumentation.Instrumenter.attachAllocationListener:(Lcom/oracle/truffle/api/instrumentation/AllocationEventFilter;Lcom/oracle/truffle/api/instrumentation/AllocationListener;)Lcom/oracle/truffle/api/instrumentation/EventBinding;
pop
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$TestAllocation;
0 4 1 env Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
2 4 2 testLanguage Lcom/oracle/truffle/api/nodes/LanguageInfo;
MethodParameters:
Name Flags
env
java.lang.String getAllocations();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$TestAllocation.allocations:Ljava/util/List;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$TestAllocation;
public void onEnter(com.oracle.truffle.api.instrumentation.AllocationEvent);
descriptor: (Lcom/oracle/truffle/api/instrumentation/AllocationEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$TestAllocation.allocations:Ljava/util/List;
new java.lang.StringBuilder
dup
ldc "W "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.AllocationEvent.getNewSize:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.AllocationEvent.getValue:()Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$TestAllocation;
0 2 1 event Lcom/oracle/truffle/api/instrumentation/AllocationEvent;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
event
public void onReturnValue(com.oracle.truffle.api.instrumentation.AllocationEvent);
descriptor: (Lcom/oracle/truffle/api/instrumentation/AllocationEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentationTest$TestAllocation.allocations:Ljava/util/List;
new java.lang.StringBuilder
dup
ldc "A "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.AllocationEvent.getNewSize:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.AllocationEvent.getValue:()Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/api/instrumentation/test/InstrumentationTest$TestAllocation;
0 2 1 event Lcom/oracle/truffle/api/instrumentation/AllocationEvent;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
event
}
SourceFile: "InstrumentationTest.java"
NestHost: com.oracle.truffle.api.instrumentation.test.InstrumentationTest
InnerClasses:
public abstract TruffleBoundary = com.oracle.truffle.api.CompilerDirectives$TruffleBoundary of com.oracle.truffle.api.CompilerDirectives
public Builder = com.oracle.truffle.api.instrumentation.AllocationEventFilter$Builder of com.oracle.truffle.api.instrumentation.AllocationEventFilter
public final Env = com.oracle.truffle.api.instrumentation.TruffleInstrument$Env of com.oracle.truffle.api.instrumentation.TruffleInstrument
private final TestAllocation = com.oracle.truffle.api.instrumentation.test.InstrumentationTest$TestAllocation of com.oracle.truffle.api.instrumentation.test.InstrumentationTest