public final class com.oracle.svm.truffle.nfi.LocalNativeScope implements java.lang.AutoCloseable
  minor version: 0
  major version: 59
  flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
  this_class: com.oracle.svm.truffle.nfi.LocalNativeScope
  super_class: java.lang.Object
{
  private final com.oracle.svm.truffle.nfi.LocalNativeScope parent;
    descriptor: Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final short scopeId;
    descriptor: S
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

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

  private final org.graalvm.nativeimage.PinnedObject[] pinned;
    descriptor: [Lorg/graalvm/nativeimage/PinnedObject;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private java.util.ArrayList<java.lang.Object> localHandles;
    descriptor: Ljava/util/ArrayList;
    flags: (0x0002) ACC_PRIVATE
    Signature: Ljava/util/ArrayList<Ljava/lang/Object;>;

  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: .line 36
            ldc Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
            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.svm.truffle.nfi.LocalNativeScope.$assertionsDisabled:Z
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  void <init>(com.oracle.svm.truffle.nfi.LocalNativeScope, int);
    descriptor: (Lcom/oracle/svm/truffle/nfi/LocalNativeScope;I)V
    flags: (0x0000) 
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // com.oracle.svm.truffle.nfi.LocalNativeScope this
        start local 1 // com.oracle.svm.truffle.nfi.LocalNativeScope parent
        start local 2 // int patchCount
         0: .line 46
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 47
            aload 0 /* this */
            aload 1 /* parent */
            putfield com.oracle.svm.truffle.nfi.LocalNativeScope.parent:Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
         2: .line 48
            aload 1 /* parent */
            ifnonnull 5
         3: .line 49
            aload 0 /* this */
            iconst_1
            putfield com.oracle.svm.truffle.nfi.LocalNativeScope.scopeId:S
         4: .line 50
            goto 7
         5: .line 51
      StackMap locals: com.oracle.svm.truffle.nfi.LocalNativeScope com.oracle.svm.truffle.nfi.LocalNativeScope int
      StackMap stack:
            getstatic com.oracle.svm.truffle.nfi.LocalNativeScope.$assertionsDisabled:Z
            ifne 6
            aload 1 /* parent */
            getfield com.oracle.svm.truffle.nfi.LocalNativeScope.scopeId:S
            sipush 32767
            if_icmplt 6
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         6: .line 52
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* parent */
            getfield com.oracle.svm.truffle.nfi.LocalNativeScope.scopeId:S
            iconst_1
            iadd
            i2s
            putfield com.oracle.svm.truffle.nfi.LocalNativeScope.scopeId:S
         7: .line 55
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_0
            putfield com.oracle.svm.truffle.nfi.LocalNativeScope.pinCount:I
         8: .line 56
            aload 0 /* this */
            iload 2 /* patchCount */
            ifle 9
            iload 2 /* patchCount */
            anewarray org.graalvm.nativeimage.PinnedObject
            goto 10
      StackMap locals:
      StackMap stack: com.oracle.svm.truffle.nfi.LocalNativeScope
         9: aconst_null
      StackMap locals: com.oracle.svm.truffle.nfi.LocalNativeScope com.oracle.svm.truffle.nfi.LocalNativeScope int
      StackMap stack: com.oracle.svm.truffle.nfi.LocalNativeScope org.graalvm.nativeimage.PinnedObject[]
        10: putfield com.oracle.svm.truffle.nfi.LocalNativeScope.pinned:[Lorg/graalvm/nativeimage/PinnedObject;
        11: .line 58
            aload 0 /* this */
            aconst_null
            putfield com.oracle.svm.truffle.nfi.LocalNativeScope.localHandles:Ljava/util/ArrayList;
        12: .line 59
            return
        end local 2 // int patchCount
        end local 1 // com.oracle.svm.truffle.nfi.LocalNativeScope parent
        end local 0 // com.oracle.svm.truffle.nfi.LocalNativeScope this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   13     0        this  Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
            0   13     1      parent  Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
            0   13     2  patchCount  I
    MethodParameters:
            Name  Flags
      parent      
      patchCount  

  public com.oracle.svm.truffle.nfi.TruffleObjectHandle createLocalHandle(java.lang.Object);
    descriptor: (Ljava/lang/Object;)Lcom/oracle/svm/truffle/nfi/TruffleObjectHandle;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // com.oracle.svm.truffle.nfi.LocalNativeScope this
        start local 1 // java.lang.Object obj
         0: .line 62
            aload 0 /* this */
            getfield com.oracle.svm.truffle.nfi.LocalNativeScope.localHandles:Ljava/util/ArrayList;
            ifnonnull 2
         1: .line 63
            aload 0 /* this */
            new java.util.ArrayList
            dup
            invokespecial java.util.ArrayList.<init>:()V
            putfield com.oracle.svm.truffle.nfi.LocalNativeScope.localHandles:Ljava/util/ArrayList;
         2: .line 66
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.oracle.svm.truffle.nfi.LocalNativeScope.localHandles:Ljava/util/ArrayList;
            invokevirtual java.util.ArrayList.size:()I
            istore 2 /* idx */
        start local 2 // int idx
         3: .line 67
            aload 0 /* this */
            getfield com.oracle.svm.truffle.nfi.LocalNativeScope.localHandles:Ljava/util/ArrayList;
            aload 1 /* obj */
            invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
            pop
         4: .line 68
            getstatic com.oracle.svm.truffle.nfi.LocalNativeScope.$assertionsDisabled:Z
            ifne 5
            aload 0 /* this */
            getfield com.oracle.svm.truffle.nfi.LocalNativeScope.localHandles:Ljava/util/ArrayList;
            iload 2 /* idx */
            invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
            aload 1 /* obj */
            if_acmpeq 5
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         5: .line 70
      StackMap locals: int
      StackMap stack:
            iload 2 /* idx */
            invokestatic org.graalvm.word.WordFactory.unsigned:(I)Lorg/graalvm/word/UnsignedWord;
            bipush 16
            invokeinterface org.graalvm.word.UnsignedWord.shiftLeft:(I)Lorg/graalvm/word/UnsignedWord;
            aload 0 /* this */
            getfield com.oracle.svm.truffle.nfi.LocalNativeScope.scopeId:S
            ldc 65535
            iand
            invokeinterface org.graalvm.word.UnsignedWord.or:(I)Lorg/graalvm/word/UnsignedWord;
            invokeinterface org.graalvm.word.UnsignedWord.not:()Lorg/graalvm/word/UnsignedWord;
            checkcast com.oracle.svm.truffle.nfi.TruffleObjectHandle
            areturn
        end local 2 // int idx
        end local 1 // java.lang.Object obj
        end local 0 // com.oracle.svm.truffle.nfi.LocalNativeScope this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
            0    6     1   obj  Ljava/lang/Object;
            3    6     2   idx  I
    MethodParameters:
      Name  Flags
      obj   

  private com.oracle.svm.truffle.nfi.LocalNativeScope findScope(short);
    descriptor: (S)Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // com.oracle.svm.truffle.nfi.LocalNativeScope this
        start local 1 // short id
         0: .line 74
            aload 0 /* this */
            astore 2 /* cur */
        start local 2 // com.oracle.svm.truffle.nfi.LocalNativeScope cur
         1: .line 75
            goto 3
         2: .line 76
      StackMap locals: com.oracle.svm.truffle.nfi.LocalNativeScope
      StackMap stack:
            aload 2 /* cur */
            getfield com.oracle.svm.truffle.nfi.LocalNativeScope.parent:Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
            astore 2 /* cur */
         3: .line 75
      StackMap locals:
      StackMap stack:
            aload 2 /* cur */
            ifnull 4
            aload 2 /* cur */
            getfield com.oracle.svm.truffle.nfi.LocalNativeScope.scopeId:S
            iload 1 /* id */
            if_icmpgt 2
         4: .line 78
      StackMap locals:
      StackMap stack:
            aload 2 /* cur */
            ifnull 6
            aload 2 /* cur */
            getfield com.oracle.svm.truffle.nfi.LocalNativeScope.scopeId:S
            iload 1 /* id */
            if_icmpne 6
         5: .line 79
            aload 2 /* cur */
            areturn
         6: .line 82
      StackMap locals:
      StackMap stack:
            aconst_null
            areturn
        end local 2 // com.oracle.svm.truffle.nfi.LocalNativeScope cur
        end local 1 // short id
        end local 0 // com.oracle.svm.truffle.nfi.LocalNativeScope this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
            0    7     1    id  S
            1    7     2   cur  Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
    MethodParameters:
      Name  Flags
      id    

  public java.lang.Object resolveLocalHandle(com.oracle.svm.truffle.nfi.TruffleObjectHandle);
    descriptor: (Lcom/oracle/svm/truffle/nfi/TruffleObjectHandle;)Ljava/lang/Object;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=6, args_size=2
        start local 0 // com.oracle.svm.truffle.nfi.LocalNativeScope this
        start local 1 // com.oracle.svm.truffle.nfi.TruffleObjectHandle handle
         0: .line 87
            aload 1 /* handle */
            checkcast org.graalvm.compiler.word.Word
            invokevirtual org.graalvm.compiler.word.Word.not:()Lorg/graalvm/compiler/word/Word;
            astore 2 /* word */
        start local 2 // org.graalvm.compiler.word.Word word
         1: .line 88
            aload 2 /* word */
            ldc 65535
            invokevirtual org.graalvm.compiler.word.Word.and:(I)Lorg/graalvm/compiler/word/Word;
            invokevirtual org.graalvm.compiler.word.Word.rawValue:()J
            l2i
            i2s
            istore 3 /* handleScopeId */
        start local 3 // short handleScopeId
         2: .line 90
            aload 0 /* this */
            iload 3 /* handleScopeId */
            invokevirtual com.oracle.svm.truffle.nfi.LocalNativeScope.findScope:(S)Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
            astore 4 /* scope */
        start local 4 // com.oracle.svm.truffle.nfi.LocalNativeScope scope
         3: .line 91
            aload 4 /* scope */
            ifnull 6
         4: .line 92
            aload 2 /* word */
            bipush 16
            invokevirtual org.graalvm.compiler.word.Word.unsignedShiftRight:(I)Lorg/graalvm/compiler/word/Word;
            invokevirtual org.graalvm.compiler.word.Word.rawValue:()J
            l2i
            istore 5 /* idx */
        start local 5 // int idx
         5: .line 93
            aload 4 /* scope */
            getfield com.oracle.svm.truffle.nfi.LocalNativeScope.localHandles:Ljava/util/ArrayList;
            iload 5 /* idx */
            invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
            areturn
        end local 5 // int idx
         6: .line 96
      StackMap locals: org.graalvm.compiler.word.Word int com.oracle.svm.truffle.nfi.LocalNativeScope
      StackMap stack:
            aconst_null
            areturn
        end local 4 // com.oracle.svm.truffle.nfi.LocalNativeScope scope
        end local 3 // short handleScopeId
        end local 2 // org.graalvm.compiler.word.Word word
        end local 1 // com.oracle.svm.truffle.nfi.TruffleObjectHandle handle
        end local 0 // com.oracle.svm.truffle.nfi.LocalNativeScope this
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0    7     0           this  Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
            0    7     1         handle  Lcom/oracle/svm/truffle/nfi/TruffleObjectHandle;
            1    7     2           word  Lorg/graalvm/compiler/word/Word;
            2    7     3  handleScopeId  S
            3    7     4          scope  Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
            5    6     5            idx  I
    MethodParameters:
        Name  Flags
      handle  

  org.graalvm.word.PointerBase pinArray(java.lang.Object);
    descriptor: (Ljava/lang/Object;)Lorg/graalvm/word/PointerBase;
    flags: (0x0000) 
    Code:
      stack=5, locals=3, args_size=2
        start local 0 // com.oracle.svm.truffle.nfi.LocalNativeScope this
        start local 1 // java.lang.Object arr
         0: .line 102
            aload 1 /* arr */
            invokestatic org.graalvm.nativeimage.PinnedObject.create:(Ljava/lang/Object;)Lorg/graalvm/nativeimage/PinnedObject;
            astore 2 /* ret */
        start local 2 // org.graalvm.nativeimage.PinnedObject ret
         1: .line 103
            aload 0 /* this */
            getfield com.oracle.svm.truffle.nfi.LocalNativeScope.pinned:[Lorg/graalvm/nativeimage/PinnedObject;
            aload 0 /* this */
            dup
            getfield com.oracle.svm.truffle.nfi.LocalNativeScope.pinCount:I
            dup_x1
            iconst_1
            iadd
            putfield com.oracle.svm.truffle.nfi.LocalNativeScope.pinCount:I
            aload 2 /* ret */
            aastore
         2: .line 104
            aload 2 /* ret */
            iconst_0
            invokeinterface org.graalvm.nativeimage.PinnedObject.addressOfArrayElement:(I)Lorg/graalvm/word/PointerBase;
            areturn
        end local 2 // org.graalvm.nativeimage.PinnedObject ret
        end local 1 // java.lang.Object arr
        end local 0 // com.oracle.svm.truffle.nfi.LocalNativeScope this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
            0    3     1   arr  Ljava/lang/Object;
            1    3     2   ret  Lorg/graalvm/nativeimage/PinnedObject;
    RuntimeVisibleAnnotations: 
      com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
    MethodParameters:
      Name  Flags
      arr   

  org.graalvm.word.PointerBase pinString(java.lang.String);
    descriptor: (Ljava/lang/String;)Lorg/graalvm/word/PointerBase;
    flags: (0x0000) 
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // com.oracle.svm.truffle.nfi.LocalNativeScope this
        start local 1 // java.lang.String str
         0: .line 109
            aload 1 /* str */
            invokestatic com.oracle.svm.truffle.nfi.TruffleNFISupport.javaStringToUtf8:(Ljava/lang/String;)[B
            astore 2 /* array */
        start local 2 // byte[] array
         1: .line 110
            aload 0 /* this */
            aload 2 /* array */
            invokevirtual com.oracle.svm.truffle.nfi.LocalNativeScope.pinArray:(Ljava/lang/Object;)Lorg/graalvm/word/PointerBase;
            areturn
        end local 2 // byte[] array
        end local 1 // java.lang.String str
        end local 0 // com.oracle.svm.truffle.nfi.LocalNativeScope this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    2     0   this  Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
            0    2     1    str  Ljava/lang/String;
            1    2     2  array  [B
    RuntimeVisibleAnnotations: 
      com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
    MethodParameters:
      Name  Flags
      str   

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // com.oracle.svm.truffle.nfi.LocalNativeScope this
         0: .line 115
            iconst_0
            istore 1 /* i */
        start local 1 // int i
         1: goto 4
         2: .line 116
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield com.oracle.svm.truffle.nfi.LocalNativeScope.pinned:[Lorg/graalvm/nativeimage/PinnedObject;
            iload 1 /* i */
            aaload
            invokeinterface org.graalvm.nativeimage.PinnedObject.close:()V
         3: .line 115
            iinc 1 /* i */ 1
      StackMap locals:
      StackMap stack:
         4: iload 1 /* i */
            aload 0 /* this */
            getfield com.oracle.svm.truffle.nfi.LocalNativeScope.pinCount:I
            if_icmplt 2
        end local 1 // int i
         5: .line 119
            aload 0 /* this */
            aload 0 /* this */
            getfield com.oracle.svm.truffle.nfi.LocalNativeScope.parent:Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
            invokestatic com.oracle.svm.truffle.nfi.TruffleNFISupport.closeLocalScope:(Lcom/oracle/svm/truffle/nfi/LocalNativeScope;Lcom/oracle/svm/truffle/nfi/LocalNativeScope;)V
         6: .line 120
            return
        end local 0 // com.oracle.svm.truffle.nfi.LocalNativeScope this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Lcom/oracle/svm/truffle/nfi/LocalNativeScope;
            1    5     1     i  I
}
SourceFile: "LocalNativeScope.java"
InnerClasses:
  public abstract TruffleBoundary = com.oracle.truffle.api.CompilerDirectives$TruffleBoundary of com.oracle.truffle.api.CompilerDirectives