public class jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore extends jdk.nashorn.internal.runtime.CodeStore
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore
super_class: jdk.nashorn.internal.runtime.CodeStore
{
private static final int DEFAULT_MIN_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1000
private final java.io.File dir;
descriptor: Ljava/io/File;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean readOnly;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int minSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(jdk.nashorn.internal.runtime.Context);
descriptor: (Ljdk/nashorn/internal/runtime/Context;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc "nashorn.persistent.code.cache"
ldc "nashorn_code_cache"
invokestatic jdk.nashorn.internal.runtime.options.Options.getStringProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
iconst_0
sipush 1000
invokespecial jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore.<init>:(Ljdk/nashorn/internal/runtime/Context;Ljava/lang/String;ZI)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/CodeStore$DirectoryCodeStore;
0 2 1 context Ljdk/nashorn/internal/runtime/Context;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context final
public void <init>(jdk.nashorn.internal.runtime.Context, java.lang.String, boolean, int);
descriptor: (Ljdk/nashorn/internal/runtime/Context;Ljava/lang/String;ZI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial jdk.nashorn.internal.runtime.CodeStore.<init>:()V
1: aload 0
aload 2
aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getEnv:()Ljdk/nashorn/internal/runtime/ScriptEnvironment;
iload 3
invokestatic jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore.checkDirectory:(Ljava/lang/String;Ljdk/nashorn/internal/runtime/ScriptEnvironment;Z)Ljava/io/File;
putfield jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore.dir:Ljava/io/File;
2: aload 0
iload 3
putfield jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore.readOnly:Z
3: aload 0
iload 4
putfield jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore.minSize:I
4: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/nashorn/internal/runtime/CodeStore$DirectoryCodeStore;
0 5 1 context Ljdk/nashorn/internal/runtime/Context;
0 5 2 path Ljava/lang/String;
0 5 3 readOnly Z
0 5 4 minSize I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context final
path final
readOnly final
minSize final
private static java.io.File checkDirectory(java.lang.String, jdk.nashorn.internal.runtime.ScriptEnvironment, boolean);
descriptor: (Ljava/lang/String;Ljdk/nashorn/internal/runtime/ScriptEnvironment;Z)Ljava/io/File;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore$1
dup
aload 0
aload 1
iload 2
invokespecial jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore$1.<init>:(Ljava/lang/String;Ljdk/nashorn/internal/runtime/ScriptEnvironment;Z)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast java.io.File
1: areturn
2: StackMap locals:
StackMap stack: java.security.PrivilegedActionException
astore 3
start local 3 3: aload 3
invokevirtual java.security.PrivilegedActionException.getException:()Ljava/lang/Exception;
checkcast java.io.IOException
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 path Ljava/lang/String;
0 4 1 env Ljdk/nashorn/internal/runtime/ScriptEnvironment;
0 4 2 readOnly Z
3 4 3 e Ljava/security/PrivilegedActionException;
Exception table:
from to target type
0 1 2 Class java.security.PrivilegedActionException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
path final
env final
readOnly final
private static java.lang.String getVersionDir(jdk.nashorn.internal.runtime.ScriptEnvironment);
descriptor: (Ljdk/nashorn/internal/runtime/ScriptEnvironment;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: invokestatic jdk.nashorn.internal.codegen.OptimisticTypesPersistence.getVersionDirName:()Ljava/lang/String;
astore 1
start local 1 1: aload 0
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._optimistic_types:Z
ifeq 2
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "_opt"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
goto 3
StackMap locals: java.lang.String
StackMap stack:
2: aload 1
StackMap locals:
StackMap stack: java.lang.String
3: areturn
end local 1 4: StackMap locals: jdk.nashorn.internal.runtime.ScriptEnvironment
StackMap stack: java.lang.Exception
astore 1
start local 1 5: new java.io.IOException
dup
aload 1
invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 env Ljdk/nashorn/internal/runtime/ScriptEnvironment;
1 4 1 versionDir Ljava/lang/String;
5 6 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 3 4 Class java.lang.Exception
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
env final
public jdk.nashorn.internal.runtime.StoredScript load(jdk.nashorn.internal.runtime.Source, java.lang.String);
descriptor: (Ljdk/nashorn/internal/runtime/Source;Ljava/lang/String;)Ljdk/nashorn/internal/runtime/StoredScript;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore.belowThreshold:(Ljdk/nashorn/internal/runtime/Source;)Z
ifeq 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore.getCacheFile:(Ljdk/nashorn/internal/runtime/Source;Ljava/lang/String;)Ljava/io/File;
astore 3
start local 3 3: new jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore$2
dup
aload 0
aload 3
aload 1
aload 2
invokespecial jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore$2.<init>:(Ljdk/nashorn/internal/runtime/CodeStore$DirectoryCodeStore;Ljava/io/File;Ljdk/nashorn/internal/runtime/Source;Ljava/lang/String;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast jdk.nashorn.internal.runtime.StoredScript
4: areturn
5: StackMap locals: jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore jdk.nashorn.internal.runtime.Source java.lang.String java.io.File
StackMap stack: java.security.PrivilegedActionException
astore 4
start local 4 6: aload 0
invokevirtual jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore.getLogger:()Ljdk/nashorn/internal/runtime/logging/DebugLogger;
bipush 6
anewarray java.lang.Object
dup
iconst_0
ldc "failed to load "
aastore
dup
iconst_1
aload 1
aastore
dup
iconst_2
ldc "-"
aastore
dup
iconst_3
aload 2
aastore
dup
iconst_4
ldc ": "
aastore
dup
iconst_5
aload 4
invokevirtual java.security.PrivilegedActionException.getException:()Ljava/lang/Exception;
aastore
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.warning:([Ljava/lang/Object;)V
7: aconst_null
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/nashorn/internal/runtime/CodeStore$DirectoryCodeStore;
0 8 1 source Ljdk/nashorn/internal/runtime/Source;
0 8 2 functionKey Ljava/lang/String;
3 8 3 file Ljava/io/File;
6 8 4 e Ljava/security/PrivilegedActionException;
Exception table:
from to target type
3 4 5 Class java.security.PrivilegedActionException
MethodParameters:
Name Flags
source final
functionKey final
public jdk.nashorn.internal.runtime.StoredScript store(java.lang.String, jdk.nashorn.internal.runtime.Source, jdk.nashorn.internal.runtime.StoredScript);
descriptor: (Ljava/lang/String;Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/internal/runtime/StoredScript;)Ljdk/nashorn/internal/runtime/StoredScript;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore.readOnly:Z
ifne 1
aload 3
ifnull 1
aload 0
aload 2
invokevirtual jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore.belowThreshold:(Ljdk/nashorn/internal/runtime/Source;)Z
ifeq 2
1: StackMap locals:
StackMap stack:
aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 2
aload 1
invokevirtual jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore.getCacheFile:(Ljdk/nashorn/internal/runtime/Source;Ljava/lang/String;)Ljava/io/File;
astore 4
start local 4 3: new jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore$3
dup
aload 0
aload 4
aload 3
aload 2
aload 1
invokespecial jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore$3.<init>:(Ljdk/nashorn/internal/runtime/CodeStore$DirectoryCodeStore;Ljava/io/File;Ljdk/nashorn/internal/runtime/StoredScript;Ljdk/nashorn/internal/runtime/Source;Ljava/lang/String;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast jdk.nashorn.internal.runtime.StoredScript
4: areturn
5: StackMap locals: jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore java.lang.String jdk.nashorn.internal.runtime.Source jdk.nashorn.internal.runtime.StoredScript java.io.File
StackMap stack: java.security.PrivilegedActionException
astore 5
start local 5 6: aload 0
invokevirtual jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore.getLogger:()Ljdk/nashorn/internal/runtime/logging/DebugLogger;
bipush 6
anewarray java.lang.Object
dup
iconst_0
ldc "failed to store "
aastore
dup
iconst_1
aload 3
aastore
dup
iconst_2
ldc "-"
aastore
dup
iconst_3
aload 1
aastore
dup
iconst_4
ldc ": "
aastore
dup
iconst_5
aload 5
invokevirtual java.security.PrivilegedActionException.getException:()Ljava/lang/Exception;
aastore
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.warning:([Ljava/lang/Object;)V
7: aconst_null
areturn
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 8 0 this Ljdk/nashorn/internal/runtime/CodeStore$DirectoryCodeStore;
0 8 1 functionKey Ljava/lang/String;
0 8 2 source Ljdk/nashorn/internal/runtime/Source;
0 8 3 script Ljdk/nashorn/internal/runtime/StoredScript;
3 8 4 file Ljava/io/File;
6 8 5 e Ljava/security/PrivilegedActionException;
Exception table:
from to target type
3 4 5 Class java.security.PrivilegedActionException
MethodParameters:
Name Flags
functionKey final
source final
script final
private java.io.File getCacheFile(jdk.nashorn.internal.runtime.Source, java.lang.String);
descriptor: (Ljdk/nashorn/internal/runtime/Source;Ljava/lang/String;)Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new java.io.File
dup
aload 0
getfield jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore.dir:Ljava/io/File;
new java.lang.StringBuilder
dup
aload 1
invokevirtual jdk.nashorn.internal.runtime.Source.getDigest:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 45
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/CodeStore$DirectoryCodeStore;
0 1 1 source Ljdk/nashorn/internal/runtime/Source;
0 1 2 functionKey Ljava/lang/String;
MethodParameters:
Name Flags
source final
functionKey final
private boolean belowThreshold(jdk.nashorn.internal.runtime.Source);
descriptor: (Ljdk/nashorn/internal/runtime/Source;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.nashorn.internal.runtime.Source.getLength:()I
aload 0
getfield jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore.minSize:I
if_icmpge 3
1: aload 0
invokevirtual jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore.getLogger:()Ljdk/nashorn/internal/runtime/logging/DebugLogger;
iconst_2
anewarray java.lang.Object
dup
iconst_0
ldc "below size threshold "
aastore
dup
iconst_1
aload 1
aastore
invokevirtual jdk.nashorn.internal.runtime.logging.DebugLogger.info:([Ljava/lang/Object;)V
2: iconst_1
ireturn
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/internal/runtime/CodeStore$DirectoryCodeStore;
0 4 1 source Ljdk/nashorn/internal/runtime/Source;
MethodParameters:
Name Flags
source final
}
SourceFile: "CodeStore.java"
NestHost: jdk.nashorn.internal.runtime.CodeStore
InnerClasses:
public DirectoryCodeStore = jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore of jdk.nashorn.internal.runtime.CodeStore
jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore$1
jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore$2
jdk.nashorn.internal.runtime.CodeStore$DirectoryCodeStore$3