public class com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest extends com.oracle.truffle.api.test.polyglot.AbstractPolyglotTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest
super_class: com.oracle.truffle.api.test.polyglot.AbstractPolyglotTest
{
static final java.lang.String DEFAULT_OPTION_VALUE;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "default"
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.oracle.truffle.api.test.polyglot.AbstractPolyglotTest.<init>:()V
1: aload 0
iconst_0
putfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.cleanupOnSetup:Z
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/api/instrumentation/test/InstrumentOptionsTest;
public void testOptions();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
new com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument
dup
invokespecial com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument.<init>:()V
invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.setupEnv:(Lorg/graalvm/polyglot/Context$Builder;Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;)V
1: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.languageEnv:Lcom/oracle/truffle/api/TruffleLanguage$Env;
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.getContext:()Lcom/oracle/truffle/api/TruffleContext;
astore 1
start local 1 2: ldc "default"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getOptions:()Lorg/graalvm/options/OptionValues;
getstatic com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$EngineOptions.EngineOption1:Lorg/graalvm/options/OptionKey;
invokeinterface org.graalvm.options.OptionValues.get:(Lorg/graalvm/options/OptionKey;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
3: ldc "default"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getOptions:(Lcom/oracle/truffle/api/TruffleContext;)Lorg/graalvm/options/OptionValues;
getstatic com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$ContextOptions.ContextOption1:Lorg/graalvm/options/OptionKey;
invokeinterface org.graalvm.options.OptionValues.get:(Lorg/graalvm/options/OptionKey;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
4: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
5: aload 0
iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
6: ldc "proxyInstrument.EngineOption1"
ldc "engineValue"
invokevirtual org.graalvm.polyglot.Context$Builder.option:(Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
7: ldc "proxyInstrument.ContextOption1"
ldc "contextValue"
invokevirtual org.graalvm.polyglot.Context$Builder.option:(Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
new com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument
dup
invokespecial com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument.<init>:()V
8: invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.setupEnv:(Lorg/graalvm/polyglot/Context$Builder;Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;)V
9: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.languageEnv:Lcom/oracle/truffle/api/TruffleLanguage$Env;
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.getContext:()Lcom/oracle/truffle/api/TruffleContext;
astore 1
10: ldc "engineValue"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getOptions:()Lorg/graalvm/options/OptionValues;
getstatic com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$EngineOptions.EngineOption1:Lorg/graalvm/options/OptionKey;
invokeinterface org.graalvm.options.OptionValues.get:(Lorg/graalvm/options/OptionKey;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
11: ldc "contextValue"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getOptions:(Lcom/oracle/truffle/api/TruffleContext;)Lorg/graalvm/options/OptionValues;
getstatic com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$ContextOptions.ContextOption1:Lorg/graalvm/options/OptionKey;
invokeinterface org.graalvm.options.OptionValues.get:(Lorg/graalvm/options/OptionKey;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
12: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
13: aload 0
iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
ldc "proxyInstrument.ContextOption1"
ldc "contextValue"
invokevirtual org.graalvm.polyglot.Context$Builder.option:(Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
new com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument
dup
invokespecial com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument.<init>:()V
invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.setupEnv:(Lorg/graalvm/polyglot/Context$Builder;Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;)V
14: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.languageEnv:Lcom/oracle/truffle/api/TruffleLanguage$Env;
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.getContext:()Lcom/oracle/truffle/api/TruffleContext;
astore 1
15: ldc "default"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getOptions:()Lorg/graalvm/options/OptionValues;
getstatic com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$EngineOptions.EngineOption1:Lorg/graalvm/options/OptionKey;
invokeinterface org.graalvm.options.OptionValues.get:(Lorg/graalvm/options/OptionKey;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
16: ldc "contextValue"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getOptions:(Lcom/oracle/truffle/api/TruffleContext;)Lorg/graalvm/options/OptionValues;
getstatic com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$ContextOptions.ContextOption1:Lorg/graalvm/options/OptionKey;
invokeinterface org.graalvm.options.OptionValues.get:(Lorg/graalvm/options/OptionKey;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
17: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
18: aload 0
iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
ldc "proxyInstrument.EngineOption1"
ldc "engineValue"
invokevirtual org.graalvm.polyglot.Context$Builder.option:(Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
new com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument
dup
invokespecial com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument.<init>:()V
invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.setupEnv:(Lorg/graalvm/polyglot/Context$Builder;Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;)V
19: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.languageEnv:Lcom/oracle/truffle/api/TruffleLanguage$Env;
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.getContext:()Lcom/oracle/truffle/api/TruffleContext;
astore 1
20: ldc "engineValue"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getOptions:()Lorg/graalvm/options/OptionValues;
getstatic com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$EngineOptions.EngineOption1:Lorg/graalvm/options/OptionKey;
invokeinterface org.graalvm.options.OptionValues.get:(Lorg/graalvm/options/OptionKey;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
21: ldc "default"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getOptions:(Lcom/oracle/truffle/api/TruffleContext;)Lorg/graalvm/options/OptionValues;
getstatic com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$ContextOptions.ContextOption1:Lorg/graalvm/options/OptionKey;
invokeinterface org.graalvm.options.OptionValues.get:(Lorg/graalvm/options/OptionKey;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
22: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
23: invokestatic org.graalvm.polyglot.Engine.newBuilder:()Lorg/graalvm/polyglot/Engine$Builder;
ldc "proxyInstrument.EngineOption1"
ldc "engineValue"
invokevirtual org.graalvm.polyglot.Engine$Builder.option:(Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/polyglot/Engine$Builder;
invokevirtual org.graalvm.polyglot.Engine$Builder.build:()Lorg/graalvm/polyglot/Engine;
astore 2
start local 2 24: aload 0
iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
aload 2
invokevirtual org.graalvm.polyglot.Context$Builder.engine:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/Context$Builder;
ldc "proxyInstrument.ContextOption1"
ldc "contextValue1"
invokevirtual org.graalvm.polyglot.Context$Builder.option:(Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
new com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument
dup
invokespecial com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument.<init>:()V
invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.setupEnv:(Lorg/graalvm/polyglot/Context$Builder;Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;)V
25: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.languageEnv:Lcom/oracle/truffle/api/TruffleLanguage$Env;
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.getContext:()Lcom/oracle/truffle/api/TruffleContext;
astore 1
26: ldc "engineValue"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getOptions:()Lorg/graalvm/options/OptionValues;
getstatic com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$EngineOptions.EngineOption1:Lorg/graalvm/options/OptionKey;
invokeinterface org.graalvm.options.OptionValues.get:(Lorg/graalvm/options/OptionKey;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
27: ldc "contextValue1"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getOptions:(Lcom/oracle/truffle/api/TruffleContext;)Lorg/graalvm/options/OptionValues;
getstatic com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$ContextOptions.ContextOption1:Lorg/graalvm/options/OptionKey;
invokeinterface org.graalvm.options.OptionValues.get:(Lorg/graalvm/options/OptionKey;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
28: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
29: aload 0
iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
aload 2
invokevirtual org.graalvm.polyglot.Context$Builder.engine:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/Context$Builder;
ldc "proxyInstrument.ContextOption1"
ldc "contextValue2"
invokevirtual org.graalvm.polyglot.Context$Builder.option:(Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
new com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument
dup
invokespecial com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument.<init>:()V
invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.setupEnv:(Lorg/graalvm/polyglot/Context$Builder;Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;)V
30: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.languageEnv:Lcom/oracle/truffle/api/TruffleLanguage$Env;
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.getContext:()Lcom/oracle/truffle/api/TruffleContext;
astore 1
31: ldc "engineValue"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getOptions:()Lorg/graalvm/options/OptionValues;
getstatic com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$EngineOptions.EngineOption1:Lorg/graalvm/options/OptionKey;
invokeinterface org.graalvm.options.OptionValues.get:(Lorg/graalvm/options/OptionKey;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
32: ldc "contextValue2"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getOptions:(Lcom/oracle/truffle/api/TruffleContext;)Lorg/graalvm/options/OptionValues;
getstatic com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$ContextOptions.ContextOption1:Lorg/graalvm/options/OptionKey;
invokeinterface org.graalvm.options.OptionValues.get:(Lorg/graalvm/options/OptionKey;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
33: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
34: aload 2
invokevirtual org.graalvm.polyglot.Engine.close:()V
35: invokestatic org.graalvm.polyglot.Engine.newBuilder:()Lorg/graalvm/polyglot/Engine$Builder;
36: ldc "proxyInstrument.ContextOption1"
ldc "contextValue"
invokevirtual org.graalvm.polyglot.Engine$Builder.option:(Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/polyglot/Engine$Builder;
37: ldc "proxyInstrument.EngineOption1"
ldc "engineValue"
invokevirtual org.graalvm.polyglot.Engine$Builder.option:(Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/polyglot/Engine$Builder;
invokevirtual org.graalvm.polyglot.Engine$Builder.build:()Lorg/graalvm/polyglot/Engine;
38: astore 2
39: aload 0
iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
aload 2
invokevirtual org.graalvm.polyglot.Context$Builder.engine:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/Context$Builder;
new com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument
dup
invokespecial com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument.<init>:()V
invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.setupEnv:(Lorg/graalvm/polyglot/Context$Builder;Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;)V
40: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.languageEnv:Lcom/oracle/truffle/api/TruffleLanguage$Env;
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.getContext:()Lcom/oracle/truffle/api/TruffleContext;
astore 1
41: ldc "engineValue"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getOptions:()Lorg/graalvm/options/OptionValues;
getstatic com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$EngineOptions.EngineOption1:Lorg/graalvm/options/OptionKey;
invokeinterface org.graalvm.options.OptionValues.get:(Lorg/graalvm/options/OptionKey;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
42: ldc "contextValue"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getOptions:(Lcom/oracle/truffle/api/TruffleContext;)Lorg/graalvm/options/OptionValues;
getstatic com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$ContextOptions.ContextOption1:Lorg/graalvm/options/OptionKey;
invokeinterface org.graalvm.options.OptionValues.get:(Lorg/graalvm/options/OptionKey;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
43: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
44: aload 0
iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
aload 2
invokevirtual org.graalvm.polyglot.Context$Builder.engine:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/Context$Builder;
ldc "proxyInstrument.ContextOption1"
ldc "contextValueOverride"
invokevirtual org.graalvm.polyglot.Context$Builder.option:(Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
new com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument
dup
invokespecial com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument.<init>:()V
invokevirtual com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.setupEnv:(Lorg/graalvm/polyglot/Context$Builder;Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;)V
45: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.languageEnv:Lcom/oracle/truffle/api/TruffleLanguage$Env;
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.getContext:()Lcom/oracle/truffle/api/TruffleContext;
astore 1
46: ldc "engineValue"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getOptions:()Lorg/graalvm/options/OptionValues;
getstatic com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$EngineOptions.EngineOption1:Lorg/graalvm/options/OptionKey;
invokeinterface org.graalvm.options.OptionValues.get:(Lorg/graalvm/options/OptionKey;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
47: ldc "contextValueOverride"
aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
aload 1
invokevirtual com.oracle.truffle.api.instrumentation.TruffleInstrument$Env.getOptions:(Lcom/oracle/truffle/api/TruffleContext;)Lorg/graalvm/options/OptionValues;
getstatic com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$ContextOptions.ContextOption1:Lorg/graalvm/options/OptionKey;
invokeinterface org.graalvm.options.OptionValues.get:(Lorg/graalvm/options/OptionKey;)Ljava/lang/Object;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
48: aload 0
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.context:Lorg/graalvm/polyglot/Context;
invokevirtual org.graalvm.polyglot.Context.close:()V
49: aload 2
invokevirtual org.graalvm.polyglot.Engine.close:()V
50: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 51 0 this Lcom/oracle/truffle/api/instrumentation/test/InstrumentOptionsTest;
2 51 1 tc Lcom/oracle/truffle/api/TruffleContext;
24 51 2 engine Lorg/graalvm/polyglot/Engine;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testInitializeByContextOption();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: new com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument
dup
invokespecial com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument.<init>:()V
astore 1
start local 1 1: aload 1
invokestatic com.oracle.truffle.api.test.polyglot.ProxyInstrument.setDelegate:(Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;)Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;
pop
2: invokestatic org.graalvm.polyglot.Engine.create:()Lorg/graalvm/polyglot/Engine;
astore 2
start local 2 3: iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
aload 2
invokevirtual org.graalvm.polyglot.Context$Builder.engine:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/Context$Builder;
ldc "proxyInstrument.ContextOption1"
ldc "contextValue"
invokevirtual org.graalvm.polyglot.Context$Builder.option:(Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
invokevirtual org.graalvm.polyglot.Context$Builder.build:()Lorg/graalvm/polyglot/Context;
astore 3
start local 3 4: aload 1
getfield com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument.created:Z
invokestatic org.junit.Assert.assertTrue:(Z)V
5: aload 3
invokevirtual org.graalvm.polyglot.Context.close:()V
6: aload 2
invokevirtual org.graalvm.polyglot.Engine.close:()V
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/oracle/truffle/api/instrumentation/test/InstrumentOptionsTest;
1 8 1 instrument Lcom/oracle/truffle/api/instrumentation/test/InstrumentOptionsTest$TestInstrument;
3 8 2 engine Lorg/graalvm/polyglot/Engine;
4 8 3 c Lorg/graalvm/polyglot/Context;
RuntimeVisibleAnnotations:
org.junit.Test()
public void testInvalidOptions();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$InvalidInstrument
dup
invokespecial com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$InvalidInstrument.<init>:()V
invokestatic com.oracle.truffle.api.test.polyglot.ProxyInstrument.setDelegate:(Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;)Lcom/oracle/truffle/api/test/polyglot/ProxyInstrument;
pop
1: iconst_0
anewarray java.lang.String
invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
ldc "proxyInstrument.ContextOption1"
ldc "contextValue"
invokevirtual org.graalvm.polyglot.Context$Builder.option:(Ljava/lang/String;Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
astore 1
start local 1 2: aload 1
invokedynamic call(Lorg/graalvm/polyglot/Context$Builder;)Ljava/util/concurrent/Callable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
com/oracle/truffle/api/instrumentation/test/InstrumentOptionsTest.lambda$0(Lorg/graalvm/polyglot/Context$Builder;)Ljava/lang/Object; (6)
()Ljava/lang/Object;
ldc Lorg/graalvm/polyglot/PolyglotException;
invokedynamic accept()Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
com/oracle/truffle/api/instrumentation/test/InstrumentOptionsTest.lambda$1(Lorg/graalvm/polyglot/PolyglotException;)V (6)
(Lorg/graalvm/polyglot/PolyglotException;)V
invokestatic com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest.assertFails:(Ljava/util/concurrent/Callable;Ljava/lang/Class;Ljava/util/function/Consumer;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/api/instrumentation/test/InstrumentOptionsTest;
2 4 1 contextBuilder Lorg/graalvm/polyglot/Context$Builder;
RuntimeVisibleAnnotations:
org.junit.Test()
private static java.lang.Object lambda$0(org.graalvm.polyglot.Context$Builder);
descriptor: (Lorg/graalvm/polyglot/Context$Builder;)Ljava/lang/Object;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.graalvm.polyglot.Context$Builder.build:()Lorg/graalvm/polyglot/Context;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
private static void lambda$1(org.graalvm.polyglot.PolyglotException);
descriptor: (Lorg/graalvm/polyglot/PolyglotException;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.graalvm.polyglot.PolyglotException.isInternalError:()Z
invokestatic org.junit.Assert.assertTrue:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 e Lorg/graalvm/polyglot/PolyglotException;
}
SourceFile: "InstrumentOptionsTest.java"
NestMembers:
com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$ContextOptions com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$EngineOptions com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$InvalidInstrument com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument
InnerClasses:
public final Env = com.oracle.truffle.api.TruffleLanguage$Env of com.oracle.truffle.api.TruffleLanguage
public final Env = com.oracle.truffle.api.instrumentation.TruffleInstrument$Env of com.oracle.truffle.api.instrumentation.TruffleInstrument
ContextOptions = com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$ContextOptions of com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest
EngineOptions = com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$EngineOptions of com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest
InvalidInstrument = com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$InvalidInstrument of com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest
TestInstrument = com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest$TestInstrument of com.oracle.truffle.api.instrumentation.test.InstrumentOptionsTest
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Builder = org.graalvm.polyglot.Context$Builder of org.graalvm.polyglot.Context
public final Builder = org.graalvm.polyglot.Engine$Builder of org.graalvm.polyglot.Engine