public abstract class com.oracle.truffle.js.runtime.JSAgent implements com.oracle.truffle.js.runtime.EcmaAgent
  minor version: 0
  major version: 59
  flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
  this_class: com.oracle.truffle.js.runtime.JSAgent
  super_class: java.lang.Object
{
  private static final java.util.concurrent.atomic.AtomicInteger signifierGenerator;
    descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private final int signifier;
    descriptor: I
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final boolean canBlock;
    descriptor: Z
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private boolean inAtomicSection;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  private boolean inCriticalSection;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  private final java.util.Deque<com.oracle.truffle.api.object.DynamicObject> promiseJobsQueue;
    descriptor: Ljava/util/Deque;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/Deque<Lcom/oracle/truffle/api/object/DynamicObject;>;

  private int interopCallStackDepth;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private org.graalvm.collections.EconomicSet<java.lang.Object> weakRefTargets;
    descriptor: Lorg/graalvm/collections/EconomicSet;
    flags: (0x0002) ACC_PRIVATE
    Signature: Lorg/graalvm/collections/EconomicSet<Ljava/lang/Object;>;

  private final java.util.Deque<java.lang.ref.WeakReference<com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject>> finalizationRegistryQueue;
    descriptor: Ljava/util/Deque;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/Deque<Ljava/lang/ref/WeakReference<Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;>;>;

  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: .line 65
            ldc Lcom/oracle/truffle/js/runtime/JSAgent;
            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.JSAgent.$assertionsDisabled:Z
         3: .line 67
            new java.util.concurrent.atomic.AtomicInteger
            dup
            iconst_0
            invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
            putstatic com.oracle.truffle.js.runtime.JSAgent.signifierGenerator:Ljava/util/concurrent/atomic/AtomicInteger;
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>(boolean);
    descriptor: (Z)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // com.oracle.truffle.js.runtime.JSAgent this
        start local 1 // boolean canBlock
         0: .line 98
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 99
            aload 0 /* this */
            getstatic com.oracle.truffle.js.runtime.JSAgent.signifierGenerator:Ljava/util/concurrent/atomic/AtomicInteger;
            invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
            putfield com.oracle.truffle.js.runtime.JSAgent.signifier:I
         2: .line 100
            aload 0 /* this */
            iload 1 /* canBlock */
            putfield com.oracle.truffle.js.runtime.JSAgent.canBlock:Z
         3: .line 101
            aload 0 /* this */
            new java.util.ArrayDeque
            dup
            iconst_4
            invokespecial java.util.ArrayDeque.<init>:(I)V
            putfield com.oracle.truffle.js.runtime.JSAgent.promiseJobsQueue:Ljava/util/Deque;
         4: .line 102
            aload 0 /* this */
            new java.util.ArrayDeque
            dup
            iconst_4
            invokespecial java.util.ArrayDeque.<init>:(I)V
            putfield com.oracle.truffle.js.runtime.JSAgent.finalizationRegistryQueue:Ljava/util/Deque;
         5: .line 103
            return
        end local 1 // boolean canBlock
        end local 0 // com.oracle.truffle.js.runtime.JSAgent this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    6     0      this  Lcom/oracle/truffle/js/runtime/JSAgent;
            0    6     1  canBlock  Z
    MethodParameters:
          Name  Flags
      canBlock  

  public abstract void wakeAgent(int);
    descriptor: (I)V
    flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
    MethodParameters:
      Name  Flags
      w     

  public int getSignifier();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.oracle.truffle.js.runtime.JSAgent this
         0: .line 108
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.signifier:I
            ireturn
        end local 0 // com.oracle.truffle.js.runtime.JSAgent this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/oracle/truffle/js/runtime/JSAgent;

  public boolean canBlock();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.oracle.truffle.js.runtime.JSAgent this
         0: .line 112
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.canBlock:Z
            ireturn
        end local 0 // com.oracle.truffle.js.runtime.JSAgent this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/oracle/truffle/js/runtime/JSAgent;

  public boolean inCriticalSection();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.oracle.truffle.js.runtime.JSAgent this
         0: .line 116
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.inCriticalSection:Z
            ireturn
        end local 0 // com.oracle.truffle.js.runtime.JSAgent this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/oracle/truffle/js/runtime/JSAgent;

  public void criticalSectionEnter(com.oracle.truffle.js.runtime.JSAgentWaiterList$JSAgentWaiterListEntry);
    descriptor: (Lcom/oracle/truffle/js/runtime/JSAgentWaiterList$JSAgentWaiterListEntry;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // com.oracle.truffle.js.runtime.JSAgent this
        start local 1 // com.oracle.truffle.js.runtime.JSAgentWaiterList$JSAgentWaiterListEntry wl
         0: .line 120
            getstatic com.oracle.truffle.js.runtime.JSAgent.$assertionsDisabled:Z
            ifne 1
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.inCriticalSection:Z
            ifeq 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 121
      StackMap locals:
      StackMap stack:
            aload 1 /* wl */
            invokevirtual com.oracle.truffle.js.runtime.JSAgentWaiterList$JSAgentWaiterListEntry.lock:()V
         2: .line 122
            aload 0 /* this */
            iconst_1
            putfield com.oracle.truffle.js.runtime.JSAgent.inCriticalSection:Z
         3: .line 123
            return
        end local 1 // com.oracle.truffle.js.runtime.JSAgentWaiterList$JSAgentWaiterListEntry wl
        end local 0 // com.oracle.truffle.js.runtime.JSAgent this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lcom/oracle/truffle/js/runtime/JSAgent;
            0    4     1    wl  Lcom/oracle/truffle/js/runtime/JSAgentWaiterList$JSAgentWaiterListEntry;
    MethodParameters:
      Name  Flags
      wl    

  public void criticalSectionLeave(com.oracle.truffle.js.runtime.JSAgentWaiterList$JSAgentWaiterListEntry);
    descriptor: (Lcom/oracle/truffle/js/runtime/JSAgentWaiterList$JSAgentWaiterListEntry;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // com.oracle.truffle.js.runtime.JSAgent this
        start local 1 // com.oracle.truffle.js.runtime.JSAgentWaiterList$JSAgentWaiterListEntry wl
         0: .line 126
            getstatic com.oracle.truffle.js.runtime.JSAgent.$assertionsDisabled:Z
            ifne 1
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.inCriticalSection:Z
            ifne 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 127
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_0
            putfield com.oracle.truffle.js.runtime.JSAgent.inCriticalSection:Z
         2: .line 128
            aload 1 /* wl */
            invokevirtual com.oracle.truffle.js.runtime.JSAgentWaiterList$JSAgentWaiterListEntry.unlock:()V
         3: .line 129
            return
        end local 1 // com.oracle.truffle.js.runtime.JSAgentWaiterList$JSAgentWaiterListEntry wl
        end local 0 // com.oracle.truffle.js.runtime.JSAgent this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lcom/oracle/truffle/js/runtime/JSAgent;
            0    4     1    wl  Lcom/oracle/truffle/js/runtime/JSAgentWaiterList$JSAgentWaiterListEntry;
    MethodParameters:
      Name  Flags
      wl    

  public void atomicSectionEnter(com.oracle.truffle.api.object.DynamicObject);
    descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=4, args_size=2
        start local 0 // com.oracle.truffle.js.runtime.JSAgent this
        start local 1 // com.oracle.truffle.api.object.DynamicObject target
         0: .line 132
            getstatic com.oracle.truffle.js.runtime.JSAgent.$assertionsDisabled:Z
            ifne 1
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.inAtomicSection:Z
            ifeq 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 133
      StackMap locals:
      StackMap stack:
            getstatic com.oracle.truffle.js.runtime.JSAgent.$assertionsDisabled:Z
            ifne 2
            aload 1 /* target */
            invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBufferView.isJSArrayBufferView:(Ljava/lang/Object;)Z
            ifne 2
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         2: .line 134
      StackMap locals:
      StackMap stack:
            aload 1 /* target */
            invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBufferView.getArrayBuffer:(Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/api/object/DynamicObject;
            astore 2 /* arrayBuffer */
        start local 2 // com.oracle.truffle.api.object.DynamicObject arrayBuffer
         3: .line 135
            aload 2 /* arrayBuffer */
            invokestatic com.oracle.truffle.js.runtime.builtins.JSSharedArrayBuffer.getWaiterList:(Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/js/runtime/JSAgentWaiterList;
            astore 3 /* waiterList */
        start local 3 // com.oracle.truffle.js.runtime.JSAgentWaiterList waiterList
         4: .line 136
            aload 3 /* waiterList */
            invokevirtual com.oracle.truffle.js.runtime.JSAgentWaiterList.lock:()V
         5: .line 137
            aload 0 /* this */
            iconst_1
            putfield com.oracle.truffle.js.runtime.JSAgent.inAtomicSection:Z
         6: .line 138
            return
        end local 3 // com.oracle.truffle.js.runtime.JSAgentWaiterList waiterList
        end local 2 // com.oracle.truffle.api.object.DynamicObject arrayBuffer
        end local 1 // com.oracle.truffle.api.object.DynamicObject target
        end local 0 // com.oracle.truffle.js.runtime.JSAgent this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    7     0         this  Lcom/oracle/truffle/js/runtime/JSAgent;
            0    7     1       target  Lcom/oracle/truffle/api/object/DynamicObject;
            3    7     2  arrayBuffer  Lcom/oracle/truffle/api/object/DynamicObject;
            4    7     3   waiterList  Lcom/oracle/truffle/js/runtime/JSAgentWaiterList;
    MethodParameters:
        Name  Flags
      target  

  public void atomicSectionLeave(com.oracle.truffle.api.object.DynamicObject);
    descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=4, args_size=2
        start local 0 // com.oracle.truffle.js.runtime.JSAgent this
        start local 1 // com.oracle.truffle.api.object.DynamicObject target
         0: .line 141
            getstatic com.oracle.truffle.js.runtime.JSAgent.$assertionsDisabled:Z
            ifne 1
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.inAtomicSection:Z
            ifne 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 142
      StackMap locals:
      StackMap stack:
            getstatic com.oracle.truffle.js.runtime.JSAgent.$assertionsDisabled:Z
            ifne 2
            aload 1 /* target */
            invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBufferView.isJSArrayBufferView:(Ljava/lang/Object;)Z
            ifne 2
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         2: .line 143
      StackMap locals:
      StackMap stack:
            aload 1 /* target */
            invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBufferView.getArrayBuffer:(Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/api/object/DynamicObject;
            astore 2 /* arrayBuffer */
        start local 2 // com.oracle.truffle.api.object.DynamicObject arrayBuffer
         3: .line 144
            aload 2 /* arrayBuffer */
            invokestatic com.oracle.truffle.js.runtime.builtins.JSSharedArrayBuffer.getWaiterList:(Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/js/runtime/JSAgentWaiterList;
            astore 3 /* waiterList */
        start local 3 // com.oracle.truffle.js.runtime.JSAgentWaiterList waiterList
         4: .line 145
            aload 0 /* this */
            iconst_0
            putfield com.oracle.truffle.js.runtime.JSAgent.inAtomicSection:Z
         5: .line 146
            aload 3 /* waiterList */
            invokevirtual com.oracle.truffle.js.runtime.JSAgentWaiterList.unlock:()V
         6: .line 147
            return
        end local 3 // com.oracle.truffle.js.runtime.JSAgentWaiterList waiterList
        end local 2 // com.oracle.truffle.api.object.DynamicObject arrayBuffer
        end local 1 // com.oracle.truffle.api.object.DynamicObject target
        end local 0 // com.oracle.truffle.js.runtime.JSAgent this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    7     0         this  Lcom/oracle/truffle/js/runtime/JSAgent;
            0    7     1       target  Lcom/oracle/truffle/api/object/DynamicObject;
            3    7     2  arrayBuffer  Lcom/oracle/truffle/api/object/DynamicObject;
            4    7     3   waiterList  Lcom/oracle/truffle/js/runtime/JSAgentWaiterList;
    MethodParameters:
        Name  Flags
      target  

  public final void enqueuePromiseJob(com.oracle.truffle.api.object.DynamicObject);
    descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;)V
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // com.oracle.truffle.js.runtime.JSAgent this
        start local 1 // com.oracle.truffle.api.object.DynamicObject job
         0: .line 151
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.promiseJobsQueue:Ljava/util/Deque;
            aload 1 /* job */
            invokeinterface java.util.Deque.push:(Ljava/lang/Object;)V
         1: .line 152
            return
        end local 1 // com.oracle.truffle.api.object.DynamicObject job
        end local 0 // com.oracle.truffle.js.runtime.JSAgent this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/oracle/truffle/js/runtime/JSAgent;
            0    2     1   job  Lcom/oracle/truffle/api/object/DynamicObject;
    RuntimeVisibleAnnotations: 
      com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
    MethodParameters:
      Name  Flags
      job   

  public final void processAllPromises(boolean);
    descriptor: (Z)V
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=3, locals=7, args_size=2
        start local 0 // com.oracle.truffle.js.runtime.JSAgent this
        start local 1 // boolean processWeakRefs
         0: .line 157
            goto 11
         1: .line 158
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.promiseJobsQueue:Ljava/util/Deque;
            invokeinterface java.util.Deque.pollLast:()Ljava/lang/Object;
            checkcast com.oracle.truffle.api.object.DynamicObject
            astore 2 /* nextJob */
        start local 2 // com.oracle.truffle.api.object.DynamicObject nextJob
         2: .line 159
            aload 2 /* nextJob */
            invokestatic com.oracle.truffle.js.runtime.builtins.JSFunction.isJSFunction:(Ljava/lang/Object;)Z
            ifeq 11
         3: .line 160
            aload 2 /* nextJob */
            invokestatic com.oracle.truffle.js.runtime.builtins.JSFunction.getRealm:(Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/js/runtime/JSRealm;
            astore 3 /* functionRealm */
        start local 3 // com.oracle.truffle.js.runtime.JSRealm functionRealm
         4: .line 161
            aload 3 /* functionRealm */
            invokevirtual com.oracle.truffle.js.runtime.JSRealm.getTruffleContext:()Lcom/oracle/truffle/api/TruffleContext;
            aconst_null
            invokevirtual com.oracle.truffle.api.TruffleContext.enter:(Lcom/oracle/truffle/api/nodes/Node;)Ljava/lang/Object;
            astore 4 /* prev */
        start local 4 // java.lang.Object prev
         5: .line 163
            aload 2 /* nextJob */
            getstatic com.oracle.truffle.js.runtime.objects.Undefined.instance:Lcom/oracle/truffle/js/runtime/objects/JSDynamicObject;
            getstatic com.oracle.truffle.js.runtime.JSArguments.EMPTY_ARGUMENTS_ARRAY:[Ljava/lang/Object;
            invokestatic com.oracle.truffle.js.runtime.builtins.JSFunction.call:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
            pop
         6: .line 164
            goto 10
      StackMap locals: com.oracle.truffle.js.runtime.JSAgent int com.oracle.truffle.api.object.DynamicObject com.oracle.truffle.js.runtime.JSRealm java.lang.Object
      StackMap stack: java.lang.Throwable
         7: astore 5
         8: .line 165
            aload 3 /* functionRealm */
            invokevirtual com.oracle.truffle.js.runtime.JSRealm.getTruffleContext:()Lcom/oracle/truffle/api/TruffleContext;
            aconst_null
            aload 4 /* prev */
            invokevirtual com.oracle.truffle.api.TruffleContext.leave:(Lcom/oracle/truffle/api/nodes/Node;Ljava/lang/Object;)V
         9: .line 166
            aload 5
            athrow
        10: .line 165
      StackMap locals:
      StackMap stack:
            aload 3 /* functionRealm */
            invokevirtual com.oracle.truffle.js.runtime.JSRealm.getTruffleContext:()Lcom/oracle/truffle/api/TruffleContext;
            aconst_null
            aload 4 /* prev */
            invokevirtual com.oracle.truffle.api.TruffleContext.leave:(Lcom/oracle/truffle/api/nodes/Node;Ljava/lang/Object;)V
        end local 4 // java.lang.Object prev
        end local 3 // com.oracle.truffle.js.runtime.JSRealm functionRealm
        end local 2 // com.oracle.truffle.api.object.DynamicObject nextJob
        11: .line 157
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.promiseJobsQueue:Ljava/util/Deque;
            invokeinterface java.util.Deque.isEmpty:()Z
            ifeq 1
        12: .line 169
            goto 20
      StackMap locals:
      StackMap stack: java.lang.Throwable
        13: astore 6
        14: .line 172
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.promiseJobsQueue:Ljava/util/Deque;
            invokeinterface java.util.Deque.clear:()V
        15: .line 173
            iload 1 /* processWeakRefs */
            ifeq 19
        16: .line 174
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.weakRefTargets:Lorg/graalvm/collections/EconomicSet;
            ifnull 18
        17: .line 175
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.weakRefTargets:Lorg/graalvm/collections/EconomicSet;
            invokeinterface org.graalvm.collections.EconomicSet.clear:()V
        18: .line 177
      StackMap locals: com.oracle.truffle.js.runtime.JSAgent int top top top top java.lang.Throwable
      StackMap stack:
            aload 0 /* this */
            invokevirtual com.oracle.truffle.js.runtime.JSAgent.cleanupFinalizers:()V
        19: .line 179
      StackMap locals:
      StackMap stack:
            aload 6
            athrow
        20: .line 172
      StackMap locals: com.oracle.truffle.js.runtime.JSAgent int
      StackMap stack:
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.promiseJobsQueue:Ljava/util/Deque;
            invokeinterface java.util.Deque.clear:()V
        21: .line 173
            iload 1 /* processWeakRefs */
            ifeq 25
        22: .line 174
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.weakRefTargets:Lorg/graalvm/collections/EconomicSet;
            ifnull 24
        23: .line 175
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.weakRefTargets:Lorg/graalvm/collections/EconomicSet;
            invokeinterface org.graalvm.collections.EconomicSet.clear:()V
        24: .line 177
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual com.oracle.truffle.js.runtime.JSAgent.cleanupFinalizers:()V
        25: .line 180
      StackMap locals:
      StackMap stack:
            return
        end local 1 // boolean processWeakRefs
        end local 0 // com.oracle.truffle.js.runtime.JSAgent this
      LocalVariableTable:
        Start  End  Slot             Name  Signature
            0   26     0             this  Lcom/oracle/truffle/js/runtime/JSAgent;
            0   26     1  processWeakRefs  Z
            2   11     2          nextJob  Lcom/oracle/truffle/api/object/DynamicObject;
            4   11     3    functionRealm  Lcom/oracle/truffle/js/runtime/JSRealm;
            5   11     4             prev  Ljava/lang/Object;
      Exception table:
        from    to  target  type
           5     7       7  any
           0    13      13  any
    RuntimeVisibleAnnotations: 
      com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
    MethodParameters:
                 Name  Flags
      processWeakRefs  

  private void cleanupFinalizers();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=4, args_size=1
        start local 0 // com.oracle.truffle.js.runtime.JSAgent this
         0: .line 187
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.finalizationRegistryQueue:Ljava/util/Deque;
            invokeinterface java.util.Deque.iterator:()Ljava/util/Iterator;
            astore 1 /* iter */
        start local 1 // java.util.Iterator iter
         1: goto 8
         2: .line 188
      StackMap locals: java.util.Iterator
      StackMap stack:
            aload 1 /* iter */
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast java.lang.ref.WeakReference
            astore 2 /* ref */
        start local 2 // java.lang.ref.WeakReference ref
         3: .line 189
            aload 2 /* ref */
            invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
            checkcast com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject
            astore 3 /* fr */
        start local 3 // com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject fr
         4: .line 190
            aload 3 /* fr */
            ifnonnull 7
         5: .line 191
            aload 1 /* iter */
            invokeinterface java.util.Iterator.remove:()V
         6: .line 192
            goto 8
         7: .line 193
      StackMap locals: java.lang.ref.WeakReference com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject
      StackMap stack:
            aload 3 /* fr */
            invokestatic com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistry.hostCleanupFinalizationRegistry:(Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;)V
        end local 3 // com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject fr
        end local 2 // java.lang.ref.WeakReference ref
         8: .line 187
      StackMap locals:
      StackMap stack:
            aload 1 /* iter */
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 2
        end local 1 // java.util.Iterator iter
         9: .line 196
            return
        end local 0 // com.oracle.truffle.js.runtime.JSAgent this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   10     0  this  Lcom/oracle/truffle/js/runtime/JSAgent;
            1    9     1  iter  Ljava/util/Iterator<Ljava/lang/ref/WeakReference<Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;>;>;
            3    8     2   ref  Ljava/lang/ref/WeakReference<Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;>;
            4    8     3    fr  Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;

  public final void interopBoundaryEnter();
    descriptor: ()V
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // com.oracle.truffle.js.runtime.JSAgent this
         0: .line 199
            aload 0 /* this */
            dup
            getfield com.oracle.truffle.js.runtime.JSAgent.interopCallStackDepth:I
            iconst_1
            iadd
            putfield com.oracle.truffle.js.runtime.JSAgent.interopCallStackDepth:I
         1: .line 200
            return
        end local 0 // com.oracle.truffle.js.runtime.JSAgent this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/oracle/truffle/js/runtime/JSAgent;

  public final boolean interopBoundaryExit();
    descriptor: ()Z
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // com.oracle.truffle.js.runtime.JSAgent this
         0: .line 203
            aload 0 /* this */
            dup
            getfield com.oracle.truffle.js.runtime.JSAgent.interopCallStackDepth:I
            iconst_1
            isub
            dup_x1
            putfield com.oracle.truffle.js.runtime.JSAgent.interopCallStackDepth:I
            ifne 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
        end local 0 // com.oracle.truffle.js.runtime.JSAgent this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/oracle/truffle/js/runtime/JSAgent;

  public boolean addWeakRefTargetToSet(java.lang.Object);
    descriptor: (Ljava/lang/Object;)Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // com.oracle.truffle.js.runtime.JSAgent this
        start local 1 // java.lang.Object target
         0: .line 208
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.weakRefTargets:Lorg/graalvm/collections/EconomicSet;
            ifnonnull 2
         1: .line 209
            aload 0 /* this */
            getstatic org.graalvm.collections.Equivalence.IDENTITY:Lorg/graalvm/collections/Equivalence;
            invokestatic org.graalvm.collections.EconomicSet.create:(Lorg/graalvm/collections/Equivalence;)Lorg/graalvm/collections/EconomicSet;
            putfield com.oracle.truffle.js.runtime.JSAgent.weakRefTargets:Lorg/graalvm/collections/EconomicSet;
         2: .line 211
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.weakRefTargets:Lorg/graalvm/collections/EconomicSet;
            aload 1 /* target */
            invokeinterface org.graalvm.collections.EconomicSet.add:(Ljava/lang/Object;)Z
            ireturn
        end local 1 // java.lang.Object target
        end local 0 // com.oracle.truffle.js.runtime.JSAgent this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    3     0    this  Lcom/oracle/truffle/js/runtime/JSAgent;
            0    3     1  target  Ljava/lang/Object;
    RuntimeVisibleAnnotations: 
      com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
    MethodParameters:
        Name  Flags
      target  

  public void registerFinalizationRegistry(com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject);
    descriptor: (Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // com.oracle.truffle.js.runtime.JSAgent this
        start local 1 // com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject finalizationRegistry
         0: .line 216
            aload 0 /* this */
            getfield com.oracle.truffle.js.runtime.JSAgent.finalizationRegistryQueue:Ljava/util/Deque;
            new java.lang.ref.WeakReference
            dup
            aload 1 /* finalizationRegistry */
            invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
            invokeinterface java.util.Deque.add:(Ljava/lang/Object;)Z
            pop
         1: .line 217
            return
        end local 1 // com.oracle.truffle.js.runtime.builtins.JSFinalizationRegistryObject finalizationRegistry
        end local 0 // com.oracle.truffle.js.runtime.JSAgent this
      LocalVariableTable:
        Start  End  Slot                  Name  Signature
            0    2     0                  this  Lcom/oracle/truffle/js/runtime/JSAgent;
            0    2     1  finalizationRegistry  Lcom/oracle/truffle/js/runtime/builtins/JSFinalizationRegistryObject;
    RuntimeVisibleAnnotations: 
      com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
    MethodParameters:
                      Name  Flags
      finalizationRegistry  
}
SourceFile: "JSAgent.java"
InnerClasses:
  public abstract TruffleBoundary = com.oracle.truffle.api.CompilerDirectives$TruffleBoundary of com.oracle.truffle.api.CompilerDirectives
  public final JSAgentWaiterListEntry = com.oracle.truffle.js.runtime.JSAgentWaiterList$JSAgentWaiterListEntry of com.oracle.truffle.js.runtime.JSAgentWaiterList