public class jdk.nashorn.internal.objects.NativeWeakMap extends jdk.nashorn.internal.runtime.ScriptObject
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.nashorn.internal.objects.NativeWeakMap
super_class: jdk.nashorn.internal.runtime.ScriptObject
{
private final java.util.Map<java.lang.Object, java.lang.Object> jmap;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Object;Ljava/lang/Object;>;
private static jdk.nashorn.internal.runtime.PropertyMap $nasgenmap$;
descriptor: Ljdk/nashorn/internal/runtime/PropertyMap;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private void <init>(jdk.nashorn.internal.runtime.ScriptObject, jdk.nashorn.internal.runtime.PropertyMap);
descriptor: (Ljdk/nashorn/internal/runtime/ScriptObject;Ljdk/nashorn/internal/runtime/PropertyMap;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial jdk.nashorn.internal.runtime.ScriptObject.<init>:(Ljdk/nashorn/internal/runtime/ScriptObject;Ljdk/nashorn/internal/runtime/PropertyMap;)V
1: aload 0
new java.util.WeakHashMap
dup
invokespecial java.util.WeakHashMap.<init>:()V
putfield jdk.nashorn.internal.objects.NativeWeakMap.jmap:Ljava/util/Map;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/internal/objects/NativeWeakMap;
0 3 1 proto Ljdk/nashorn/internal/runtime/ScriptObject;
0 3 2 map Ljdk/nashorn/internal/runtime/PropertyMap;
MethodParameters:
Name Flags
proto final
map final
public static java.lang.Object construct(boolean, java.lang.Object, java.lang.Object);
descriptor: (ZLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iload 0
ifne 2
1: ldc "constructor.requires.new"
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "WeakMap"
aastore
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.typeError:(Ljava/lang/String;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/ECMAException;
athrow
2: StackMap locals:
StackMap stack:
invokestatic jdk.nashorn.internal.objects.Global.instance:()Ljdk/nashorn/internal/objects/Global;
astore 3
start local 3 3: new jdk.nashorn.internal.objects.NativeWeakMap
dup
aload 3
invokevirtual jdk.nashorn.internal.objects.Global.getWeakMapPrototype:()Ljdk/nashorn/internal/runtime/ScriptObject;
getstatic jdk.nashorn.internal.objects.NativeWeakMap.$nasgenmap$:Ljdk/nashorn/internal/runtime/PropertyMap;
invokespecial jdk.nashorn.internal.objects.NativeWeakMap.<init>:(Ljdk/nashorn/internal/runtime/ScriptObject;Ljdk/nashorn/internal/runtime/PropertyMap;)V
astore 4
start local 4 4: aload 4
getfield jdk.nashorn.internal.objects.NativeWeakMap.jmap:Ljava/util/Map;
aload 2
aload 3
invokestatic jdk.nashorn.internal.objects.NativeWeakMap.populateMap:(Ljava/util/Map;Ljava/lang/Object;Ljdk/nashorn/internal/objects/Global;)V
5: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 isNew Z
0 6 1 self Ljava/lang/Object;
0 6 2 arg Ljava/lang/Object;
3 6 3 global Ljdk/nashorn/internal/objects/Global;
4 6 4 weakMap Ljdk/nashorn/internal/objects/NativeWeakMap;
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.Constructor(arity = 0)
MethodParameters:
Name Flags
isNew final
self final
arg final
public static java.lang.Object set(java.lang.Object, java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokestatic jdk.nashorn.internal.objects.NativeWeakMap.getMap:(Ljava/lang/Object;)Ljdk/nashorn/internal/objects/NativeWeakMap;
astore 3
start local 3 1: aload 3
getfield jdk.nashorn.internal.objects.NativeWeakMap.jmap:Ljava/util/Map;
aload 1
invokestatic jdk.nashorn.internal.objects.NativeWeakMap.checkKey:(Ljava/lang/Object;)Ljava/lang/Object;
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 self Ljava/lang/Object;
0 3 1 key Ljava/lang/Object;
0 3 2 value Ljava/lang/Object;
1 3 3 map Ljdk/nashorn/internal/objects/NativeWeakMap;
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.Function(attributes = 2)
MethodParameters:
Name Flags
self final
key final
value final
public static java.lang.Object get(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic jdk.nashorn.internal.objects.NativeWeakMap.getMap:(Ljava/lang/Object;)Ljdk/nashorn/internal/objects/NativeWeakMap;
astore 2
start local 2 1: aload 1
invokestatic jdk.nashorn.internal.runtime.JSType.isPrimitive:(Ljava/lang/Object;)Z
ifeq 3
2: invokestatic jdk.nashorn.internal.runtime.Undefined.getUndefined:()Ljdk/nashorn/internal/runtime/Undefined;
areturn
3: StackMap locals: jdk.nashorn.internal.objects.NativeWeakMap
StackMap stack:
aload 2
getfield jdk.nashorn.internal.objects.NativeWeakMap.jmap:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 self Ljava/lang/Object;
0 4 1 key Ljava/lang/Object;
1 4 2 map Ljdk/nashorn/internal/objects/NativeWeakMap;
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.Function(attributes = 2)
MethodParameters:
Name Flags
self final
key final
public static boolean delete(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokestatic jdk.nashorn.internal.objects.NativeWeakMap.getMap:(Ljava/lang/Object;)Ljdk/nashorn/internal/objects/NativeWeakMap;
getfield jdk.nashorn.internal.objects.NativeWeakMap.jmap:Ljava/util/Map;
astore 2
start local 2 1: aload 1
invokestatic jdk.nashorn.internal.runtime.JSType.isPrimitive:(Ljava/lang/Object;)Z
ifeq 3
2: iconst_0
ireturn
3: StackMap locals: java.util.Map
StackMap stack:
aload 2
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
istore 3
start local 3 4: aload 2
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
5: iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 self Ljava/lang/Object;
0 6 1 key Ljava/lang/Object;
1 6 2 map Ljava/util/Map<Ljava/lang/Object;Ljava/lang/Object;>;
4 6 3 returnValue Z
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.Function(attributes = 2)
MethodParameters:
Name Flags
self final
key final
public static boolean has(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic jdk.nashorn.internal.objects.NativeWeakMap.getMap:(Ljava/lang/Object;)Ljdk/nashorn/internal/objects/NativeWeakMap;
astore 2
start local 2 1: aload 1
invokestatic jdk.nashorn.internal.runtime.JSType.isPrimitive:(Ljava/lang/Object;)Z
ifne 2
aload 2
getfield jdk.nashorn.internal.objects.NativeWeakMap.jmap:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 2
iconst_1
ireturn
StackMap locals: jdk.nashorn.internal.objects.NativeWeakMap
StackMap stack:
2: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 self Ljava/lang/Object;
0 3 1 key Ljava/lang/Object;
1 3 2 map Ljdk/nashorn/internal/objects/NativeWeakMap;
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.Function(attributes = 2)
MethodParameters:
Name Flags
self final
key final
public java.lang.String getClassName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "WeakMap"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/objects/NativeWeakMap;
static java.lang.Object checkKey(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokestatic jdk.nashorn.internal.runtime.JSType.isPrimitive:(Ljava/lang/Object;)Z
ifeq 2
1: ldc "invalid.weak.key"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
invokestatic jdk.nashorn.internal.runtime.ScriptRuntime.safeToString:(Ljava/lang/Object;)Ljava/lang/String;
aastore
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.typeError:(Ljava/lang/String;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/ECMAException;
athrow
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 key Ljava/lang/Object;
MethodParameters:
Name Flags
key final
static void populateMap(java.util.Map<java.lang.Object, java.lang.Object>, , jdk.nashorn.internal.objects.Global);
descriptor: (Ljava/util/Map;Ljava/lang/Object;Ljdk/nashorn/internal/objects/Global;)V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 2
aload 1
invokestatic jdk.nashorn.internal.runtime.Undefined.getUndefined:()Ljdk/nashorn/internal/runtime/Undefined;
if_acmpeq 2
1: aload 1
aload 2
aload 2
aload 0
invokedynamic accept(Ljdk/nashorn/internal/objects/Global;Ljava/util/Map;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
jdk/nashorn/internal/objects/NativeWeakMap.lambda$0(Ljdk/nashorn/internal/objects/Global;Ljava/util/Map;Ljava/lang/Object;)V (6)
(Ljava/lang/Object;)V
invokestatic jdk.nashorn.internal.objects.AbstractIterator.iterate:(Ljava/lang/Object;Ljdk/nashorn/internal/objects/Global;Ljava/util/function/Consumer;)V
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 map Ljava/util/Map<Ljava/lang/Object;Ljava/lang/Object;>;
0 3 1 arg Ljava/lang/Object;
0 3 2 global Ljdk/nashorn/internal/objects/Global;
Signature: (Ljava/util/Map<Ljava/lang/Object;Ljava/lang/Object;>;Ljava/lang/Object;Ljdk/nashorn/internal/objects/Global;)V
MethodParameters:
Name Flags
map final
arg final
global final
private static jdk.nashorn.internal.objects.NativeWeakMap getMap(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljdk/nashorn/internal/objects/NativeWeakMap;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
instanceof jdk.nashorn.internal.objects.NativeWeakMap
ifeq 2
1: aload 0
checkcast jdk.nashorn.internal.objects.NativeWeakMap
areturn
2: StackMap locals:
StackMap stack:
ldc "not.a.weak.map"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
invokestatic jdk.nashorn.internal.runtime.ScriptRuntime.safeToString:(Ljava/lang/Object;)Ljava/lang/String;
aastore
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.typeError:(Ljava/lang/String;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/ECMAException;
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 self Ljava/lang/Object;
MethodParameters:
Name Flags
self final
private static void lambda$0(jdk.nashorn.internal.objects.Global, java.util.Map, java.lang.Object);
descriptor: (Ljdk/nashorn/internal/objects/Global;Ljava/util/Map;Ljava/lang/Object;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=6, locals=4, args_size=3
start local 2 0: aload 2
invokestatic jdk.nashorn.internal.runtime.JSType.isPrimitive:(Ljava/lang/Object;)Z
ifeq 2
1: aload 0
ldc "not.an.object"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 2
invokestatic jdk.nashorn.internal.runtime.ScriptRuntime.safeToString:(Ljava/lang/Object;)Ljava/lang/String;
aastore
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.typeError:(Ljdk/nashorn/internal/objects/Global;Ljava/lang/String;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/ECMAException;
athrow
2: StackMap locals:
StackMap stack:
aload 2
instanceof jdk.nashorn.internal.runtime.ScriptObject
ifeq 5
3: aload 2
checkcast jdk.nashorn.internal.runtime.ScriptObject
astore 3
start local 3 4: aload 1
aload 3
iconst_0
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.get:(I)Ljava/lang/Object;
invokestatic jdk.nashorn.internal.objects.NativeWeakMap.checkKey:(Ljava/lang/Object;)Ljava/lang/Object;
aload 3
iconst_1
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.get:(I)Ljava/lang/Object;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 5: StackMap locals:
StackMap stack:
return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 6 2 value Ljava/lang/Object;
4 5 3 sobj Ljdk/nashorn/internal/runtime/ScriptObject;
}
SourceFile: "NativeWeakMap.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.ScriptClass(value = "WeakMap")