public class com.oracle.truffle.api.debug.test.TimeBoxingTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.api.debug.test.TimeBoxingTest
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // com.oracle.truffle.api.debug.test.TimeBoxingTest this
0: .line 57
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // com.oracle.truffle.api.debug.test.TimeBoxingTest this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/api/debug/test/TimeBoxingTest;
public void testTimeBoxing();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=1
start local 0 // com.oracle.truffle.api.debug.test.TimeBoxingTest this
0: .line 61
iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
astore 1 /* context */
start local 1 // org.graalvm.polyglot.Context context
1: .line 62
ldc "instrumentation-test-language"
ldc "ROOT(LOOP(infinity,STATEMENT))"
ldc "NotEnoughTime"
invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
invokevirtual org.graalvm.polyglot.Source$Builder.buildLiteral:()Lorg/graalvm/polyglot/Source;
astore 2 /* source */
start local 2 // org.graalvm.polyglot.Source source
2: .line 63
aload 1 /* context */
invokevirtual org.graalvm.polyglot.Context.getEngine:()Lorg/graalvm/polyglot/Engine;
invokevirtual org.graalvm.polyglot.Engine.getInstruments:()Ljava/util/Map;
ldc "debugger"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.graalvm.polyglot.Instrument
ldc Lcom/oracle/truffle/api/debug/Debugger;
invokevirtual org.graalvm.polyglot.Instrument.lookup:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast com.oracle.truffle.api.debug.Debugger
astore 3 /* debugger */
start local 3 // com.oracle.truffle.api.debug.Debugger debugger
3: .line 65
new java.util.Timer
dup
invokespecial java.util.Timer.<init>:()V
astore 4 /* timer */
start local 4 // java.util.Timer timer
4: .line 66
aload 4 /* timer */
new com.oracle.truffle.api.debug.test.TimeBoxingTest$1
dup
aload 0 /* this */
aload 3 /* debugger */
invokespecial com.oracle.truffle.api.debug.test.TimeBoxingTest$1.<init>:(Lcom/oracle/truffle/api/debug/test/TimeBoxingTest;Lcom/oracle/truffle/api/debug/Debugger;)V
5: .line 75
lconst_0
ldc 10
6: .line 66
invokevirtual java.util.Timer.schedule:(Ljava/util/TimerTask;JJ)V
7: .line 78
aload 1 /* context */
aload 2 /* source */
invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
pop
8: .line 79
invokestatic org.junit.Assert.fail:()V
9: .line 80
goto 13
StackMap locals: com.oracle.truffle.api.debug.test.TimeBoxingTest org.graalvm.polyglot.Context org.graalvm.polyglot.Source com.oracle.truffle.api.debug.Debugger java.util.Timer
StackMap stack: org.graalvm.polyglot.PolyglotException
10: astore 5 /* error */
start local 5 // org.graalvm.polyglot.PolyglotException error
11: .line 81
aload 5 /* error */
invokevirtual org.graalvm.polyglot.PolyglotException.isCancelled:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
12: .line 82
aload 5 /* error */
invokevirtual org.graalvm.polyglot.PolyglotException.getMessage:()Ljava/lang/String;
aload 5 /* error */
invokevirtual org.graalvm.polyglot.PolyglotException.getMessage:()Ljava/lang/String;
ldc "Execution cancelled by a debugging session."
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
invokestatic org.junit.Assert.assertTrue:(Ljava/lang/String;Z)V
end local 5 // org.graalvm.polyglot.PolyglotException error
13: .line 84
StackMap locals:
StackMap stack:
aload 4 /* timer */
invokevirtual java.util.Timer.cancel:()V
14: .line 85
return
end local 4 // java.util.Timer timer
end local 3 // com.oracle.truffle.api.debug.Debugger debugger
end local 2 // org.graalvm.polyglot.Source source
end local 1 // org.graalvm.polyglot.Context context
end local 0 // com.oracle.truffle.api.debug.test.TimeBoxingTest this
LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/oracle/truffle/api/debug/test/TimeBoxingTest;
1 15 1 context Lorg/graalvm/polyglot/Context;
2 15 2 source Lorg/graalvm/polyglot/Source;
3 15 3 debugger Lcom/oracle/truffle/api/debug/Debugger;
4 15 4 timer Ljava/util/Timer;
11 13 5 error Lorg/graalvm/polyglot/PolyglotException;
Exception table:
from to target type
7 9 10 Class org.graalvm.polyglot.PolyglotException
Exceptions:
throws java.lang.Exception
RuntimeVisibleAnnotations:
org.junit.Test()
}
SourceFile: "TimeBoxingTest.java"
NestMembers:
com.oracle.truffle.api.debug.test.TimeBoxingTest$1 com.oracle.truffle.api.debug.test.TimeBoxingTest$1$1
InnerClasses:
com.oracle.truffle.api.debug.test.TimeBoxingTest$1
public Builder = org.graalvm.polyglot.Source$Builder of org.graalvm.polyglot.Source