public class com.oracle.truffle.js.test.tools.ParseWithArgsTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.js.test.tools.ParseWithArgsTest
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.js.test.tools.ParseWithArgsTest this
0: .line 64
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // com.oracle.truffle.js.test.tools.ParseWithArgsTest this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/test/tools/ParseWithArgsTest;
public void sourceRemainsHiddenAndProperlyNamed();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=1
start local 0 // com.oracle.truffle.js.test.tools.ParseWithArgsTest this
0: .line 67
iconst_0
anewarray java.lang.String
invokestatic com.oracle.truffle.js.test.JSTest.newContextBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
invokevirtual org.graalvm.polyglot.Context$Builder.build:()Lorg/graalvm/polyglot/Context;
astore 1 /* ctx */
start local 1 // org.graalvm.polyglot.Context ctx
1: .line 68
aload 1 /* ctx */
invokevirtual org.graalvm.polyglot.Context.getEngine:()Lorg/graalvm/polyglot/Engine;
invokevirtual org.graalvm.polyglot.Engine.getInstruments:()Ljava/util/Map;
ldc "parsingInstrument"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.graalvm.polyglot.Instrument
ldc Lcom/oracle/truffle/js/test/tools/ParseWithArgsTest$ParsingInstrument;
invokevirtual org.graalvm.polyglot.Instrument.lookup:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast com.oracle.truffle.js.test.tools.ParseWithArgsTest$ParsingInstrument
astore 2 /* inst */
start local 2 // com.oracle.truffle.js.test.tools.ParseWithArgsTest$ParsingInstrument inst
2: .line 69
aload 2 /* inst */
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
3: .line 70
aload 1 /* ctx */
ldc "js"
ldc "var x = 42; debugger; x.toString()"
invokevirtual org.graalvm.polyglot.Context.eval:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Value;
astore 3 /* x */
start local 3 // org.graalvm.polyglot.Value x
4: .line 71
ldc "42"
aload 3 /* x */
invokevirtual org.graalvm.polyglot.Value.asString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
5: .line 73
new java.lang.StringBuilder
dup
ldc "Two breaks: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2 /* inst */
getfield com.oracle.truffle.js.test.tools.ParseWithArgsTest$ParsingInstrument.sections:Ljava/util/List;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
ldc 2
aload 2 /* inst */
getfield com.oracle.truffle.js.test.tools.ParseWithArgsTest$ParsingInstrument.sections:Ljava/util/List;
invokeinterface java.util.List.size:()I
i2l
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/String;JJ)V
6: .line 74
aload 2 /* inst */
getfield com.oracle.truffle.js.test.tools.ParseWithArgsTest$ParsingInstrument.sections:Ljava/util/List;
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.api.source.SourceSection
invokevirtual com.oracle.truffle.api.source.SourceSection.getSource:()Lcom/oracle/truffle/api/source/Source;
astore 4 /* snd */
start local 4 // com.oracle.truffle.api.source.Source snd
7: .line 75
ldc "Right name"
ldc "stop.js"
aload 4 /* snd */
invokevirtual com.oracle.truffle.api.source.Source.getName:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
8: .line 76
ldc "Is internal"
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aload 4 /* snd */
invokevirtual com.oracle.truffle.api.source.Source.isInternal:()Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
9: .line 77
return
end local 4 // com.oracle.truffle.api.source.Source snd
end local 3 // org.graalvm.polyglot.Value x
end local 2 // com.oracle.truffle.js.test.tools.ParseWithArgsTest$ParsingInstrument inst
end local 1 // org.graalvm.polyglot.Context ctx
end local 0 // com.oracle.truffle.js.test.tools.ParseWithArgsTest this
LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/oracle/truffle/js/test/tools/ParseWithArgsTest;
1 10 1 ctx Lorg/graalvm/polyglot/Context;
2 10 2 inst Lcom/oracle/truffle/js/test/tools/ParseWithArgsTest$ParsingInstrument;
4 10 3 x Lorg/graalvm/polyglot/Value;
7 10 4 snd Lcom/oracle/truffle/api/source/Source;
RuntimeVisibleAnnotations:
org.junit.Test()
}
SourceFile: "ParseWithArgsTest.java"
NestMembers:
com.oracle.truffle.js.test.tools.ParseWithArgsTest$ParsingInstrument com.oracle.truffle.js.test.tools.ParseWithArgsTest$ParsingInstrument$1
InnerClasses:
public final ParsingInstrument = com.oracle.truffle.js.test.tools.ParseWithArgsTest$ParsingInstrument of com.oracle.truffle.js.test.tools.ParseWithArgsTest
public final Builder = org.graalvm.polyglot.Context$Builder of org.graalvm.polyglot.Context