public class com.oracle.truffle.js.runtime.util.WeakMap implements java.util.Map<com.oracle.truffle.api.object.DynamicObject, java.lang.Object>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.js.runtime.util.WeakMap
super_class: java.lang.Object
{
private static final com.oracle.truffle.api.object.HiddenKey INVERTED_WEAK_MAP_KEY;
descriptor: Lcom/oracle/truffle/api/object/HiddenKey;
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=3, locals=0, args_size=0
0: ldc Lcom/oracle/truffle/js/runtime/util/WeakMap;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic com.oracle.truffle.js.runtime.util.WeakMap.$assertionsDisabled:Z
3: new com.oracle.truffle.api.object.HiddenKey
dup
ldc "InvertedWeakMap"
invokespecial com.oracle.truffle.api.object.HiddenKey.<init>:(Ljava/lang/String;)V
putstatic com.oracle.truffle.js.runtime.util.WeakMap.INVERTED_WEAK_MAP_KEY:Lcom/oracle/truffle/api/object/HiddenKey;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/js/runtime/util/WeakMap;
public static com.oracle.truffle.js.nodes.access.PropertyGetNode createInvertedKeyMapGetNode(com.oracle.truffle.js.runtime.JSContext);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic com.oracle.truffle.js.runtime.util.WeakMap.INVERTED_WEAK_MAP_KEY:Lcom/oracle/truffle/api/object/HiddenKey;
aload 0
invokestatic com.oracle.truffle.js.nodes.access.PropertyGetNode.createGetHidden:(Lcom/oracle/truffle/api/object/HiddenKey;Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lcom/oracle/truffle/js/runtime/JSContext;
MethodParameters:
Name Flags
context
public static com.oracle.truffle.js.nodes.access.HasHiddenKeyCacheNode createInvertedKeyMapHasNode();
descriptor: ()Lcom/oracle/truffle/js/nodes/access/HasHiddenKeyCacheNode;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.oracle.truffle.js.runtime.util.WeakMap.INVERTED_WEAK_MAP_KEY:Lcom/oracle/truffle/api/object/HiddenKey;
invokestatic com.oracle.truffle.js.nodes.access.HasHiddenKeyCacheNode.create:(Lcom/oracle/truffle/api/object/HiddenKey;)Lcom/oracle/truffle/js/nodes/access/HasHiddenKeyCacheNode;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static com.oracle.truffle.api.object.DynamicObject checkKey(java.lang.Object);
descriptor: (Ljava/lang/Object;)Lcom/oracle/truffle/api/object/DynamicObject;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
instanceof com.oracle.truffle.api.object.DynamicObject
ifne 2
1: new java.lang.IllegalArgumentException
dup
ldc "key must be instanceof DynamicObject"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
checkcast com.oracle.truffle.api.object.DynamicObject
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 key Ljava/lang/Object;
MethodParameters:
Name Flags
key
private static java.util.Map<com.oracle.truffle.js.runtime.util.WeakMap, java.lang.Object> getInvertedMap(com.oracle.truffle.api.object.DynamicObject, boolean);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;Z)Ljava/util/Map;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic com.oracle.truffle.js.runtime.util.WeakMap.INVERTED_WEAK_MAP_KEY:Lcom/oracle/truffle/api/object/HiddenKey;
invokestatic com.oracle.truffle.js.runtime.objects.JSDynamicObject.hasProperty:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;)Z
ifeq 2
1: aload 0
getstatic com.oracle.truffle.js.runtime.util.WeakMap.INVERTED_WEAK_MAP_KEY:Lcom/oracle/truffle/api/object/HiddenKey;
invokestatic com.oracle.truffle.js.runtime.objects.JSDynamicObject.getOrNull:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.WeakHashMap
areturn
2: StackMap locals:
StackMap stack:
iload 1
ifeq 4
3: aload 0
invokestatic com.oracle.truffle.js.runtime.util.WeakMap.putInvertedMap:(Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/util/WeakHashMap;
areturn
4: StackMap locals:
StackMap stack:
invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 k Lcom/oracle/truffle/api/object/DynamicObject;
0 5 1 put Z
Signature: (Lcom/oracle/truffle/api/object/DynamicObject;Z)Ljava/util/Map<Lcom/oracle/truffle/js/runtime/util/WeakMap;Ljava/lang/Object;>;
MethodParameters:
Name Flags
k
put
private static java.util.WeakHashMap<com.oracle.truffle.js.runtime.util.WeakMap, java.lang.Object> putInvertedMap(com.oracle.truffle.api.object.DynamicObject);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/util/WeakHashMap;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: new java.util.WeakHashMap
dup
invokespecial java.util.WeakHashMap.<init>:()V
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: getstatic com.oracle.truffle.js.runtime.util.WeakMap.$assertionsDisabled:Z
ifne 5
aload 0
invokestatic com.oracle.truffle.js.runtime.objects.JSDynamicObject.getObjectFlags:(Lcom/oracle/truffle/api/object/DynamicObject;)I
iconst_1
iand
ifne 3
iconst_1
goto 4
StackMap locals: java.util.WeakHashMap int
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: dup
istore 2
ifne 5
getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
invokevirtual java.lang.Boolean.booleanValue:()Z
ifne 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
aload 0
getstatic com.oracle.truffle.js.runtime.util.WeakMap.INVERTED_WEAK_MAP_KEY:Lcom/oracle/truffle/api/object/HiddenKey;
aload 1
invokestatic com.oracle.truffle.js.runtime.objects.JSObjectUtil.putHiddenProperty:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;Ljava/lang/Object;)V
6: getstatic com.oracle.truffle.js.runtime.util.WeakMap.$assertionsDisabled:Z
ifne 9
iload 2
aload 0
invokestatic com.oracle.truffle.js.runtime.objects.JSDynamicObject.getObjectFlags:(Lcom/oracle/truffle/api/object/DynamicObject;)I
iconst_1
iand
ifne 7
iconst_1
goto 8
StackMap locals:
StackMap stack: int
7: iconst_0
StackMap locals: com.oracle.truffle.api.object.DynamicObject java.util.WeakHashMap int
StackMap stack: int int
8: if_icmpeq 9
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
9: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 k Lcom/oracle/truffle/api/object/DynamicObject;
1 10 1 invertedMap Ljava/util/WeakHashMap<Lcom/oracle/truffle/js/runtime/util/WeakMap;Ljava/lang/Object;>;
2 10 2 wasExtensible Z
Signature: (Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/util/WeakHashMap<Lcom/oracle/truffle/js/runtime/util/WeakMap;Ljava/lang/Object;>;
MethodParameters:
Name Flags
k
public boolean containsKey(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.oracle.truffle.js.runtime.util.WeakMap.checkKey:(Ljava/lang/Object;)Lcom/oracle/truffle/api/object/DynamicObject;
astore 2
start local 2 1: aload 2
iconst_0
invokestatic com.oracle.truffle.js.runtime.util.WeakMap.getInvertedMap:(Lcom/oracle/truffle/api/object/DynamicObject;Z)Ljava/util/Map;
aload 0
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/js/runtime/util/WeakMap;
0 2 1 key Ljava/lang/Object;
1 2 2 k Lcom/oracle/truffle/api/object/DynamicObject;
MethodParameters:
Name Flags
key
public java.lang.Object get(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.oracle.truffle.js.runtime.util.WeakMap.checkKey:(Ljava/lang/Object;)Lcom/oracle/truffle/api/object/DynamicObject;
astore 2
start local 2 1: aload 2
iconst_0
invokestatic com.oracle.truffle.js.runtime.util.WeakMap.getInvertedMap:(Lcom/oracle/truffle/api/object/DynamicObject;Z)Ljava/util/Map;
aload 0
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 2 0 this Lcom/oracle/truffle/js/runtime/util/WeakMap;
0 2 1 key Ljava/lang/Object;
1 2 2 k Lcom/oracle/truffle/api/object/DynamicObject;
MethodParameters:
Name Flags
key
public java.lang.Object put(com.oracle.truffle.api.object.DynamicObject, java.lang.Object);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic com.oracle.truffle.js.runtime.util.WeakMap.checkKey:(Ljava/lang/Object;)Lcom/oracle/truffle/api/object/DynamicObject;
astore 3
start local 3 1: aload 3
iconst_1
invokestatic com.oracle.truffle.js.runtime.util.WeakMap.getInvertedMap:(Lcom/oracle/truffle/api/object/DynamicObject;Z)Ljava/util/Map;
aload 0
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;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 2 0 this Lcom/oracle/truffle/js/runtime/util/WeakMap;
0 2 1 key Lcom/oracle/truffle/api/object/DynamicObject;
0 2 2 value Ljava/lang/Object;
1 2 3 k Lcom/oracle/truffle/api/object/DynamicObject;
MethodParameters:
Name Flags
key
value
public java.lang.Object remove(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.oracle.truffle.js.runtime.util.WeakMap.checkKey:(Ljava/lang/Object;)Lcom/oracle/truffle/api/object/DynamicObject;
astore 2
start local 2 1: aload 2
iconst_0
invokestatic com.oracle.truffle.js.runtime.util.WeakMap.getInvertedMap:(Lcom/oracle/truffle/api/object/DynamicObject;Z)Ljava/util/Map;
aload 0
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/js/runtime/util/WeakMap;
0 2 1 key Ljava/lang/Object;
1 2 2 k Lcom/oracle/truffle/api/object/DynamicObject;
MethodParameters:
Name Flags
key
public void putAll(java.util.Map<? extends com.oracle.truffle.api.object.DynamicObject, ? extends java.lang.Object>);
descriptor: (Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokedynamic accept(Lcom/oracle/truffle/js/runtime/util/WeakMap;)Ljava/util/function/BiConsumer;
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;Ljava/lang/Object;)V
com/oracle/truffle/js/runtime/util/WeakMap.put(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;)Ljava/lang/Object; (5)
(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;)V
invokeinterface java.util.Map.forEach:(Ljava/util/function/BiConsumer;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/js/runtime/util/WeakMap;
0 2 1 m Ljava/util/Map<+Lcom/oracle/truffle/api/object/DynamicObject;+Ljava/lang/Object;>;
Signature: (Ljava/util/Map<+Lcom/oracle/truffle/api/object/DynamicObject;+Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
m
public boolean containsValue(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: invokestatic com.oracle.truffle.js.runtime.util.WeakMap.unsupported:()Ljava/lang/UnsupportedOperationException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/util/WeakMap;
0 1 1 value Ljava/lang/Object;
MethodParameters:
Name Flags
value
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic com.oracle.truffle.js.runtime.util.WeakMap.unsupported:()Ljava/lang/UnsupportedOperationException;
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/util/WeakMap;
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic com.oracle.truffle.js.runtime.util.WeakMap.unsupported:()Ljava/lang/UnsupportedOperationException;
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/util/WeakMap;
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic com.oracle.truffle.js.runtime.util.WeakMap.unsupported:()Ljava/lang/UnsupportedOperationException;
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/util/WeakMap;
public java.util.Set<com.oracle.truffle.api.object.DynamicObject> keySet();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic com.oracle.truffle.js.runtime.util.WeakMap.unsupported:()Ljava/lang/UnsupportedOperationException;
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/util/WeakMap;
Signature: ()Ljava/util/Set<Lcom/oracle/truffle/api/object/DynamicObject;>;
public java.util.Collection<java.lang.Object> values();
descriptor: ()Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic com.oracle.truffle.js.runtime.util.WeakMap.unsupported:()Ljava/lang/UnsupportedOperationException;
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/util/WeakMap;
Signature: ()Ljava/util/Collection<Ljava/lang/Object;>;
public java.util.Set<java.util.Map$Entry<com.oracle.truffle.api.object.DynamicObject, java.lang.Object>> entrySet();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic com.oracle.truffle.js.runtime.util.WeakMap.unsupported:()Ljava/lang/UnsupportedOperationException;
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/util/WeakMap;
Signature: ()Ljava/util/Set<Ljava/util/Map$Entry<Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;>;>;
private static java.lang.UnsupportedOperationException unsupported();
descriptor: ()Ljava/lang/UnsupportedOperationException;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.lang.UnsupportedOperationException
dup
ldc "Not supported by WeakMap"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
public java.lang.Object put(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast com.oracle.truffle.api.object.DynamicObject
aload 2
checkcast java.lang.Object
invokevirtual com.oracle.truffle.js.runtime.util.WeakMap.put:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;)Ljava/lang/Object;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/util/Map<Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;>;
SourceFile: "WeakMap.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Entry = java.util.Map$Entry of java.util.Map