final class com.oracle.truffle.polyglot.HostLanguage extends com.oracle.truffle.api.TruffleLanguage<com.oracle.truffle.polyglot.HostLanguage$HostContext>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.polyglot.HostLanguage
super_class: com.oracle.truffle.api.TruffleLanguage
{
private volatile com.oracle.truffle.polyglot.PolyglotEngineImpl internalEngine;
descriptor: Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$CompilationFinal()
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lcom/oracle/truffle/polyglot/HostLanguage;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic com.oracle.truffle.polyglot.HostLanguage.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.oracle.truffle.api.TruffleLanguage.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/HostLanguage;
com.oracle.truffle.polyglot.HostToGuestCodeCache getHostToGuestCache();
descriptor: ()Lcom/oracle/truffle/polyglot/HostToGuestCodeCache;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.HostLanguage.internalEngine:Lcom/oracle/truffle/polyglot/PolyglotEngineImpl;
invokevirtual com.oracle.truffle.polyglot.PolyglotEngineImpl.getHostToGuestCodeCache:()Lcom/oracle/truffle/polyglot/HostToGuestCodeCache;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/HostLanguage;
protected java.lang.Object getLanguageView(com.oracle.truffle.polyglot.HostLanguage$HostContext, java.lang.Object);
descriptor: (Lcom/oracle/truffle/polyglot/HostLanguage$HostContext;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof com.oracle.truffle.api.interop.TruffleObject
ifeq 7
1: invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
aload 2
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:(Ljava/lang/Object;)Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
astore 4
start local 4 2: getstatic com.oracle.truffle.polyglot.HostLanguage.$assertionsDisabled:Z
ifne 5
aload 4
aload 2
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.hasLanguage:(Ljava/lang/Object;)Z
ifeq 5
aload 4
aload 2
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.getLanguage:(Ljava/lang/Object;)Ljava/lang/Class;
ldc Lcom/oracle/truffle/polyglot/HostLanguage;
if_acmpne 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: com.oracle.truffle.polyglot.HostLanguage com.oracle.truffle.polyglot.HostLanguage$HostContext java.lang.Object top com.oracle.truffle.api.interop.InteropLibrary
StackMap stack: com.oracle.truffle.api.interop.UnsupportedMessageException
astore 5
start local 5 4: aload 5
invokestatic com.oracle.truffle.api.CompilerDirectives.shouldNotReachHere:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
athrow
end local 5 5: StackMap locals:
StackMap stack:
aload 2
aload 1
getfield com.oracle.truffle.polyglot.HostLanguage$HostContext.internalContext:Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
aload 4
invokestatic com.oracle.truffle.polyglot.ToHostNode.convertToObject:(Ljava/lang/Object;Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;Lcom/oracle/truffle/api/interop/InteropLibrary;)Ljava/lang/Object;
astore 3
end local 4 start local 3 6: goto 8
end local 3 7: StackMap locals: com.oracle.truffle.polyglot.HostLanguage com.oracle.truffle.polyglot.HostLanguage$HostContext java.lang.Object
StackMap stack:
aload 2
astore 3
start local 3 8: StackMap locals: java.lang.Object
StackMap stack:
aload 3
aload 1
getfield com.oracle.truffle.polyglot.HostLanguage$HostContext.internalContext:Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;
invokestatic com.oracle.truffle.polyglot.HostObject.forObject:(Ljava/lang/Object;Lcom/oracle/truffle/polyglot/PolyglotLanguageContext;)Lcom/oracle/truffle/polyglot/HostObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/truffle/polyglot/HostLanguage;
0 9 1 context Lcom/oracle/truffle/polyglot/HostLanguage$HostContext;
0 9 2 value Ljava/lang/Object;
6 7 3 wrapped Ljava/lang/Object;
8 9 3 wrapped Ljava/lang/Object;
2 6 4 lib Lcom/oracle/truffle/api/interop/InteropLibrary;
4 5 5 e Lcom/oracle/truffle/api/interop/UnsupportedMessageException;
Exception table:
from to target type
2 3 3 Class com.oracle.truffle.api.interop.UnsupportedMessageException
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
context
value
protected com.oracle.truffle.api.CallTarget parse(com.oracle.truffle.api.TruffleLanguage$ParsingRequest);
descriptor: (Lcom/oracle/truffle/api/TruffleLanguage$ParsingRequest;)Lcom/oracle/truffle/api/CallTarget;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.oracle.truffle.api.TruffleLanguage$ParsingRequest.getSource:()Lcom/oracle/truffle/api/source/Source;
invokevirtual com.oracle.truffle.api.source.Source.getCharacters:()Ljava/lang/CharSequence;
invokeinterface java.lang.CharSequence.toString:()Ljava/lang/String;
astore 2
start local 2 1: invokestatic com.oracle.truffle.api.Truffle.getRuntime:()Lcom/oracle/truffle/api/TruffleRuntime;
new com.oracle.truffle.polyglot.HostLanguage$1
dup
aload 0
aload 0
aload 2
invokespecial com.oracle.truffle.polyglot.HostLanguage$1.<init>:(Lcom/oracle/truffle/polyglot/HostLanguage;Lcom/oracle/truffle/api/TruffleLanguage;Ljava/lang/String;)V
invokeinterface com.oracle.truffle.api.TruffleRuntime.createCallTarget:(Lcom/oracle/truffle/api/nodes/RootNode;)Lcom/oracle/truffle/api/RootCallTarget;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/polyglot/HostLanguage;
0 2 1 request Lcom/oracle/truffle/api/TruffleLanguage$ParsingRequest;
1 2 2 sourceString Ljava/lang/String;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
request
protected void disposeContext(com.oracle.truffle.polyglot.HostLanguage$HostContext);
descriptor: (Lcom/oracle/truffle/polyglot/HostLanguage$HostContext;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
getfield com.oracle.truffle.polyglot.HostLanguage$HostContext.classloader:Lcom/oracle/truffle/polyglot/HostClassLoader;
astore 2
start local 2 1: aload 2
ifnull 6
2: aload 2
invokevirtual com.oracle.truffle.polyglot.HostClassLoader.close:()V
3: goto 5
StackMap locals: com.oracle.truffle.polyglot.HostLanguage com.oracle.truffle.polyglot.HostLanguage$HostContext com.oracle.truffle.polyglot.HostClassLoader
StackMap stack: java.io.IOException
4: pop
5: StackMap locals:
StackMap stack:
aload 1
aconst_null
putfield com.oracle.truffle.polyglot.HostLanguage$HostContext.classloader:Lcom/oracle/truffle/polyglot/HostClassLoader;
6: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial com.oracle.truffle.api.TruffleLanguage.disposeContext:(Ljava/lang/Object;)V
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/oracle/truffle/polyglot/HostLanguage;
0 8 1 context Lcom/oracle/truffle/polyglot/HostLanguage$HostContext;
1 8 2 cl Lcom/oracle/truffle/polyglot/HostClassLoader;
Exception table:
from to target type
2 3 4 Class java.io.IOException
MethodParameters:
Name Flags
context
protected com.oracle.truffle.polyglot.HostLanguage$HostContext createContext(com.oracle.truffle.api.TruffleLanguage$Env);
descriptor: (Lcom/oracle/truffle/api/TruffleLanguage$Env;)Lcom/oracle/truffle/polyglot/HostLanguage$HostContext;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new com.oracle.truffle.polyglot.HostLanguage$HostContext
dup
aload 0
invokespecial com.oracle.truffle.polyglot.HostLanguage$HostContext.<init>:(Lcom/oracle/truffle/polyglot/HostLanguage;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/HostLanguage;
0 1 1 env Lcom/oracle/truffle/api/TruffleLanguage$Env;
MethodParameters:
Name Flags
env
protected java.lang.Object getScope(com.oracle.truffle.polyglot.HostLanguage$HostContext);
descriptor: (Lcom/oracle/truffle/polyglot/HostLanguage$HostContext;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield com.oracle.truffle.polyglot.HostLanguage$HostContext.topScope:Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/HostLanguage;
0 1 1 context Lcom/oracle/truffle/polyglot/HostLanguage$HostContext;
MethodParameters:
Name Flags
context
protected boolean isThreadAccessAllowed(java.lang.Thread, boolean);
descriptor: (Ljava/lang/Thread;Z)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/polyglot/HostLanguage;
0 1 1 thread Ljava/lang/Thread;
0 1 2 singleThreaded Z
MethodParameters:
Name Flags
thread
singleThreaded
protected java.lang.Object createContext(com.oracle.truffle.api.TruffleLanguage$Env);
descriptor: (Lcom/oracle/truffle/api/TruffleLanguage$Env;)Ljava/lang/Object;
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual com.oracle.truffle.polyglot.HostLanguage.createContext:(Lcom/oracle/truffle/api/TruffleLanguage$Env;)Lcom/oracle/truffle/polyglot/HostLanguage$HostContext;
areturn
LocalVariableTable:
Start End Slot Name Signature
protected java.lang.Object getLanguageView(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast com.oracle.truffle.polyglot.HostLanguage$HostContext
aload 2
invokevirtual com.oracle.truffle.polyglot.HostLanguage.getLanguageView:(Lcom/oracle/truffle/polyglot/HostLanguage$HostContext;Ljava/lang/Object;)Ljava/lang/Object;
areturn
LocalVariableTable:
Start End Slot Name Signature
protected void disposeContext(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast com.oracle.truffle.polyglot.HostLanguage$HostContext
invokevirtual com.oracle.truffle.polyglot.HostLanguage.disposeContext:(Lcom/oracle/truffle/polyglot/HostLanguage$HostContext;)V
return
LocalVariableTable:
Start End Slot Name Signature
protected java.lang.Object getScope(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast com.oracle.truffle.polyglot.HostLanguage$HostContext
invokevirtual com.oracle.truffle.polyglot.HostLanguage.getScope:(Lcom/oracle/truffle/polyglot/HostLanguage$HostContext;)Ljava/lang/Object;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Lcom/oracle/truffle/api/TruffleLanguage<Lcom/oracle/truffle/polyglot/HostLanguage$HostContext;>;
SourceFile: "HostLanguage.java"
NestMembers:
com.oracle.truffle.polyglot.HostLanguage$1 com.oracle.truffle.polyglot.HostLanguage$ClassNamesObject com.oracle.truffle.polyglot.HostLanguage$HostContext com.oracle.truffle.polyglot.HostLanguage$HostContext$1 com.oracle.truffle.polyglot.HostLanguage$HostLanguageException com.oracle.truffle.polyglot.HostLanguage$TopScopeObject
InnerClasses:
public abstract CompilationFinal = com.oracle.truffle.api.CompilerDirectives$CompilationFinal of com.oracle.truffle.api.CompilerDirectives
public abstract TruffleBoundary = com.oracle.truffle.api.CompilerDirectives$TruffleBoundary of com.oracle.truffle.api.CompilerDirectives
public final Env = com.oracle.truffle.api.TruffleLanguage$Env of com.oracle.truffle.api.TruffleLanguage
public final ParsingRequest = com.oracle.truffle.api.TruffleLanguage$ParsingRequest of com.oracle.truffle.api.TruffleLanguage
com.oracle.truffle.polyglot.HostLanguage$1
final ClassNamesObject = com.oracle.truffle.polyglot.HostLanguage$ClassNamesObject of com.oracle.truffle.polyglot.HostLanguage
final HostContext = com.oracle.truffle.polyglot.HostLanguage$HostContext of com.oracle.truffle.polyglot.HostLanguage
private HostLanguageException = com.oracle.truffle.polyglot.HostLanguage$HostLanguageException of com.oracle.truffle.polyglot.HostLanguage
final TopScopeObject = com.oracle.truffle.polyglot.HostLanguage$TopScopeObject of com.oracle.truffle.polyglot.HostLanguage