public final class jdk.nashorn.api.scripting.NashornScriptEngine extends javax.script.AbstractScriptEngine implements javax.script.Compilable, javax.script.Invocable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.api.scripting.NashornScriptEngine
super_class: javax.script.AbstractScriptEngine
{
public static final java.lang.String NASHORN_GLOBAL;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "nashorn.global"
private static final java.security.AccessControlContext CREATE_CONTEXT_ACC_CTXT;
descriptor: Ljava/security/AccessControlContext;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.security.AccessControlContext CREATE_GLOBAL_ACC_CTXT;
descriptor: Ljava/security/AccessControlContext;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final javax.script.ScriptEngineFactory factory;
descriptor: Ljavax/script/ScriptEngineFactory;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.nashorn.internal.runtime.Context nashornContext;
descriptor: Ljdk/nashorn/internal/runtime/Context;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean _global_per_engine;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.nashorn.internal.objects.Global global;
descriptor: Ljdk/nashorn/internal/objects/Global;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final java.lang.String MESSAGES_RESOURCE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "jdk.nashorn.api.scripting.resources.Messages"
private static final java.util.ResourceBundle MESSAGES_BUNDLE;
descriptor: Ljava/util/ResourceBundle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
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=2, locals=0, args_size=0
0: ldc Ljdk/nashorn/api/scripting/NashornScriptEngine;
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 jdk.nashorn.api.scripting.NashornScriptEngine.$assertionsDisabled:Z
3: ldc "nashorn.createContext"
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.createPermAccCtxt:(Ljava/lang/String;)Ljava/security/AccessControlContext;
putstatic jdk.nashorn.api.scripting.NashornScriptEngine.CREATE_CONTEXT_ACC_CTXT:Ljava/security/AccessControlContext;
4: ldc "nashorn.createGlobal"
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.createPermAccCtxt:(Ljava/lang/String;)Ljava/security/AccessControlContext;
putstatic jdk.nashorn.api.scripting.NashornScriptEngine.CREATE_GLOBAL_ACC_CTXT:Ljava/security/AccessControlContext;
5: ldc "jdk.nashorn.api.scripting.resources.Messages"
invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;Ljava/util/Locale;)Ljava/util/ResourceBundle;
putstatic jdk.nashorn.api.scripting.NashornScriptEngine.MESSAGES_BUNDLE:Ljava/util/ResourceBundle;
6: return
LocalVariableTable:
Start End Slot Name Signature
private static java.security.AccessControlContext createPermAccCtxt(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/security/AccessControlContext;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=9, locals=2, args_size=1
start local 0 0: new java.security.Permissions
dup
invokespecial java.security.Permissions.<init>:()V
astore 1
start local 1 1: aload 1
new java.lang.RuntimePermission
dup
aload 0
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
invokevirtual java.security.Permissions.add:(Ljava/security/Permission;)V
2: new java.security.AccessControlContext
dup
iconst_1
anewarray java.security.ProtectionDomain
dup
iconst_0
new java.security.ProtectionDomain
dup
aconst_null
aload 1
invokespecial java.security.ProtectionDomain.<init>:(Ljava/security/CodeSource;Ljava/security/PermissionCollection;)V
aastore
invokespecial java.security.AccessControlContext.<init>:([Ljava/security/ProtectionDomain;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 permName Ljava/lang/String;
1 3 1 perms Ljava/security/Permissions;
MethodParameters:
Name Flags
permName final
private static java.lang.String getMessage(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
flags: (0x008a) ACC_PRIVATE, ACC_STATIC, ACC_VARARGS
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: new java.text.MessageFormat
dup
getstatic jdk.nashorn.api.scripting.NashornScriptEngine.MESSAGES_BUNDLE:Ljava/util/ResourceBundle;
aload 0
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.text.MessageFormat.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.text.MessageFormat.format:(Ljava/lang/Object;)Ljava/lang/String;
1: areturn
2: StackMap locals:
StackMap stack: java.util.MissingResourceException
pop
3: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "no message resource found for message id: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 msgId Ljava/lang/String;
0 4 1 args [Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.util.MissingResourceException
MethodParameters:
Name Flags
msgId final
args final
void <init>(jdk.nashorn.api.scripting.NashornScriptEngineFactory, java.lang.String[], java.lang.ClassLoader, jdk.nashorn.api.scripting.ClassFilter);
descriptor: (Ljdk/nashorn/api/scripting/NashornScriptEngineFactory;[Ljava/lang/String;Ljava/lang/ClassLoader;Ljdk/nashorn/api/scripting/ClassFilter;)V
flags: (0x0000)
Code:
stack=8, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial javax.script.AbstractScriptEngine.<init>:()V
1: getstatic jdk.nashorn.api.scripting.NashornScriptEngine.$assertionsDisabled:Z
ifne 2
aload 2
ifnonnull 2
new java.lang.AssertionError
dup
ldc "null argument array"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals: jdk.nashorn.api.scripting.NashornScriptEngine jdk.nashorn.api.scripting.NashornScriptEngineFactory java.lang.String[] java.lang.ClassLoader jdk.nashorn.api.scripting.ClassFilter
StackMap stack:
aload 0
aload 1
putfield jdk.nashorn.api.scripting.NashornScriptEngine.factory:Ljavax/script/ScriptEngineFactory;
3: new jdk.nashorn.internal.runtime.options.Options
dup
ldc "nashorn"
invokespecial jdk.nashorn.internal.runtime.options.Options.<init>:(Ljava/lang/String;)V
astore 5
start local 5 4: aload 5
aload 2
invokevirtual jdk.nashorn.internal.runtime.options.Options.process:([Ljava/lang/String;)V
5: new jdk.nashorn.internal.runtime.Context$ThrowErrorManager
dup
invokespecial jdk.nashorn.internal.runtime.Context$ThrowErrorManager.<init>:()V
astore 6
start local 6 6: aload 0
new jdk.nashorn.api.scripting.NashornScriptEngine$1
dup
aload 0
aload 5
aload 6
aload 3
aload 4
invokespecial jdk.nashorn.api.scripting.NashornScriptEngine$1.<init>:(Ljdk/nashorn/api/scripting/NashornScriptEngine;Ljdk/nashorn/internal/runtime/options/Options;Ljdk/nashorn/internal/runtime/ErrorManager;Ljava/lang/ClassLoader;Ljdk/nashorn/api/scripting/ClassFilter;)V
7: getstatic jdk.nashorn.api.scripting.NashornScriptEngine.CREATE_CONTEXT_ACC_CTXT:Ljava/security/AccessControlContext;
8: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
checkcast jdk.nashorn.internal.runtime.Context
putfield jdk.nashorn.api.scripting.NashornScriptEngine.nashornContext:Ljdk/nashorn/internal/runtime/Context;
9: aload 0
aload 0
getfield jdk.nashorn.api.scripting.NashornScriptEngine.nashornContext:Ljdk/nashorn/internal/runtime/Context;
invokevirtual jdk.nashorn.internal.runtime.Context.getEnv:()Ljdk/nashorn/internal/runtime/ScriptEnvironment;
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._global_per_engine:Z
putfield jdk.nashorn.api.scripting.NashornScriptEngine._global_per_engine:Z
10: aload 0
aload 0
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.createNashornGlobal:()Ljdk/nashorn/internal/objects/Global;
putfield jdk.nashorn.api.scripting.NashornScriptEngine.global:Ljdk/nashorn/internal/objects/Global;
11: aload 0
getfield jdk.nashorn.api.scripting.NashornScriptEngine.context:Ljavax/script/ScriptContext;
new jdk.nashorn.api.scripting.ScriptObjectMirror
dup
aload 0
getfield jdk.nashorn.api.scripting.NashornScriptEngine.global:Ljdk/nashorn/internal/objects/Global;
aload 0
getfield jdk.nashorn.api.scripting.NashornScriptEngine.global:Ljdk/nashorn/internal/objects/Global;
invokespecial jdk.nashorn.api.scripting.ScriptObjectMirror.<init>:(Ljdk/nashorn/internal/runtime/ScriptObject;Ljdk/nashorn/internal/objects/Global;)V
bipush 100
invokeinterface javax.script.ScriptContext.setBindings:(Ljavax/script/Bindings;I)V
12: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 13 1 factory Ljdk/nashorn/api/scripting/NashornScriptEngineFactory;
0 13 2 args [Ljava/lang/String;
0 13 3 appLoader Ljava/lang/ClassLoader;
0 13 4 classFilter Ljdk/nashorn/api/scripting/ClassFilter;
4 13 5 options Ljdk/nashorn/internal/runtime/options/Options;
6 13 6 errMgr Ljdk/nashorn/internal/runtime/ErrorManager;
MethodParameters:
Name Flags
factory final
args final
appLoader final
classFilter final
public java.lang.Object eval(java.io.Reader, javax.script.ScriptContext);
descriptor: (Ljava/io/Reader;Ljavax/script/ScriptContext;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.makeSource:(Ljava/io/Reader;Ljavax/script/ScriptContext;)Ljdk/nashorn/internal/runtime/Source;
aload 2
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl:(Ljdk/nashorn/internal/runtime/Source;Ljavax/script/ScriptContext;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 1 1 reader Ljava/io/Reader;
0 1 2 ctxt Ljavax/script/ScriptContext;
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
reader final
ctxt final
public java.lang.Object eval(java.lang.String, javax.script.ScriptContext);
descriptor: (Ljava/lang/String;Ljavax/script/ScriptContext;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.makeSource:(Ljava/lang/String;Ljavax/script/ScriptContext;)Ljdk/nashorn/internal/runtime/Source;
aload 2
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl:(Ljdk/nashorn/internal/runtime/Source;Ljavax/script/ScriptContext;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 1 1 script Ljava/lang/String;
0 1 2 ctxt Ljavax/script/ScriptContext;
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
script final
ctxt final
public javax.script.ScriptEngineFactory getFactory();
descriptor: ()Ljavax/script/ScriptEngineFactory;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.api.scripting.NashornScriptEngine.factory:Ljavax/script/ScriptEngineFactory;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
public javax.script.Bindings createBindings();
descriptor: ()Ljavax/script/Bindings;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.api.scripting.NashornScriptEngine._global_per_engine:Z
ifeq 2
1: new javax.script.SimpleBindings
dup
invokespecial javax.script.SimpleBindings.<init>:()V
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.createGlobalMirror:()Ljdk/nashorn/api/scripting/ScriptObjectMirror;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
public javax.script.CompiledScript compile(java.io.Reader);
descriptor: (Ljava/io/Reader;)Ljavax/script/CompiledScript;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
getfield jdk.nashorn.api.scripting.NashornScriptEngine.context:Ljavax/script/ScriptContext;
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.makeSource:(Ljava/io/Reader;Ljavax/script/ScriptContext;)Ljdk/nashorn/internal/runtime/Source;
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.asCompiledScript:(Ljdk/nashorn/internal/runtime/Source;)Ljavax/script/CompiledScript;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 1 1 reader Ljava/io/Reader;
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
reader final
public javax.script.CompiledScript compile(java.lang.String);
descriptor: (Ljava/lang/String;)Ljavax/script/CompiledScript;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
getfield jdk.nashorn.api.scripting.NashornScriptEngine.context:Ljavax/script/ScriptContext;
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.makeSource:(Ljava/lang/String;Ljavax/script/ScriptContext;)Ljdk/nashorn/internal/runtime/Source;
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.asCompiledScript:(Ljdk/nashorn/internal/runtime/Source;)Ljavax/script/CompiledScript;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 1 1 str Ljava/lang/String;
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
str final
public java.lang.Object invokeFunction(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aconst_null
aload 1
aload 2
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl:(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 1 1 name Ljava/lang/String;
0 1 2 args [Ljava/lang/Object;
Exceptions:
throws javax.script.ScriptException, java.lang.NoSuchMethodException
MethodParameters:
Name Flags
name final
args final
public java.lang.Object invokeMethod(java.lang.Object, java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "thiz.cannot.be.null"
iconst_0
anewarray java.lang.String
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.getMessage:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 3
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl:(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 3 1 thiz Ljava/lang/Object;
0 3 2 name Ljava/lang/String;
0 3 3 args [Ljava/lang/Object;
Exceptions:
throws javax.script.ScriptException, java.lang.NoSuchMethodException
MethodParameters:
Name Flags
thiz final
name final
args final
public <T> T getInterface(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
aload 1
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.getInterfaceInner:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 1 1 clazz Ljava/lang/Class<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
clazz final
public <T> T getInterface(, java.lang.Class<T>);
descriptor: (Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "thiz.cannot.be.null"
iconst_0
anewarray java.lang.String
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.getMessage:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.getInterfaceInner:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 3 1 thiz Ljava/lang/Object;
0 3 2 clazz Ljava/lang/Class<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Object;Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
thiz final
clazz final
private static jdk.nashorn.internal.runtime.Source makeSource(java.io.Reader, javax.script.ScriptContext);
descriptor: (Ljava/io/Reader;Ljavax/script/ScriptContext;)Ljdk/nashorn/internal/runtime/Source;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.getScriptName:(Ljavax/script/ScriptContext;)Ljava/lang/String;
aload 0
invokestatic jdk.nashorn.internal.runtime.Source.sourceFor:(Ljava/lang/String;Ljava/io/Reader;)Ljdk/nashorn/internal/runtime/Source;
1: areturn
2: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 3: new javax.script.ScriptException
dup
aload 2
invokespecial javax.script.ScriptException.<init>:(Ljava/lang/Exception;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 reader Ljava/io/Reader;
0 4 1 ctxt Ljavax/script/ScriptContext;
3 4 2 e Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
reader final
ctxt final
private static jdk.nashorn.internal.runtime.Source makeSource(java.lang.String, javax.script.ScriptContext);
descriptor: (Ljava/lang/String;Ljavax/script/ScriptContext;)Ljdk/nashorn/internal/runtime/Source;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.getScriptName:(Ljavax/script/ScriptContext;)Ljava/lang/String;
aload 0
invokestatic jdk.nashorn.internal.runtime.Source.sourceFor:(Ljava/lang/String;Ljava/lang/String;)Ljdk/nashorn/internal/runtime/Source;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 src Ljava/lang/String;
0 1 1 ctxt Ljavax/script/ScriptContext;
MethodParameters:
Name Flags
src final
ctxt final
private static java.lang.String getScriptName(javax.script.ScriptContext);
descriptor: (Ljavax/script/ScriptContext;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
ldc "javax.script.filename"
invokeinterface javax.script.ScriptContext.getAttribute:(Ljava/lang/String;)Ljava/lang/Object;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
goto 3
StackMap locals: java.lang.Object
StackMap stack:
2: ldc "<eval>"
StackMap locals:
StackMap stack: java.lang.String
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 ctxt Ljavax/script/ScriptContext;
1 4 1 val Ljava/lang/Object;
MethodParameters:
Name Flags
ctxt final
private <T> T getInterfaceInner(, java.lang.Class<T>);
descriptor: (Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=10, args_size=3
start local 0 start local 1 start local 2 0: getstatic jdk.nashorn.api.scripting.NashornScriptEngine.$assertionsDisabled:Z
ifne 1
aload 1
instanceof jdk.nashorn.internal.runtime.ScriptObject
ifeq 1
new java.lang.AssertionError
dup
ldc "raw ScriptObject not expected here"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 2
ifnull 2
aload 2
invokevirtual java.lang.Class.isInterface:()Z
ifne 3
2: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "interface.class.expected"
iconst_0
anewarray java.lang.String
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.getMessage:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 3
start local 3 4: aload 3
ifnull 8
5: aload 2
invokevirtual java.lang.Class.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isPublic:(I)Z
ifne 7
6: new java.lang.SecurityException
dup
ldc "implementing.non.public.interface"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 2
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aastore
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.getMessage:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 2
invokestatic jdk.nashorn.internal.runtime.Context.checkPackageAccess:(Ljava/lang/Class;)V
8: StackMap locals:
StackMap stack:
aconst_null
astore 4
start local 4 9: aconst_null
astore 5
start local 5 10: aload 1
ifnonnull 13
11: aload 0
aload 0
getfield jdk.nashorn.api.scripting.NashornScriptEngine.context:Ljavax/script/ScriptContext;
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.getNashornGlobalFrom:(Ljavax/script/ScriptContext;)Ljdk/nashorn/internal/objects/Global;
dup
astore 5
astore 4
12: goto 19
StackMap locals: jdk.nashorn.internal.runtime.ScriptObject jdk.nashorn.internal.objects.Global
StackMap stack:
13: aload 1
instanceof jdk.nashorn.api.scripting.ScriptObjectMirror
ifeq 19
14: aload 1
checkcast jdk.nashorn.api.scripting.ScriptObjectMirror
astore 6
start local 6 15: aload 6
invokevirtual jdk.nashorn.api.scripting.ScriptObjectMirror.getScriptObject:()Ljdk/nashorn/internal/runtime/ScriptObject;
astore 4
16: aload 6
invokevirtual jdk.nashorn.api.scripting.ScriptObjectMirror.getHomeGlobal:()Ljdk/nashorn/internal/objects/Global;
astore 5
17: aload 5
aload 0
getfield jdk.nashorn.api.scripting.NashornScriptEngine.nashornContext:Ljdk/nashorn/internal/runtime/Context;
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.isOfContext:(Ljdk/nashorn/internal/objects/Global;Ljdk/nashorn/internal/runtime/Context;)Z
ifne 19
18: new java.lang.IllegalArgumentException
dup
ldc "script.object.from.another.engine"
iconst_0
anewarray java.lang.String
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.getMessage:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 6 19: StackMap locals:
StackMap stack:
aload 4
ifnonnull 21
20: new java.lang.IllegalArgumentException
dup
ldc "interface.on.non.script.object"
iconst_0
anewarray java.lang.String
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.getMessage:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
21: StackMap locals:
StackMap stack:
invokestatic jdk.nashorn.internal.runtime.Context.getGlobal:()Ljdk/nashorn/internal/objects/Global;
astore 6
start local 6 22: aload 6
aload 5
if_acmpeq 23
iconst_1
goto 24
StackMap locals: jdk.nashorn.internal.objects.Global
StackMap stack:
23: iconst_0
StackMap locals:
StackMap stack: int
24: istore 7
start local 7 25: iload 7
ifeq 27
26: aload 5
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
27: StackMap locals: int
StackMap stack:
aload 2
aload 4
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.isInterfaceImplemented:(Ljava/lang/Class;Ljdk/nashorn/internal/runtime/ScriptObject;)Z
ifne 31
28: iload 7
ifeq 30
29: aload 6
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
30: StackMap locals:
StackMap stack:
aconst_null
areturn
31: StackMap locals:
StackMap stack:
aload 2
aload 4
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 2
32: invokestatic java.lang.invoke.MethodHandles.publicLookup:()Ljava/lang/invoke/MethodHandles$Lookup;
33: invokestatic jdk.nashorn.internal.runtime.linker.JavaAdapterFactory.getConstructor:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/invoke/MethodHandles$Lookup;)Ljava/lang/invoke/MethodHandle;
34: aload 4
invokevirtual java.lang.invoke.MethodHandle.invoke:(Ljdk/nashorn/internal/runtime/ScriptObject;)Ljava/lang/Object;
35: invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
astore 9
36: iload 7
ifeq 38
37: aload 6
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
38: StackMap locals: jdk.nashorn.api.scripting.NashornScriptEngine java.lang.Object java.lang.Class java.lang.SecurityManager jdk.nashorn.internal.runtime.ScriptObject jdk.nashorn.internal.objects.Global jdk.nashorn.internal.objects.Global int top java.lang.Object
StackMap stack:
aload 9
areturn
39: StackMap locals: jdk.nashorn.api.scripting.NashornScriptEngine java.lang.Object java.lang.Class java.lang.SecurityManager jdk.nashorn.internal.runtime.ScriptObject jdk.nashorn.internal.objects.Global jdk.nashorn.internal.objects.Global int
StackMap stack: java.lang.Throwable
astore 8
40: iload 7
ifeq 42
41: aload 6
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
42: StackMap locals: java.lang.Throwable
StackMap stack:
aload 8
athrow
end local 7 end local 6 43: StackMap locals: jdk.nashorn.api.scripting.NashornScriptEngine java.lang.Object java.lang.Class java.lang.SecurityManager jdk.nashorn.internal.runtime.ScriptObject jdk.nashorn.internal.objects.Global
StackMap stack: java.lang.Throwable
astore 6
start local 6 44: aload 6
athrow
end local 6 45: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
start local 6 46: new java.lang.RuntimeException
dup
aload 6
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 47 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 47 1 thiz Ljava/lang/Object;
0 47 2 clazz Ljava/lang/Class<TT;>;
4 47 3 sm Ljava/lang/SecurityManager;
9 47 4 realSelf Ljdk/nashorn/internal/runtime/ScriptObject;
10 47 5 realGlobal Ljdk/nashorn/internal/objects/Global;
15 19 6 mirror Ljdk/nashorn/api/scripting/ScriptObjectMirror;
22 43 6 oldGlobal Ljdk/nashorn/internal/objects/Global;
25 43 7 globalChanged Z
44 45 6 e Ljava/lang/Throwable;
46 47 6 t Ljava/lang/Throwable;
Exception table:
from to target type
25 28 39 any
31 36 39 any
21 30 43 Class java.lang.RuntimeException
31 38 43 Class java.lang.RuntimeException
39 43 43 Class java.lang.RuntimeException
21 30 43 Class java.lang.Error
31 38 43 Class java.lang.Error
39 43 43 Class java.lang.Error
21 30 45 Class java.lang.Throwable
31 38 45 Class java.lang.Throwable
39 43 45 Class java.lang.Throwable
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Object;Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
thiz final
clazz final
private jdk.nashorn.internal.objects.Global getNashornGlobalFrom(javax.script.ScriptContext);
descriptor: (Ljavax/script/ScriptContext;)Ljdk/nashorn/internal/objects/Global;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.api.scripting.NashornScriptEngine._global_per_engine:Z
ifeq 2
1: aload 0
getfield jdk.nashorn.api.scripting.NashornScriptEngine.global:Ljdk/nashorn/internal/objects/Global;
areturn
2: StackMap locals:
StackMap stack:
aload 1
bipush 100
invokeinterface javax.script.ScriptContext.getBindings:(I)Ljavax/script/Bindings;
astore 2
start local 2 3: aload 2
instanceof jdk.nashorn.api.scripting.ScriptObjectMirror
ifeq 7
4: aload 0
aload 2
checkcast jdk.nashorn.api.scripting.ScriptObjectMirror
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.globalFromMirror:(Ljdk/nashorn/api/scripting/ScriptObjectMirror;)Ljdk/nashorn/internal/objects/Global;
astore 3
start local 3 5: aload 3
ifnull 7
6: aload 3
areturn
end local 3 7: StackMap locals: javax.script.Bindings
StackMap stack:
aload 2
ldc "nashorn.global"
invokeinterface javax.script.Bindings.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 3
start local 3 8: aload 3
instanceof jdk.nashorn.api.scripting.ScriptObjectMirror
ifeq 12
9: aload 0
aload 3
checkcast jdk.nashorn.api.scripting.ScriptObjectMirror
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.globalFromMirror:(Ljdk/nashorn/api/scripting/ScriptObjectMirror;)Ljdk/nashorn/internal/objects/Global;
astore 4
start local 4 10: aload 4
ifnull 12
11: aload 4
areturn
end local 4 12: StackMap locals: java.lang.Object
StackMap stack:
aload 0
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.createGlobalMirror:()Ljdk/nashorn/api/scripting/ScriptObjectMirror;
astore 4
start local 4 13: aload 2
ldc "nashorn.global"
aload 4
invokeinterface javax.script.Bindings.put:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
14: aload 4
invokevirtual jdk.nashorn.api.scripting.ScriptObjectMirror.getHomeGlobal:()Ljdk/nashorn/internal/objects/Global;
aload 1
invokevirtual jdk.nashorn.internal.objects.Global.setInitScriptContext:(Ljavax/script/ScriptContext;)V
15: aload 4
invokevirtual jdk.nashorn.api.scripting.ScriptObjectMirror.getHomeGlobal:()Ljdk/nashorn/internal/objects/Global;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 16 1 ctxt Ljavax/script/ScriptContext;
3 16 2 bindings Ljavax/script/Bindings;
5 7 3 glob Ljdk/nashorn/internal/objects/Global;
8 16 3 scope Ljava/lang/Object;
10 12 4 glob Ljdk/nashorn/internal/objects/Global;
13 16 4 mirror Ljdk/nashorn/api/scripting/ScriptObjectMirror;
MethodParameters:
Name Flags
ctxt final
private jdk.nashorn.internal.objects.Global globalFromMirror(jdk.nashorn.api.scripting.ScriptObjectMirror);
descriptor: (Ljdk/nashorn/api/scripting/ScriptObjectMirror;)Ljdk/nashorn/internal/objects/Global;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.nashorn.api.scripting.ScriptObjectMirror.getScriptObject:()Ljdk/nashorn/internal/runtime/ScriptObject;
astore 2
start local 2 1: aload 2
instanceof jdk.nashorn.internal.objects.Global
ifeq 3
aload 2
checkcast jdk.nashorn.internal.objects.Global
aload 0
getfield jdk.nashorn.api.scripting.NashornScriptEngine.nashornContext:Ljdk/nashorn/internal/runtime/Context;
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.isOfContext:(Ljdk/nashorn/internal/objects/Global;Ljdk/nashorn/internal/runtime/Context;)Z
ifeq 3
2: aload 2
checkcast jdk.nashorn.internal.objects.Global
areturn
3: StackMap locals: jdk.nashorn.internal.runtime.ScriptObject
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 4 1 mirror Ljdk/nashorn/api/scripting/ScriptObjectMirror;
1 4 2 sobj Ljdk/nashorn/internal/runtime/ScriptObject;
MethodParameters:
Name Flags
mirror final
private jdk.nashorn.api.scripting.ScriptObjectMirror createGlobalMirror();
descriptor: ()Ljdk/nashorn/api/scripting/ScriptObjectMirror;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.createNashornGlobal:()Ljdk/nashorn/internal/objects/Global;
astore 1
start local 1 1: new jdk.nashorn.api.scripting.ScriptObjectMirror
dup
aload 1
aload 1
invokespecial jdk.nashorn.api.scripting.ScriptObjectMirror.<init>:(Ljdk/nashorn/internal/runtime/ScriptObject;Ljdk/nashorn/internal/objects/Global;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
1 2 1 newGlobal Ljdk/nashorn/internal/objects/Global;
private jdk.nashorn.internal.objects.Global createNashornGlobal();
descriptor: ()Ljdk/nashorn/internal/objects/Global;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: new jdk.nashorn.api.scripting.NashornScriptEngine$2
dup
aload 0
invokespecial jdk.nashorn.api.scripting.NashornScriptEngine$2.<init>:(Ljdk/nashorn/api/scripting/NashornScriptEngine;)V
1: getstatic jdk.nashorn.api.scripting.NashornScriptEngine.CREATE_GLOBAL_ACC_CTXT:Ljava/security/AccessControlContext;
2: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
checkcast jdk.nashorn.internal.objects.Global
astore 1
start local 1 3: aload 0
getfield jdk.nashorn.api.scripting.NashornScriptEngine.nashornContext:Ljdk/nashorn/internal/runtime/Context;
aload 1
aload 0
invokevirtual jdk.nashorn.internal.runtime.Context.initGlobal:(Ljdk/nashorn/internal/objects/Global;Ljavax/script/ScriptEngine;)Ljdk/nashorn/internal/objects/Global;
pop
4: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
3 5 1 newGlobal Ljdk/nashorn/internal/objects/Global;
private java.lang.Object invokeImpl(java.lang.Object, java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0082) ACC_PRIVATE, ACC_VARARGS
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: getstatic jdk.nashorn.api.scripting.NashornScriptEngine.$assertionsDisabled:Z
ifne 2
aload 1
instanceof jdk.nashorn.internal.runtime.ScriptObject
ifeq 2
new java.lang.AssertionError
dup
ldc "raw ScriptObject not expected here"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
aconst_null
astore 4
start local 4 3: aconst_null
astore 5
start local 5 4: aload 1
instanceof jdk.nashorn.api.scripting.ScriptObjectMirror
ifeq 10
5: aload 1
checkcast jdk.nashorn.api.scripting.ScriptObjectMirror
astore 5
6: aload 5
invokevirtual jdk.nashorn.api.scripting.ScriptObjectMirror.getHomeGlobal:()Ljdk/nashorn/internal/objects/Global;
aload 0
getfield jdk.nashorn.api.scripting.NashornScriptEngine.nashornContext:Ljdk/nashorn/internal/runtime/Context;
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.isOfContext:(Ljdk/nashorn/internal/objects/Global;Ljdk/nashorn/internal/runtime/Context;)Z
ifne 8
7: new java.lang.IllegalArgumentException
dup
ldc "script.object.from.another.engine"
iconst_0
anewarray java.lang.String
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.getMessage:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: jdk.nashorn.internal.objects.Global jdk.nashorn.api.scripting.ScriptObjectMirror
StackMap stack:
aload 5
invokevirtual jdk.nashorn.api.scripting.ScriptObjectMirror.getHomeGlobal:()Ljdk/nashorn/internal/objects/Global;
astore 4
9: goto 14
StackMap locals:
StackMap stack:
10: aload 1
ifnonnull 14
11: aload 0
aload 0
getfield jdk.nashorn.api.scripting.NashornScriptEngine.context:Ljavax/script/ScriptContext;
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.getNashornGlobalFrom:(Ljavax/script/ScriptContext;)Ljdk/nashorn/internal/objects/Global;
astore 6
start local 6 12: aload 6
astore 4
13: aload 6
aload 6
invokestatic jdk.nashorn.api.scripting.ScriptObjectMirror.wrap:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.nashorn.api.scripting.ScriptObjectMirror
astore 5
end local 6 14: StackMap locals:
StackMap stack:
aload 5
ifnull 23
15: aload 5
aload 2
aload 3
invokevirtual jdk.nashorn.api.scripting.ScriptObjectMirror.callMember:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
invokestatic jdk.nashorn.api.scripting.ScriptObjectMirror.translateUndefined:(Ljava/lang/Object;)Ljava/lang/Object;
16: areturn
17: StackMap locals:
StackMap stack: java.lang.Exception
astore 6
start local 6 18: aload 6
invokevirtual java.lang.Exception.getCause:()Ljava/lang/Throwable;
astore 7
start local 7 19: aload 7
instanceof java.lang.NoSuchMethodException
ifeq 21
20: aload 7
checkcast java.lang.NoSuchMethodException
athrow
21: StackMap locals: java.lang.Exception java.lang.Throwable
StackMap stack:
aload 6
aload 4
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException:(Ljava/lang/Exception;Ljdk/nashorn/internal/objects/Global;)V
22: new java.lang.AssertionError
dup
ldc "should not reach here"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 7 end local 6 23: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "interface.on.non.script.object"
iconst_0
anewarray java.lang.String
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.getMessage:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 24 1 selfObject Ljava/lang/Object;
0 24 2 name Ljava/lang/String;
0 24 3 args [Ljava/lang/Object;
3 24 4 invokeGlobal Ljdk/nashorn/internal/objects/Global;
4 24 5 selfMirror Ljdk/nashorn/api/scripting/ScriptObjectMirror;
12 14 6 ctxtGlobal Ljdk/nashorn/internal/objects/Global;
18 23 6 e Ljava/lang/Exception;
19 23 7 cause Ljava/lang/Throwable;
Exception table:
from to target type
15 16 17 Class java.lang.Exception
Exceptions:
throws javax.script.ScriptException, java.lang.NoSuchMethodException
MethodParameters:
Name Flags
selfObject final
name final
args final
private java.lang.Object evalImpl(jdk.nashorn.internal.runtime.Source, javax.script.ScriptContext);
descriptor: (Ljdk/nashorn/internal/runtime/Source;Ljavax/script/ScriptContext;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
aload 1
aload 2
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl:(Ljdk/nashorn/internal/runtime/Source;Ljavax/script/ScriptContext;)Ljdk/nashorn/internal/runtime/ScriptFunction;
aload 2
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl:(Ljdk/nashorn/internal/runtime/ScriptFunction;Ljavax/script/ScriptContext;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 1 1 src Ljdk/nashorn/internal/runtime/Source;
0 1 2 ctxt Ljavax/script/ScriptContext;
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
src final
ctxt final
private java.lang.Object evalImpl(jdk.nashorn.internal.runtime.ScriptFunction, javax.script.ScriptContext);
descriptor: (Ljdk/nashorn/internal/runtime/ScriptFunction;Ljavax/script/ScriptContext;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aload 0
aload 2
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.getNashornGlobalFrom:(Ljavax/script/ScriptContext;)Ljdk/nashorn/internal/objects/Global;
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl:(Ljdk/nashorn/internal/runtime/ScriptFunction;Ljavax/script/ScriptContext;Ljdk/nashorn/internal/objects/Global;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 1 1 script Ljdk/nashorn/internal/runtime/ScriptFunction;
0 1 2 ctxt Ljavax/script/ScriptContext;
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
script final
ctxt final
private java.lang.Object evalImpl(jdk.nashorn.internal.runtime.Context$MultiGlobalCompiledScript, javax.script.ScriptContext, jdk.nashorn.internal.objects.Global);
descriptor: (Ljdk/nashorn/internal/runtime/Context$MultiGlobalCompiledScript;Ljavax/script/ScriptContext;Ljdk/nashorn/internal/objects/Global;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: invokestatic jdk.nashorn.internal.runtime.Context.getGlobal:()Ljdk/nashorn/internal/objects/Global;
astore 4
start local 4 1: aload 4
aload 3
if_acmpeq 2
iconst_1
goto 3
StackMap locals: jdk.nashorn.internal.objects.Global
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: istore 5
start local 5 4: iload 5
ifeq 6
5: aload 3
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
6: StackMap locals: int
StackMap stack:
aload 1
aload 3
invokeinterface jdk.nashorn.internal.runtime.Context$MultiGlobalCompiledScript.getFunction:(Ljdk/nashorn/internal/objects/Global;)Ljdk/nashorn/internal/runtime/ScriptFunction;
astore 6
start local 6 7: aload 3
invokevirtual jdk.nashorn.internal.objects.Global.getScriptContext:()Ljavax/script/ScriptContext;
astore 7
start local 7 8: aload 3
aload 2
invokevirtual jdk.nashorn.internal.objects.Global.setScriptContext:(Ljavax/script/ScriptContext;)V
9: aload 6
aload 3
iconst_0
anewarray java.lang.Object
invokestatic jdk.nashorn.internal.runtime.ScriptRuntime.apply:(Ljdk/nashorn/internal/runtime/ScriptFunction;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
aload 3
invokestatic jdk.nashorn.api.scripting.ScriptObjectMirror.wrap:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
invokestatic jdk.nashorn.api.scripting.ScriptObjectMirror.translateUndefined:(Ljava/lang/Object;)Ljava/lang/Object;
astore 9
10: aload 3
aload 7
invokevirtual jdk.nashorn.internal.objects.Global.setScriptContext:(Ljavax/script/ScriptContext;)V
11: iload 5
ifeq 13
12: aload 4
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
13: StackMap locals: jdk.nashorn.api.scripting.NashornScriptEngine jdk.nashorn.internal.runtime.Context$MultiGlobalCompiledScript javax.script.ScriptContext jdk.nashorn.internal.objects.Global jdk.nashorn.internal.objects.Global int jdk.nashorn.internal.runtime.ScriptFunction javax.script.ScriptContext top java.lang.Object
StackMap stack:
aload 9
areturn
14: StackMap locals: jdk.nashorn.api.scripting.NashornScriptEngine jdk.nashorn.internal.runtime.Context$MultiGlobalCompiledScript javax.script.ScriptContext jdk.nashorn.internal.objects.Global jdk.nashorn.internal.objects.Global int jdk.nashorn.internal.runtime.ScriptFunction javax.script.ScriptContext
StackMap stack: java.lang.Throwable
astore 8
15: aload 3
aload 7
invokevirtual jdk.nashorn.internal.objects.Global.setScriptContext:(Ljavax/script/ScriptContext;)V
16: aload 8
athrow
end local 7 end local 6 17: StackMap locals: jdk.nashorn.api.scripting.NashornScriptEngine jdk.nashorn.internal.runtime.Context$MultiGlobalCompiledScript javax.script.ScriptContext jdk.nashorn.internal.objects.Global jdk.nashorn.internal.objects.Global int
StackMap stack: java.lang.Exception
astore 6
start local 6 18: aload 6
aload 3
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException:(Ljava/lang/Exception;Ljdk/nashorn/internal/objects/Global;)V
19: new java.lang.AssertionError
dup
ldc "should not reach here"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 6 20: StackMap locals:
StackMap stack: java.lang.Throwable
astore 10
21: iload 5
ifeq 23
22: aload 4
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
23: StackMap locals: jdk.nashorn.api.scripting.NashornScriptEngine jdk.nashorn.internal.runtime.Context$MultiGlobalCompiledScript javax.script.ScriptContext jdk.nashorn.internal.objects.Global jdk.nashorn.internal.objects.Global int top top top top java.lang.Throwable
StackMap stack:
aload 10
athrow
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 24 1 mgcs Ljdk/nashorn/internal/runtime/Context$MultiGlobalCompiledScript;
0 24 2 ctxt Ljavax/script/ScriptContext;
0 24 3 ctxtGlobal Ljdk/nashorn/internal/objects/Global;
1 24 4 oldGlobal Ljdk/nashorn/internal/objects/Global;
4 24 5 globalChanged Z
7 17 6 script Ljdk/nashorn/internal/runtime/ScriptFunction;
8 17 7 oldCtxt Ljavax/script/ScriptContext;
18 20 6 e Ljava/lang/Exception;
Exception table:
from to target type
9 10 14 any
4 11 17 Class java.lang.Exception
14 17 17 Class java.lang.Exception
4 11 20 any
14 20 20 any
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
mgcs final
ctxt final
ctxtGlobal final
private java.lang.Object evalImpl(jdk.nashorn.internal.runtime.ScriptFunction, javax.script.ScriptContext, jdk.nashorn.internal.objects.Global);
descriptor: (Ljdk/nashorn/internal/runtime/ScriptFunction;Ljavax/script/ScriptContext;Ljdk/nashorn/internal/objects/Global;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
invokestatic jdk.nashorn.internal.runtime.Context.getGlobal:()Ljdk/nashorn/internal/objects/Global;
astore 4
start local 4 3: aload 4
aload 3
if_acmpeq 4
iconst_1
goto 5
StackMap locals: jdk.nashorn.internal.objects.Global
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: istore 5
start local 5 6: iload 5
ifeq 8
7: aload 3
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
8: StackMap locals: int
StackMap stack:
aload 3
invokevirtual jdk.nashorn.internal.objects.Global.getScriptContext:()Ljavax/script/ScriptContext;
astore 6
start local 6 9: aload 3
aload 2
invokevirtual jdk.nashorn.internal.objects.Global.setScriptContext:(Ljavax/script/ScriptContext;)V
10: aload 1
aload 3
iconst_0
anewarray java.lang.Object
invokestatic jdk.nashorn.internal.runtime.ScriptRuntime.apply:(Ljdk/nashorn/internal/runtime/ScriptFunction;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
aload 3
invokestatic jdk.nashorn.api.scripting.ScriptObjectMirror.wrap:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
invokestatic jdk.nashorn.api.scripting.ScriptObjectMirror.translateUndefined:(Ljava/lang/Object;)Ljava/lang/Object;
astore 8
11: aload 3
aload 6
invokevirtual jdk.nashorn.internal.objects.Global.setScriptContext:(Ljavax/script/ScriptContext;)V
12: iload 5
ifeq 14
13: aload 4
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
14: StackMap locals: jdk.nashorn.api.scripting.NashornScriptEngine jdk.nashorn.internal.runtime.ScriptFunction javax.script.ScriptContext jdk.nashorn.internal.objects.Global jdk.nashorn.internal.objects.Global int javax.script.ScriptContext top java.lang.Object
StackMap stack:
aload 8
areturn
15: StackMap locals: jdk.nashorn.api.scripting.NashornScriptEngine jdk.nashorn.internal.runtime.ScriptFunction javax.script.ScriptContext jdk.nashorn.internal.objects.Global jdk.nashorn.internal.objects.Global int javax.script.ScriptContext
StackMap stack: java.lang.Throwable
astore 7
16: aload 3
aload 6
invokevirtual jdk.nashorn.internal.objects.Global.setScriptContext:(Ljavax/script/ScriptContext;)V
17: aload 7
athrow
end local 6 18: StackMap locals: jdk.nashorn.api.scripting.NashornScriptEngine jdk.nashorn.internal.runtime.ScriptFunction javax.script.ScriptContext jdk.nashorn.internal.objects.Global jdk.nashorn.internal.objects.Global int
StackMap stack: java.lang.Exception
astore 6
start local 6 19: aload 6
aload 3
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException:(Ljava/lang/Exception;Ljdk/nashorn/internal/objects/Global;)V
20: new java.lang.AssertionError
dup
ldc "should not reach here"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 6 21: StackMap locals:
StackMap stack: java.lang.Throwable
astore 9
22: iload 5
ifeq 24
23: aload 4
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
24: StackMap locals: jdk.nashorn.api.scripting.NashornScriptEngine jdk.nashorn.internal.runtime.ScriptFunction javax.script.ScriptContext jdk.nashorn.internal.objects.Global jdk.nashorn.internal.objects.Global int top top top java.lang.Throwable
StackMap stack:
aload 9
athrow
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 25 1 script Ljdk/nashorn/internal/runtime/ScriptFunction;
0 25 2 ctxt Ljavax/script/ScriptContext;
0 25 3 ctxtGlobal Ljdk/nashorn/internal/objects/Global;
3 25 4 oldGlobal Ljdk/nashorn/internal/objects/Global;
6 25 5 globalChanged Z
9 18 6 oldCtxt Ljavax/script/ScriptContext;
19 21 6 e Ljava/lang/Exception;
Exception table:
from to target type
10 11 15 any
6 12 18 Class java.lang.Exception
15 18 18 Class java.lang.Exception
6 12 21 any
15 21 21 any
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
script final
ctxt final
ctxtGlobal final
private static void throwAsScriptException(java.lang.Exception, jdk.nashorn.internal.objects.Global);
descriptor: (Ljava/lang/Exception;Ljdk/nashorn/internal/objects/Global;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
instanceof javax.script.ScriptException
ifeq 2
1: aload 0
checkcast javax.script.ScriptException
athrow
2: StackMap locals:
StackMap stack:
aload 0
instanceof jdk.nashorn.api.scripting.NashornException
ifeq 11
3: aload 0
checkcast jdk.nashorn.api.scripting.NashornException
astore 2
start local 2 4: new javax.script.ScriptException
dup
5: aload 2
invokevirtual jdk.nashorn.api.scripting.NashornException.getMessage:()Ljava/lang/String;
aload 2
invokevirtual jdk.nashorn.api.scripting.NashornException.getFileName:()Ljava/lang/String;
6: aload 2
invokevirtual jdk.nashorn.api.scripting.NashornException.getLineNumber:()I
aload 2
invokevirtual jdk.nashorn.api.scripting.NashornException.getColumnNumber:()I
7: invokespecial javax.script.ScriptException.<init>:(Ljava/lang/String;Ljava/lang/String;II)V
astore 3
start local 3 8: aload 2
aload 1
invokevirtual jdk.nashorn.api.scripting.NashornException.initEcmaError:(Ljdk/nashorn/internal/runtime/ScriptObject;)Ljdk/nashorn/api/scripting/NashornException;
pop
9: aload 3
aload 0
invokevirtual javax.script.ScriptException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
10: aload 3
athrow
end local 3 end local 2 11: StackMap locals:
StackMap stack:
aload 0
instanceof java.lang.RuntimeException
ifeq 13
12: aload 0
checkcast java.lang.RuntimeException
athrow
13: StackMap locals:
StackMap stack:
new javax.script.ScriptException
dup
aload 0
invokespecial javax.script.ScriptException.<init>:(Ljava/lang/Exception;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 e Ljava/lang/Exception;
0 14 1 global Ljdk/nashorn/internal/objects/Global;
4 11 2 ne Ljdk/nashorn/api/scripting/NashornException;
8 11 3 se Ljavax/script/ScriptException;
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
e final
global final
private javax.script.CompiledScript asCompiledScript(jdk.nashorn.internal.runtime.Source);
descriptor: (Ljdk/nashorn/internal/runtime/Source;)Ljavax/script/CompiledScript;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=9, args_size=2
start local 0 start local 1 0: invokestatic jdk.nashorn.internal.runtime.Context.getGlobal:()Ljdk/nashorn/internal/objects/Global;
astore 4
start local 4 1: aload 0
aload 0
getfield jdk.nashorn.api.scripting.NashornScriptEngine.context:Ljavax/script/ScriptContext;
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.getNashornGlobalFrom:(Ljavax/script/ScriptContext;)Ljdk/nashorn/internal/objects/Global;
astore 5
start local 5 2: aload 4
aload 5
if_acmpeq 3
iconst_1
goto 4
StackMap locals: jdk.nashorn.api.scripting.NashornScriptEngine jdk.nashorn.internal.runtime.Source top top jdk.nashorn.internal.objects.Global jdk.nashorn.internal.objects.Global
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: istore 6
start local 6 5: iload 6
ifeq 7
6: aload 5
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
7: StackMap locals: int
StackMap stack:
aload 0
getfield jdk.nashorn.api.scripting.NashornScriptEngine.nashornContext:Ljdk/nashorn/internal/runtime/Context;
aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.compileScript:(Ljdk/nashorn/internal/runtime/Source;)Ljdk/nashorn/internal/runtime/Context$MultiGlobalCompiledScript;
astore 2
start local 2 8: aload 2
aload 5
invokeinterface jdk.nashorn.internal.runtime.Context$MultiGlobalCompiledScript.getFunction:(Ljdk/nashorn/internal/objects/Global;)Ljdk/nashorn/internal/runtime/ScriptFunction;
astore 3
start local 3 9: goto 17
end local 3 end local 2 StackMap locals:
StackMap stack: java.lang.Exception
10: astore 7
start local 7 11: aload 7
aload 5
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException:(Ljava/lang/Exception;Ljdk/nashorn/internal/objects/Global;)V
12: new java.lang.AssertionError
dup
ldc "should not reach here"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 7 13: StackMap locals:
StackMap stack: java.lang.Throwable
astore 8
14: iload 6
ifeq 16
15: aload 4
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
16: StackMap locals: jdk.nashorn.api.scripting.NashornScriptEngine jdk.nashorn.internal.runtime.Source top top jdk.nashorn.internal.objects.Global jdk.nashorn.internal.objects.Global int top java.lang.Throwable
StackMap stack:
aload 8
athrow
start local 2 start local 3 17: StackMap locals: jdk.nashorn.api.scripting.NashornScriptEngine jdk.nashorn.internal.runtime.Source jdk.nashorn.internal.runtime.Context$MultiGlobalCompiledScript jdk.nashorn.internal.runtime.ScriptFunction jdk.nashorn.internal.objects.Global jdk.nashorn.internal.objects.Global int
StackMap stack:
iload 6
ifeq 19
18: aload 4
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
19: StackMap locals:
StackMap stack:
new jdk.nashorn.api.scripting.NashornScriptEngine$3
dup
aload 0
aload 3
aload 2
invokespecial jdk.nashorn.api.scripting.NashornScriptEngine$3.<init>:(Ljdk/nashorn/api/scripting/NashornScriptEngine;Ljdk/nashorn/internal/runtime/ScriptFunction;Ljdk/nashorn/internal/runtime/Context$MultiGlobalCompiledScript;)V
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 20 1 source Ljdk/nashorn/internal/runtime/Source;
8 10 2 mgcs Ljdk/nashorn/internal/runtime/Context$MultiGlobalCompiledScript;
17 20 2 mgcs Ljdk/nashorn/internal/runtime/Context$MultiGlobalCompiledScript;
9 10 3 func Ljdk/nashorn/internal/runtime/ScriptFunction;
17 20 3 func Ljdk/nashorn/internal/runtime/ScriptFunction;
1 20 4 oldGlobal Ljdk/nashorn/internal/objects/Global;
2 20 5 newGlobal Ljdk/nashorn/internal/objects/Global;
5 20 6 globalChanged Z
11 13 7 e Ljava/lang/Exception;
Exception table:
from to target type
5 9 10 Class java.lang.Exception
5 13 13 any
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
source final
private jdk.nashorn.internal.runtime.ScriptFunction compileImpl(jdk.nashorn.internal.runtime.Source, javax.script.ScriptContext);
descriptor: (Ljdk/nashorn/internal/runtime/Source;Ljavax/script/ScriptContext;)Ljdk/nashorn/internal/runtime/ScriptFunction;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 0
aload 2
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.getNashornGlobalFrom:(Ljavax/script/ScriptContext;)Ljdk/nashorn/internal/objects/Global;
invokevirtual jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl:(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/internal/objects/Global;)Ljdk/nashorn/internal/runtime/ScriptFunction;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 1 1 source Ljdk/nashorn/internal/runtime/Source;
0 1 2 ctxt Ljavax/script/ScriptContext;
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
source final
ctxt final
private jdk.nashorn.internal.runtime.ScriptFunction compileImpl(jdk.nashorn.internal.runtime.Source, jdk.nashorn.internal.objects.Global);
descriptor: (Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/internal/objects/Global;)Ljdk/nashorn/internal/runtime/ScriptFunction;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: invokestatic jdk.nashorn.internal.runtime.Context.getGlobal:()Ljdk/nashorn/internal/objects/Global;
astore 3
start local 3 1: aload 3
aload 2
if_acmpeq 2
iconst_1
goto 3
StackMap locals: jdk.nashorn.internal.objects.Global
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: istore 4
start local 4 4: iload 4
ifeq 6
5: aload 2
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
6: StackMap locals: int
StackMap stack:
aload 0
getfield jdk.nashorn.api.scripting.NashornScriptEngine.nashornContext:Ljdk/nashorn/internal/runtime/Context;
aload 1
aload 2
invokevirtual jdk.nashorn.internal.runtime.Context.compileScript:(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/internal/runtime/ScriptObject;)Ljdk/nashorn/internal/runtime/ScriptFunction;
astore 7
7: iload 4
ifeq 9
8: aload 3
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
9: StackMap locals: jdk.nashorn.api.scripting.NashornScriptEngine jdk.nashorn.internal.runtime.Source jdk.nashorn.internal.objects.Global jdk.nashorn.internal.objects.Global int top top jdk.nashorn.internal.runtime.ScriptFunction
StackMap stack:
aload 7
areturn
10: StackMap locals: jdk.nashorn.api.scripting.NashornScriptEngine jdk.nashorn.internal.runtime.Source jdk.nashorn.internal.objects.Global jdk.nashorn.internal.objects.Global int
StackMap stack: java.lang.Exception
astore 5
start local 5 11: aload 5
aload 2
invokestatic jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException:(Ljava/lang/Exception;Ljdk/nashorn/internal/objects/Global;)V
12: new java.lang.AssertionError
dup
ldc "should not reach here"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 5 13: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
14: iload 4
ifeq 16
15: aload 3
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
16: StackMap locals: jdk.nashorn.api.scripting.NashornScriptEngine jdk.nashorn.internal.runtime.Source jdk.nashorn.internal.objects.Global jdk.nashorn.internal.objects.Global int top java.lang.Throwable
StackMap stack:
aload 6
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljdk/nashorn/api/scripting/NashornScriptEngine;
0 17 1 source Ljdk/nashorn/internal/runtime/Source;
0 17 2 newGlobal Ljdk/nashorn/internal/objects/Global;
1 17 3 oldGlobal Ljdk/nashorn/internal/objects/Global;
4 17 4 globalChanged Z
11 13 5 e Ljava/lang/Exception;
Exception table:
from to target type
4 7 10 Class java.lang.Exception
4 7 13 any
10 13 13 any
Exceptions:
throws javax.script.ScriptException
MethodParameters:
Name Flags
source final
newGlobal final
private static boolean isInterfaceImplemented(java.lang.Class<?>, jdk.nashorn.internal.runtime.ScriptObject);
descriptor: (Ljava/lang/Class;Ljdk/nashorn/internal/runtime/ScriptObject;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.Class.getMethods:()[Ljava/lang/reflect/Method;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 10
StackMap locals: java.lang.Class jdk.nashorn.internal.runtime.ScriptObject top int int java.lang.reflect.Method[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 2
invokevirtual java.lang.reflect.Method.getDeclaringClass:()Ljava/lang/Class;
ldc Ljava/lang/Object;
if_acmpne 4
3: goto 9
4: StackMap locals: java.lang.Class jdk.nashorn.internal.runtime.ScriptObject java.lang.reflect.Method int int java.lang.reflect.Method[]
StackMap stack:
aload 2
invokevirtual java.lang.reflect.Method.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isAbstract:(I)Z
ifne 6
5: goto 9
6: StackMap locals:
StackMap stack:
aload 1
aload 2
invokevirtual java.lang.reflect.Method.getName:()Ljava/lang/String;
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 6
start local 6 7: aload 6
instanceof jdk.nashorn.internal.runtime.ScriptFunction
ifne 9
8: iconst_0
ireturn
end local 6 end local 2 9: StackMap locals: java.lang.Class jdk.nashorn.internal.runtime.ScriptObject top int int java.lang.reflect.Method[]
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
iload 4
if_icmplt 1
11: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 iface Ljava/lang/Class<*>;
0 12 1 sobj Ljdk/nashorn/internal/runtime/ScriptObject;
2 9 2 method Ljava/lang/reflect/Method;
7 9 6 obj Ljava/lang/Object;
Signature: (Ljava/lang/Class<*>;Ljdk/nashorn/internal/runtime/ScriptObject;)Z
MethodParameters:
Name Flags
iface final
sobj final
private static boolean isOfContext(jdk.nashorn.internal.objects.Global, jdk.nashorn.internal.runtime.Context);
descriptor: (Ljdk/nashorn/internal/objects/Global;Ljdk/nashorn/internal/runtime/Context;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.nashorn.internal.objects.Global.isOfContext:(Ljdk/nashorn/internal/runtime/Context;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 global Ljdk/nashorn/internal/objects/Global;
0 1 1 context Ljdk/nashorn/internal/runtime/Context;
MethodParameters:
Name Flags
global final
context final
}
SourceFile: "NashornScriptEngine.java"
NestMembers:
jdk.nashorn.api.scripting.NashornScriptEngine$1 jdk.nashorn.api.scripting.NashornScriptEngine$2 jdk.nashorn.api.scripting.NashornScriptEngine$3
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
jdk.nashorn.api.scripting.NashornScriptEngine$1
jdk.nashorn.api.scripting.NashornScriptEngine$2
jdk.nashorn.api.scripting.NashornScriptEngine$3
public abstract MultiGlobalCompiledScript = jdk.nashorn.internal.runtime.Context$MultiGlobalCompiledScript of jdk.nashorn.internal.runtime.Context
public ThrowErrorManager = jdk.nashorn.internal.runtime.Context$ThrowErrorManager of jdk.nashorn.internal.runtime.Context