public class com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument extends com.oracle.truffle.api.instrumentation.TruffleInstrument
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument
super_class: com.oracle.truffle.api.instrumentation.TruffleInstrument
{
static com.oracle.truffle.api.instrumentation.SourceSectionFilter filter;
descriptor: Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
flags: (0x0008) ACC_STATIC
static com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument instance;
descriptor: Lcom/oracle/truffle/js/test/instrumentation/ScopeInstrumentTest$TestJSScopeInstrument;
flags: (0x0008) ACC_STATIC
private com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$ScopeTester tester;
descriptor: Lcom/oracle/truffle/js/test/instrumentation/ScopeInstrumentTest$ScopeTester;
flags: (0x0002) ACC_PRIVATE
private int count;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.Exception failure;
descriptor: Ljava/lang/Exception;
flags: (0x0002) ACC_PRIVATE
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.instrumentation.TruffleInstrument.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/test/instrumentation/ScopeInstrumentTest$TestJSScopeInstrument;
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=2, args_size=2
start local 0 start local 1 0: aload 0
putstatic com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument.instance:Lcom/oracle/truffle/js/test/instrumentation/ScopeInstrumentTest$TestJSScopeInstrument;
1: ldc "SourceSectionFilter"
getstatic com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument.filter:Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/String;Ljava/lang/Object;)V
2: aload 1
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getInstrumenter:()Lcom/oracle/truffle/api/instrumentation/Instrumenter;
getstatic com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument.filter:Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
new com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument$1
dup
aload 0
aload 1
invokespecial com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument$1.<init>:(Lcom/oracle/truffle/js/test/instrumentation/ScopeInstrumentTest$TestJSScopeInstrument;Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;)V
invokevirtual com.oracle.truffle.api.instrumentation.Instrumenter.attachExecutionEventListener:(Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;Lcom/oracle/truffle/api/instrumentation/ExecutionEventListener;)Lcom/oracle/truffle/api/instrumentation/EventBinding;
pop
3: aload 1
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.registerService:(Ljava/lang/Object;)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/js/test/instrumentation/ScopeInstrumentTest$TestJSScopeInstrument;
0 5 1 env Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
MethodParameters:
Name Flags
env
void setTester(com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$ScopeTester);
descriptor: (Lcom/oracle/truffle/js/test/instrumentation/ScopeInstrumentTest$ScopeTester;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
putfield com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument.count:I
1: aload 0
aload 1
putfield com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument.tester:Lcom/oracle/truffle/js/test/instrumentation/ScopeInstrumentTest$ScopeTester;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/js/test/instrumentation/ScopeInstrumentTest$TestJSScopeInstrument;
0 3 1 tester Lcom/oracle/truffle/js/test/instrumentation/ScopeInstrumentTest$ScopeTester;
MethodParameters:
Name Flags
tester
void checkSuccess(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument.reset:()V
1: ldc "Scope instrument not triggered"
aload 0
getfield com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument.count:I
ifle 2
iconst_1
goto 3
StackMap locals:
StackMap stack: java.lang.String
2: iconst_0
StackMap locals: com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument int
StackMap stack: java.lang.String int
3: invokestatic org.junit.Assert.assertTrue:(Ljava/lang/String;Z)V
4: aload 0
getfield com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument.failure:Ljava/lang/Exception;
ifnull 6
5: aload 0
getfield com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument.failure:Ljava/lang/Exception;
athrow
6: StackMap locals:
StackMap stack:
ldc "Number of tested statements"
iload 1
i2l
aload 0
getfield com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument.count:I
i2l
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/String;JJ)V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/oracle/truffle/js/test/instrumentation/ScopeInstrumentTest$TestJSScopeInstrument;
0 8 1 expectedEventCount I
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
expectedEventCount
private void reset();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument.tester:Lcom/oracle/truffle/js/test/instrumentation/ScopeInstrumentTest$ScopeTester;
1: aconst_null
putstatic com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument.instance:Lcom/oracle/truffle/js/test/instrumentation/ScopeInstrumentTest$TestJSScopeInstrument;
2: aconst_null
putstatic com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument.filter:Lcom/oracle/truffle/api/instrumentation/SourceSectionFilter;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/js/test/instrumentation/ScopeInstrumentTest$TestJSScopeInstrument;
}
SourceFile: "ScopeInstrumentTest.java"
NestHost: com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest
InnerClasses:
public final Env = com.oracle.truffle.api.instrumentation.TruffleInstrument$Env of com.oracle.truffle.api.instrumentation.TruffleInstrument
public abstract Registration = com.oracle.truffle.api.instrumentation.TruffleInstrument$Registration of com.oracle.truffle.api.instrumentation.TruffleInstrument
abstract ScopeTester = com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$ScopeTester of com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest
public TestJSScopeInstrument = com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument of com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest
com.oracle.truffle.js.test.instrumentation.ScopeInstrumentTest$TestJSScopeInstrument$1
RuntimeVisibleAnnotations:
com.oracle.truffle.api.instrumentation.TruffleInstrument$Registration(id = "TestJSScopeInstrument", services = {Ljava/lang/Object;})