public final class jdk.nashorn.internal.runtime.AllocationStrategy implements java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.internal.runtime.AllocationStrategy
super_class: java.lang.Object
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final java.lang.invoke.MethodHandles$Lookup LOOKUP;
descriptor: Ljava/lang/invoke/MethodHandles$Lookup;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final int fieldCount;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean dualFields;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private transient java.lang.String allocatorClassName;
descriptor: Ljava/lang/String;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient java.lang.invoke.MethodHandle allocator;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient jdk.nashorn.internal.runtime.AllocationStrategy$AllocatorMap lastMap;
descriptor: Ljdk/nashorn/internal/runtime/AllocationStrategy$AllocatorMap;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
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 Ljdk/nashorn/internal/runtime/AllocationStrategy;
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.internal.runtime.AllocationStrategy.$assertionsDisabled:Z
3: invokestatic java.lang.invoke.MethodHandles.lookup:()Ljava/lang/invoke/MethodHandles$Lookup;
putstatic jdk.nashorn.internal.runtime.AllocationStrategy.LOOKUP:Ljava/lang/invoke/MethodHandles$Lookup;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(int, boolean);
descriptor: (IZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
putfield jdk.nashorn.internal.runtime.AllocationStrategy.fieldCount:I
2: aload 0
iload 2
putfield jdk.nashorn.internal.runtime.AllocationStrategy.dualFields:Z
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/internal/runtime/AllocationStrategy;
0 4 1 fieldCount I
0 4 2 dualFields Z
MethodParameters:
Name Flags
fieldCount final
dualFields final
private java.lang.String getAllocatorClassName();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.AllocationStrategy.allocatorClassName:Ljava/lang/String;
ifnonnull 2
1: aload 0
aload 0
getfield jdk.nashorn.internal.runtime.AllocationStrategy.fieldCount:I
aload 0
getfield jdk.nashorn.internal.runtime.AllocationStrategy.dualFields:Z
invokestatic jdk.nashorn.internal.codegen.ObjectClassGenerator.getClassName:(IZ)Ljava/lang/String;
invokestatic jdk.nashorn.internal.codegen.Compiler.binaryName:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.intern:()Ljava/lang/String;
putfield jdk.nashorn.internal.runtime.AllocationStrategy.allocatorClassName:Ljava/lang/String;
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.AllocationStrategy.allocatorClassName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/internal/runtime/AllocationStrategy;
synchronized jdk.nashorn.internal.runtime.PropertyMap getAllocatorMap(jdk.nashorn.internal.runtime.ScriptObject);
descriptor: (Ljdk/nashorn/internal/runtime/ScriptObject;)Ljdk/nashorn/internal/runtime/PropertyMap;
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: getstatic jdk.nashorn.internal.runtime.AllocationStrategy.$assertionsDisabled:Z
ifne 1
aload 1
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.getMap:()Ljdk/nashorn/internal/runtime/PropertyMap;
astore 2
start local 2 2: aload 0
getfield jdk.nashorn.internal.runtime.AllocationStrategy.lastMap:Ljdk/nashorn/internal/runtime/AllocationStrategy$AllocatorMap;
ifnull 16
3: aload 0
getfield jdk.nashorn.internal.runtime.AllocationStrategy.lastMap:Ljdk/nashorn/internal/runtime/AllocationStrategy$AllocatorMap;
invokevirtual jdk.nashorn.internal.runtime.AllocationStrategy$AllocatorMap.hasSharedProtoMap:()Z
ifne 13
4: aload 0
getfield jdk.nashorn.internal.runtime.AllocationStrategy.lastMap:Ljdk/nashorn/internal/runtime/AllocationStrategy$AllocatorMap;
aload 1
invokevirtual jdk.nashorn.internal.runtime.AllocationStrategy$AllocatorMap.hasSamePrototype:(Ljdk/nashorn/internal/runtime/ScriptObject;)Z
ifeq 6
5: aload 0
getfield jdk.nashorn.internal.runtime.AllocationStrategy.lastMap:Ljdk/nashorn/internal/runtime/AllocationStrategy$AllocatorMap;
getfield jdk.nashorn.internal.runtime.AllocationStrategy$AllocatorMap.allocatorMap:Ljdk/nashorn/internal/runtime/PropertyMap;
areturn
6: StackMap locals: jdk.nashorn.internal.runtime.PropertyMap
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.AllocationStrategy.lastMap:Ljdk/nashorn/internal/runtime/AllocationStrategy$AllocatorMap;
aload 2
invokevirtual jdk.nashorn.internal.runtime.AllocationStrategy$AllocatorMap.hasSameProtoMap:(Ljdk/nashorn/internal/runtime/PropertyMap;)Z
ifeq 13
aload 0
getfield jdk.nashorn.internal.runtime.AllocationStrategy.lastMap:Ljdk/nashorn/internal/runtime/AllocationStrategy$AllocatorMap;
invokevirtual jdk.nashorn.internal.runtime.AllocationStrategy$AllocatorMap.hasUnchangedProtoMap:()Z
ifeq 13
7: aconst_null
aload 0
invokevirtual jdk.nashorn.internal.runtime.AllocationStrategy.getAllocatorClassName:()Ljava/lang/String;
iconst_0
aload 0
getfield jdk.nashorn.internal.runtime.AllocationStrategy.fieldCount:I
iconst_0
invokestatic jdk.nashorn.internal.runtime.PropertyMap.newMap:(Ljava/util/Collection;Ljava/lang/String;III)Ljdk/nashorn/internal/runtime/PropertyMap;
astore 3
start local 3 8: new jdk.nashorn.internal.runtime.SharedPropertyMap
dup
aload 2
invokespecial jdk.nashorn.internal.runtime.SharedPropertyMap.<init>:(Ljdk/nashorn/internal/runtime/PropertyMap;)V
astore 4
start local 4 9: aload 3
aload 4
invokevirtual jdk.nashorn.internal.runtime.PropertyMap.setSharedProtoMap:(Ljdk/nashorn/internal/runtime/SharedPropertyMap;)V
10: aload 1
aload 4
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.setMap:(Ljdk/nashorn/internal/runtime/PropertyMap;)V
11: aload 0
new jdk.nashorn.internal.runtime.AllocationStrategy$AllocatorMap
dup
aload 1
aload 2
aload 3
invokespecial jdk.nashorn.internal.runtime.AllocationStrategy$AllocatorMap.<init>:(Ljdk/nashorn/internal/runtime/ScriptObject;Ljdk/nashorn/internal/runtime/PropertyMap;Ljdk/nashorn/internal/runtime/PropertyMap;)V
putfield jdk.nashorn.internal.runtime.AllocationStrategy.lastMap:Ljdk/nashorn/internal/runtime/AllocationStrategy$AllocatorMap;
12: aload 3
areturn
end local 4 end local 3 13: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.AllocationStrategy.lastMap:Ljdk/nashorn/internal/runtime/AllocationStrategy$AllocatorMap;
invokevirtual jdk.nashorn.internal.runtime.AllocationStrategy$AllocatorMap.hasValidSharedProtoMap:()Z
ifeq 16
aload 0
getfield jdk.nashorn.internal.runtime.AllocationStrategy.lastMap:Ljdk/nashorn/internal/runtime/AllocationStrategy$AllocatorMap;
aload 2
invokevirtual jdk.nashorn.internal.runtime.AllocationStrategy$AllocatorMap.hasSameProtoMap:(Ljdk/nashorn/internal/runtime/PropertyMap;)Z
ifeq 16
14: aload 1
aload 0
getfield jdk.nashorn.internal.runtime.AllocationStrategy.lastMap:Ljdk/nashorn/internal/runtime/AllocationStrategy$AllocatorMap;
invokevirtual jdk.nashorn.internal.runtime.AllocationStrategy$AllocatorMap.getSharedProtoMap:()Ljdk/nashorn/internal/runtime/PropertyMap;
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.setMap:(Ljdk/nashorn/internal/runtime/PropertyMap;)V
15: aload 0
getfield jdk.nashorn.internal.runtime.AllocationStrategy.lastMap:Ljdk/nashorn/internal/runtime/AllocationStrategy$AllocatorMap;
getfield jdk.nashorn.internal.runtime.AllocationStrategy$AllocatorMap.allocatorMap:Ljdk/nashorn/internal/runtime/PropertyMap;
areturn
16: StackMap locals:
StackMap stack:
aconst_null
aload 0
invokevirtual jdk.nashorn.internal.runtime.AllocationStrategy.getAllocatorClassName:()Ljava/lang/String;
iconst_0
aload 0
getfield jdk.nashorn.internal.runtime.AllocationStrategy.fieldCount:I
iconst_0
invokestatic jdk.nashorn.internal.runtime.PropertyMap.newMap:(Ljava/util/Collection;Ljava/lang/String;III)Ljdk/nashorn/internal/runtime/PropertyMap;
astore 3
start local 3 17: aload 0
new jdk.nashorn.internal.runtime.AllocationStrategy$AllocatorMap
dup
aload 1
aload 2
aload 3
invokespecial jdk.nashorn.internal.runtime.AllocationStrategy$AllocatorMap.<init>:(Ljdk/nashorn/internal/runtime/ScriptObject;Ljdk/nashorn/internal/runtime/PropertyMap;Ljdk/nashorn/internal/runtime/PropertyMap;)V
putfield jdk.nashorn.internal.runtime.AllocationStrategy.lastMap:Ljdk/nashorn/internal/runtime/AllocationStrategy$AllocatorMap;
18: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljdk/nashorn/internal/runtime/AllocationStrategy;
0 19 1 prototype Ljdk/nashorn/internal/runtime/ScriptObject;
2 19 2 protoMap Ljdk/nashorn/internal/runtime/PropertyMap;
8 13 3 allocatorMap Ljdk/nashorn/internal/runtime/PropertyMap;
9 13 4 sharedProtoMap Ljdk/nashorn/internal/runtime/SharedPropertyMap;
17 19 3 allocatorMap Ljdk/nashorn/internal/runtime/PropertyMap;
MethodParameters:
Name Flags
prototype final
jdk.nashorn.internal.runtime.ScriptObject allocate(jdk.nashorn.internal.runtime.PropertyMap);
descriptor: (Ljdk/nashorn/internal/runtime/PropertyMap;)Ljdk/nashorn/internal/runtime/ScriptObject;
flags: (0x0000)
Code:
stack=11, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.internal.runtime.AllocationStrategy.allocator:Ljava/lang/invoke/MethodHandle;
ifnonnull 4
1: aload 0
getstatic jdk.nashorn.internal.lookup.Lookup.MH:Ljdk/nashorn/internal/lookup/MethodHandleFunctionality;
getstatic jdk.nashorn.internal.runtime.AllocationStrategy.LOOKUP:Ljava/lang/invoke/MethodHandles$Lookup;
aload 0
invokevirtual jdk.nashorn.internal.runtime.AllocationStrategy.getAllocatorClassName:()Ljava/lang/String;
invokestatic jdk.nashorn.internal.runtime.Context.forStructureClass:(Ljava/lang/String;)Ljava/lang/Class;
2: getstatic jdk.nashorn.internal.codegen.CompilerConstants.ALLOCATE:Ljdk/nashorn/internal/codegen/CompilerConstants;
invokevirtual jdk.nashorn.internal.codegen.CompilerConstants.symbolName:()Ljava/lang/String;
getstatic jdk.nashorn.internal.lookup.Lookup.MH:Ljdk/nashorn/internal/lookup/MethodHandleFunctionality;
ldc Ljdk/nashorn/internal/runtime/ScriptObject;
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljdk/nashorn/internal/runtime/PropertyMap;
aastore
invokeinterface jdk.nashorn.internal.lookup.MethodHandleFunctionality.type:(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
3: invokeinterface jdk.nashorn.internal.lookup.MethodHandleFunctionality.findStatic:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
putfield jdk.nashorn.internal.runtime.AllocationStrategy.allocator:Ljava/lang/invoke/MethodHandle;
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.AllocationStrategy.allocator:Ljava/lang/invoke/MethodHandle;
aload 1
invokevirtual java.lang.invoke.MethodHandle.invokeExact:(Ljdk/nashorn/internal/runtime/PropertyMap;)Ljdk/nashorn/internal/runtime/ScriptObject;
5: areturn
6: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
start local 2 7: aload 2
athrow
end local 2 8: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
start local 2 9: new java.lang.RuntimeException
dup
aload 2
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/nashorn/internal/runtime/AllocationStrategy;
0 10 1 map Ljdk/nashorn/internal/runtime/PropertyMap;
7 8 2 e Ljava/lang/Throwable;
9 10 2 t Ljava/lang/Throwable;
Exception table:
from to target type
0 5 6 Class java.lang.RuntimeException
0 5 6 Class java.lang.Error
0 5 8 Class java.lang.Throwable
MethodParameters:
Name Flags
map final
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "AllocationStrategy[fieldCount="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.nashorn.internal.runtime.AllocationStrategy.fieldCount:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/AllocationStrategy;
}
SourceFile: "AllocationStrategy.java"
NestMembers:
jdk.nashorn.internal.runtime.AllocationStrategy$AllocatorMap
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
AllocatorMap = jdk.nashorn.internal.runtime.AllocationStrategy$AllocatorMap of jdk.nashorn.internal.runtime.AllocationStrategy