public class com.oracle.truffle.api.benchmark.EngineBenchmark$SourceLanguageCreate
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.api.benchmark.EngineBenchmark$SourceLanguageCreate
super_class: java.lang.Object
{
com.oracle.truffle.api.TruffleFile file;
descriptor: Lcom/oracle/truffle/api/TruffleFile;
flags: (0x0000)
final org.graalvm.polyglot.Context context;
descriptor: Lorg/graalvm/polyglot/Context;
flags: (0x0010) ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 // com.oracle.truffle.api.benchmark.EngineBenchmark$SourceLanguageCreate this
0: .line 408
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 410
aload 0 /* this */
iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
iconst_1
invokevirtual org.graalvm.polyglot.Context$Builder.allowIO:(Z)Lorg/graalvm/polyglot/Context$Builder;
invokevirtual org.graalvm.polyglot.Context$Builder.build:()Lorg/graalvm/polyglot/Context;
putfield com.oracle.truffle.api.benchmark.EngineBenchmark$SourceLanguageCreate.context:Lorg/graalvm/polyglot/Context;
2: .line 411
aload 0 /* this */
getfield com.oracle.truffle.api.benchmark.EngineBenchmark$SourceLanguageCreate.context:Lorg/graalvm/polyglot/Context;
ldc "benchmark-test-language"
invokevirtual org.graalvm.polyglot.Context.initialize:(Ljava/lang/String;)Z
pop
3: .line 412
aload 0 /* this */
getfield com.oracle.truffle.api.benchmark.EngineBenchmark$SourceLanguageCreate.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.enter:()V
4: .line 413
ldc "embedder_create"
ldc "js"
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createTempFile:(Ljava/lang/String;Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
astore 1 /* p */
start local 1 // java.nio.file.Path p
5: .line 414
aload 1 /* p */
ldc "Foobarbazz"
invokevirtual java.lang.String.getBytes:()[B
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.write:(Ljava/nio/file/Path;[B[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
pop
6: .line 415
aload 1 /* p */
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.deleteOnExit:()V
7: .line 416
aload 0 /* this */
invokestatic com.oracle.truffle.api.benchmark.EngineBenchmark$BenchmarkTestLanguage.getCurrentEnv:()Lcom/oracle/truffle/api/TruffleLanguage$Env;
aload 1 /* p */
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.getInternalTruffleFile:(Ljava/lang/String;)Lcom/oracle/truffle/api/TruffleFile;
putfield com.oracle.truffle.api.benchmark.EngineBenchmark$SourceLanguageCreate.file:Lcom/oracle/truffle/api/TruffleFile;
end local 1 // java.nio.file.Path p
8: .line 417
goto 11
StackMap locals: com.oracle.truffle.api.benchmark.EngineBenchmark$SourceLanguageCreate
StackMap stack: java.io.IOException
9: astore 1 /* e */
start local 1 // java.io.IOException e
10: .line 418
new java.lang.AssertionError
dup
aload 1 /* e */
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 1 // java.io.IOException e
11: .line 420
StackMap locals:
StackMap stack:
return
end local 0 // com.oracle.truffle.api.benchmark.EngineBenchmark$SourceLanguageCreate this
LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/oracle/truffle/api/benchmark/EngineBenchmark$SourceLanguageCreate;
5 8 1 p Ljava/nio/file/Path;
10 11 1 e Ljava/io/IOException;
Exception table:
from to target type
1 8 9 Class java.io.IOException
public void tearDown();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // com.oracle.truffle.api.benchmark.EngineBenchmark$SourceLanguageCreate this
0: .line 424
aload 0 /* this */
getfield com.oracle.truffle.api.benchmark.EngineBenchmark$SourceLanguageCreate.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.leave:()V
1: .line 425
aload 0 /* this */
getfield com.oracle.truffle.api.benchmark.EngineBenchmark$SourceLanguageCreate.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
2: .line 426
return
end local 0 // com.oracle.truffle.api.benchmark.EngineBenchmark$SourceLanguageCreate this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/api/benchmark/EngineBenchmark$SourceLanguageCreate;
RuntimeVisibleAnnotations:
org.openjdk.jmh.annotations.TearDown()
}
SourceFile: "EngineBenchmark.java"
NestHost: com.oracle.truffle.api.benchmark.EngineBenchmark
InnerClasses:
public final Env = com.oracle.truffle.api.TruffleLanguage$Env of com.oracle.truffle.api.TruffleLanguage
public BenchmarkTestLanguage = com.oracle.truffle.api.benchmark.EngineBenchmark$BenchmarkTestLanguage of com.oracle.truffle.api.benchmark.EngineBenchmark
public SourceLanguageCreate = com.oracle.truffle.api.benchmark.EngineBenchmark$SourceLanguageCreate of com.oracle.truffle.api.benchmark.EngineBenchmark
public final Builder = org.graalvm.polyglot.Context$Builder of org.graalvm.polyglot.Context
RuntimeVisibleAnnotations:
org.openjdk.jmh.annotations.State(value = org.openjdk.jmh.annotations.Scope.Thread:Lorg/openjdk/jmh/annotations/Scope;)