public final class com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistry extends com.oracle.truffle.js.runtime.builtins.JSNonProxy implements com.oracle.truffle.js.runtime.builtins.JSConstructorFactory$Default, com.oracle.truffle.js.runtime.builtins.PrototypeSupplier
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistry
super_class: com.oracle.truffle.js.runtime.builtins.JSNonProxy
{
public static final com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistry INSTANCE;
descriptor: Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistry;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.lang.String CLASS_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "FinalizationRegistry"
public static final java.lang.String PROTOTYPE_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "FinalizationRegistry.prototype"
public static final com.oracle.truffle.api.object.HiddenKey FINALIZATION_REGISTRY_ID;
descriptor: Lcom/oracle/truffle/api/object/HiddenKey;
flags: (0x0019) ACC_PUBLIC, 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/builtins/JSFinalizationRegistry;
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.builtins.JSFinalizationRegistry.$assertionsDisabled:Z
3: new com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistry
dup
invokespecial com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistry.<init>:()V
putstatic com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistry.INSTANCE:Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistry;
4: new com.oracle.truffle.api.object.HiddenKey
dup
ldc "FinalizationRegistry"
invokespecial com.oracle.truffle.api.object.HiddenKey.<init>:(Ljava/lang/String;)V
putstatic com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistry.FINALIZATION_REGISTRY_ID:Lcom/oracle/truffle/api/object/HiddenKey;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.oracle.truffle.js.runtime.builtins.JSNonProxy.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistry;
public static com.oracle.truffle.api.object.DynamicObject create(com.oracle.truffle.js.runtime.JSContext, com.oracle.truffle.api.interop.TruffleObject);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/api/interop/TruffleObject;)Lcom/oracle/truffle/api/object/DynamicObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.oracle.truffle.js.runtime.JSContext.getRealm:()Lcom/oracle/truffle/js/runtime/JSRealm;
astore 2
start local 2 1: aload 0
invokevirtual com.oracle.truffle.js.runtime.JSContext.getFinalizationRegistryFactory:()Lcom/oracle/truffle/js/runtime/builtins/JSObjectFactory;
astore 3
start local 3 2: aload 3
new com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject
dup
aload 3
aload 2
invokevirtual com.oracle.truffle.js.runtime.builtins.JSObjectFactory.getShape:(Lcom/oracle/truffle/js/runtime/JSRealm;)Lcom/oracle/truffle/api/object/Shape;
aload 1
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
invokespecial com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject.<init>:(Lcom/oracle/truffle/api/object/Shape;Lcom/oracle/truffle/api/interop/TruffleObject;Ljava/util/List;Ljava/lang/ref/ReferenceQueue;)V
aload 2
invokevirtual com.oracle.truffle.js.runtime.builtins.JSObjectFactory.initProto:(Lcom/oracle/truffle/api/object/DynamicObject;Lcom/oracle/truffle/js/runtime/JSRealm;)Lcom/oracle/truffle/api/object/DynamicObject;
checkcast com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject
astore 4
start local 4 3: getstatic com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistry.$assertionsDisabled:Z
ifne 4
aload 4
invokestatic com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistry.isJSFinalizationRegistry:(Ljava/lang/Object;)Z
ifne 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals: com.oracle.truffle.js.runtime.JSRealm com.oracle.truffle.js.runtime.builtins.JSObjectFactory com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject
StackMap stack:
aload 0
aload 4
invokevirtual com.oracle.truffle.js.runtime.JSContext.registerFinalizationRegistry:(Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;)V
5: aload 0
aload 4
invokevirtual com.oracle.truffle.js.runtime.JSContext.trackAllocation:(Ljava/lang/Object;)Ljava/lang/Object;
pop
6: 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 7 0 context Lcom/oracle/truffle/js/runtime/JSContext;
0 7 1 cleanupCallback Lcom/oracle/truffle/api/interop/TruffleObject;
1 7 2 realm Lcom/oracle/truffle/js/runtime/JSRealm;
2 7 3 factory Lcom/oracle/truffle/js/runtime/builtins/JSObjectFactory;
3 7 4 obj Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;
MethodParameters:
Name Flags
context
cleanupCallback
public com.oracle.truffle.api.object.DynamicObject createPrototype(com.oracle.truffle.js.runtime.JSRealm, com.oracle.truffle.api.object.DynamicObject);
descriptor: (Lcom/oracle/truffle/js/runtime/JSRealm;Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/api/object/DynamicObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual com.oracle.truffle.js.runtime.JSRealm.getContext:()Lcom/oracle/truffle/js/runtime/JSContext;
astore 3
start local 3 1: aload 1
invokestatic com.oracle.truffle.js.runtime.objects.JSObjectUtil.createOrdinaryPrototypeObject:(Lcom/oracle/truffle/js/runtime/JSRealm;)Lcom/oracle/truffle/api/object/DynamicObject;
astore 4
start local 4 2: aload 3
aload 4
aload 2
invokestatic com.oracle.truffle.js.runtime.objects.JSObjectUtil.putConstructorProperty:(Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/api/object/DynamicObject;Lcom/oracle/truffle/api/object/DynamicObject;)V
3: aload 1
aload 4
getstatic com.oracle.truffle.js.builtins.FinalizationRegistryPrototypeBuiltins.BUILTINS:Lcom/oracle/truffle/js/builtins/JSBuiltinsContainer;
invokestatic com.oracle.truffle.js.runtime.objects.JSObjectUtil.putFunctionsFromContainer:(Lcom/oracle/truffle/js/runtime/JSRealm;Lcom/oracle/truffle/api/object/DynamicObject;Lcom/oracle/truffle/js/builtins/JSBuiltinsContainer;)V
4: aload 4
ldc "FinalizationRegistry"
invokestatic com.oracle.truffle.js.runtime.objects.JSObjectUtil.putToStringTag:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;)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 this Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistry;
0 6 1 realm Lcom/oracle/truffle/js/runtime/JSRealm;
0 6 2 ctor Lcom/oracle/truffle/api/object/DynamicObject;
1 6 3 ctx Lcom/oracle/truffle/js/runtime/JSContext;
2 6 4 prototype Lcom/oracle/truffle/api/object/DynamicObject;
MethodParameters:
Name Flags
realm final
ctor
public com.oracle.truffle.api.object.Shape makeInitialShape(com.oracle.truffle.js.runtime.JSContext, com.oracle.truffle.api.object.DynamicObject);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/api/object/Shape;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
getstatic com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistry.INSTANCE:Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistry;
aload 1
invokestatic com.oracle.truffle.js.runtime.objects.JSObjectUtil.getProtoChildShape:(Lcom/oracle/truffle/api/object/DynamicObject;Lcom/oracle/truffle/js/runtime/builtins/JSClass;Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/api/object/Shape;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistry;
0 1 1 context Lcom/oracle/truffle/js/runtime/JSContext;
0 1 2 prototype Lcom/oracle/truffle/api/object/DynamicObject;
MethodParameters:
Name Flags
context
prototype
public static com.oracle.truffle.js.runtime.builtins.JSConstructor createConstructor(com.oracle.truffle.js.runtime.JSRealm);
descriptor: (Lcom/oracle/truffle/js/runtime/JSRealm;)Lcom/oracle/truffle/js/runtime/builtins/JSConstructor;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistry.INSTANCE:Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistry;
aload 0
invokevirtual com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistry.createConstructorAndPrototype:(Lcom/oracle/truffle/js/runtime/JSRealm;)Lcom/oracle/truffle/js/runtime/builtins/JSConstructor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 realm Lcom/oracle/truffle/js/runtime/JSRealm;
MethodParameters:
Name Flags
realm
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 "FinalizationRegistry"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistry;
public java.lang.String getClassName(com.oracle.truffle.api.object.DynamicObject);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistry.getClassName:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistry;
0 1 1 object Lcom/oracle/truffle/api/object/DynamicObject;
MethodParameters:
Name Flags
object
public java.lang.String toDisplayStringImpl(com.oracle.truffle.api.object.DynamicObject, int, boolean, com.oracle.truffle.js.runtime.JSContext);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;IZLcom/oracle/truffle/js/runtime/JSContext;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new java.lang.StringBuilder
dup
ldc "["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistry.getClassName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)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 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistry;
0 1 1 obj Lcom/oracle/truffle/api/object/DynamicObject;
0 1 2 depth I
0 1 3 allowSideEffects Z
0 1 4 context Lcom/oracle/truffle/js/runtime/JSContext;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
obj
depth
allowSideEffects
context
public static boolean isJSFinalizationRegistry(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public com.oracle.truffle.api.object.DynamicObject getIntrinsicDefaultProto(com.oracle.truffle.js.runtime.JSRealm);
descriptor: (Lcom/oracle/truffle/js/runtime/JSRealm;)Lcom/oracle/truffle/api/object/DynamicObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.oracle.truffle.js.runtime.JSRealm.getFinalizationRegistryPrototype:()Lcom/oracle/truffle/api/object/DynamicObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistry;
0 1 1 realm Lcom/oracle/truffle/js/runtime/JSRealm;
MethodParameters:
Name Flags
realm
public static void appendToCells(com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject, java.lang.Object, java.lang.Object, java.lang.Object);
descriptor: (Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject.getCells:()Ljava/util/List;
astore 4
start local 4 1: aload 0
invokevirtual com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject.getReferenceQueue:()Ljava/lang/ref/ReferenceQueue;
astore 5
start local 5 2: new java.lang.ref.WeakReference
dup
aload 1
aload 5
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
astore 6
start local 6 3: aload 4
new com.oracle.truffle.js.runtime.builtins.FinalizationRecord
dup
aload 6
aload 2
aload 3
invokespecial com.oracle.truffle.js.runtime.builtins.FinalizationRecord.<init>:(Ljava/lang/ref/WeakReference;Ljava/lang/Object;Ljava/lang/Object;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: 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 5 0 finalizationRegistry Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;
0 5 1 target Ljava/lang/Object;
0 5 2 holdings Ljava/lang/Object;
0 5 3 unregisterToken Ljava/lang/Object;
1 5 4 cells Ljava/util/List<Lcom/oracle/truffle/js/runtime/builtins/FinalizationRecord;>;
2 5 5 queue Ljava/lang/ref/ReferenceQueue<Ljava/lang/Object;>;
3 5 6 weakTarget Ljava/lang/ref/WeakReference<Ljava/lang/Object;>;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
finalizationRegistry
target
holdings
unregisterToken
public static boolean removeFromCells(com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject, java.lang.Object);
descriptor: (Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject.getCells:()Ljava/util/List;
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
start local 4 3: goto 8
4: StackMap locals: java.util.List int java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.oracle.truffle.js.runtime.builtins.FinalizationRecord
astore 5
start local 5 5: aload 5
invokevirtual com.oracle.truffle.js.runtime.builtins.FinalizationRecord.getUnregisterToken:()Ljava/lang/ref/WeakReference;
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
aload 1
invokestatic com.oracle.truffle.js.runtime.JSRuntime.isSameValue:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 8
6: aload 4
invokeinterface java.util.Iterator.remove:()V
7: iconst_1
istore 3
end local 5 8: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
end local 4 9: iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 finalizationRegistry Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;
0 10 1 unregisterToken Ljava/lang/Object;
1 10 2 cells Ljava/util/List<Lcom/oracle/truffle/js/runtime/builtins/FinalizationRecord;>;
2 10 3 removed Z
3 9 4 iterator Ljava/util/Iterator<Lcom/oracle/truffle/js/runtime/builtins/FinalizationRecord;>;
5 8 5 record Lcom/oracle/truffle/js/runtime/builtins/FinalizationRecord;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
finalizationRegistry
unregisterToken
public static void cleanupFinalizationRegistry(com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject, java.lang.Object);
descriptor: (Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 1
getstatic com.oracle.truffle.js.runtime.objects.Undefined.instance:Lcom/oracle/truffle/js/runtime/objects/JSDynamicObject;
if_acmpne 1
aload 0
invokevirtual com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject.getCleanupCallback:()Lcom/oracle/truffle/api/interop/TruffleObject;
goto 2
StackMap locals:
StackMap stack:
1: aload 1
StackMap locals:
StackMap stack: java.lang.Object
2: astore 2
start local 2 3: goto 6
start local 3 4: StackMap locals: java.lang.Object com.oracle.truffle.js.runtime.builtins.FinalizationRecord
StackMap stack:
getstatic com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistry.$assertionsDisabled:Z
ifne 5
aload 3
invokevirtual com.oracle.truffle.js.runtime.builtins.FinalizationRecord.getWeakRefTarget:()Ljava/lang/ref/WeakReference;
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
ifnull 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
aload 2
getstatic com.oracle.truffle.js.runtime.objects.Undefined.instance:Lcom/oracle/truffle/js/runtime/objects/JSDynamicObject;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
invokevirtual com.oracle.truffle.js.runtime.builtins.FinalizationRecord.getHeldValue:()Ljava/lang/Object;
aastore
invokestatic com.oracle.truffle.js.runtime.JSRuntime.call:(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 6: StackMap locals:
StackMap stack:
aload 0
invokestatic com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistry.removeCellEmptyTarget:(Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;)Lcom/oracle/truffle/js/runtime/builtins/FinalizationRecord;
dup
astore 3
start local 3 7: ifnonnull 4
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 finalizationRegistry Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;
0 9 1 callbackArg Ljava/lang/Object;
3 9 2 callback Ljava/lang/Object;
4 6 3 cell Lcom/oracle/truffle/js/runtime/builtins/FinalizationRecord;
7 9 3 cell Lcom/oracle/truffle/js/runtime/builtins/FinalizationRecord;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
finalizationRegistry
callbackArg
public static com.oracle.truffle.js.runtime.builtins.FinalizationRecord removeCellEmptyTarget(com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject);
descriptor: (Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;)Lcom/oracle/truffle/js/runtime/builtins/FinalizationRecord;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject.getCells:()Ljava/util/List;
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 8
3: StackMap locals: java.util.List int
StackMap stack:
aload 1
iload 2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast com.oracle.truffle.js.runtime.builtins.FinalizationRecord
astore 3
start local 3 4: aload 3
invokevirtual com.oracle.truffle.js.runtime.builtins.FinalizationRecord.getWeakRefTarget:()Ljava/lang/ref/WeakReference;
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
ifnonnull 7
5: aload 1
iload 2
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
pop
6: aload 3
areturn
end local 3 7: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
8: iload 2
aload 1
invokeinterface java.util.List.size:()I
if_icmplt 3
end local 2 9: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 finalizationRegistry Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;
1 10 1 cells Ljava/util/List<Lcom/oracle/truffle/js/runtime/builtins/FinalizationRecord;>;
2 9 2 i I
4 7 3 record Lcom/oracle/truffle/js/runtime/builtins/FinalizationRecord;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
finalizationRegistry
public static void hostCleanupFinalizationRegistry(com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject);
descriptor: (Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject.getReferenceQueue:()Ljava/lang/ref/ReferenceQueue;
astore 1
start local 1 1: aload 1
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
ifnull 2
iconst_1
goto 3
StackMap locals: java.lang.ref.ReferenceQueue
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: istore 2
start local 2 4: iload 2
ifne 5
aload 0
invokestatic com.oracle.truffle.js.runtime.objects.JSObject.getJSContext:(Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/js/runtime/JSContext;
invokevirtual com.oracle.truffle.js.runtime.JSContext.getContextOptions:()Lcom/oracle/truffle/js/runtime/JSContextOptions;
invokevirtual com.oracle.truffle.js.runtime.JSContextOptions.isTestV8Mode:()Z
ifne 5
iconst_0
goto 6
StackMap locals: int
StackMap stack:
5: iconst_1
StackMap locals:
StackMap stack: int
6: istore 3
start local 3 7: iload 3
ifeq 11
8: StackMap locals: int
StackMap stack:
aload 1
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
astore 4
start local 4 9: aload 4
ifnonnull 8
10: aload 0
getstatic com.oracle.truffle.js.runtime.objects.Undefined.instance:Lcom/oracle/truffle/js/runtime/objects/JSDynamicObject;
invokestatic com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistry.cleanupFinalizationRegistry:(Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;Ljava/lang/Object;)V
end local 4 11: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 finalizationRegistry Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;
1 12 1 queue Ljava/lang/ref/ReferenceQueue<Ljava/lang/Object;>;
4 12 2 queueNotEmpty Z
7 12 3 performCleanup Z
9 11 4 o Ljava/lang/Object;
MethodParameters:
Name Flags
finalizationRegistry
}
SourceFile: "JSFinalizationRegistry.java"
InnerClasses:
public abstract TruffleBoundary = com.oracle.truffle.api.CompilerDirectives$TruffleBoundary of com.oracle.truffle.api.CompilerDirectives
public abstract Default = com.oracle.truffle.js.runtime.builtins.JSConstructorFactory$Default of com.oracle.truffle.js.runtime.builtins.JSConstructorFactory