public class com.oracle.truffle.js.codec.BinaryEncoder
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: com.oracle.truffle.js.codec.BinaryEncoder
  super_class: java.lang.Object
{
  private static final int INITIAL_BUFFER_SIZE;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 8192

  private java.nio.ByteBuffer buffer;
    descriptor: Ljava/nio/ByteBuffer;
    flags: (0x0002) ACC_PRIVATE

  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 51
            ldc Lcom/oracle/truffle/js/codec/BinaryEncoder;
            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.codec.BinaryEncoder.$assertionsDisabled:Z
         3: .line 52
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
         0: .line 55
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 56
            aload 0 /* this */
            sipush 8192
            invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
            getstatic java.nio.ByteOrder.LITTLE_ENDIAN:Ljava/nio/ByteOrder;
            invokevirtual java.nio.ByteBuffer.order:(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
            putfield com.oracle.truffle.js.codec.BinaryEncoder.buffer:Ljava/nio/ByteBuffer;
         2: .line 57
            return
        end local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/oracle/truffle/js/codec/BinaryEncoder;

  public java.nio.ByteBuffer getBuffer();
    descriptor: ()Ljava/nio/ByteBuffer;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
         0: .line 60
            aload 0 /* this */
            getfield com.oracle.truffle.js.codec.BinaryEncoder.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
            getstatic java.nio.ByteOrder.LITTLE_ENDIAN:Ljava/nio/ByteOrder;
            invokevirtual java.nio.ByteBuffer.order:(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
            areturn
        end local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/oracle/truffle/js/codec/BinaryEncoder;

  protected void putU1(long);
    descriptor: (J)V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
        start local 1 // long value
         0: .line 64
            aload 0 /* this */
            iconst_1
            invokevirtual com.oracle.truffle.js.codec.BinaryEncoder.ensureCapacity:(I)V
         1: .line 65
            aload 0 /* this */
            getfield com.oracle.truffle.js.codec.BinaryEncoder.buffer:Ljava/nio/ByteBuffer;
            lload 1 /* value */
            l2i
            i2b
            invokevirtual java.nio.ByteBuffer.put:(B)Ljava/nio/ByteBuffer;
            pop
         2: .line 66
            return
        end local 1 // long value
        end local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    3     0   this  Lcom/oracle/truffle/js/codec/BinaryEncoder;
            0    3     1  value  J
    MethodParameters:
       Name  Flags
      value  

  private void ensureCapacity(int);
    descriptor: (I)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=4, args_size=2
        start local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
        start local 1 // int increase
         0: .line 69
            aload 0 /* this */
            getfield com.oracle.truffle.js.codec.BinaryEncoder.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.position:()I
            iload 1 /* increase */
            iadd
            aload 0 /* this */
            getfield com.oracle.truffle.js.codec.BinaryEncoder.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.limit:()I
            if_icmplt 7
         1: .line 70
            aload 0 /* this */
            getfield com.oracle.truffle.js.codec.BinaryEncoder.buffer:Ljava/nio/ByteBuffer;
            astore 2 /* oldBuffer */
        start local 2 // java.nio.ByteBuffer oldBuffer
         2: .line 71
            iconst_2
            aload 2 /* oldBuffer */
            invokevirtual java.nio.ByteBuffer.capacity:()I
            imul
            aload 2 /* oldBuffer */
            invokevirtual java.nio.ByteBuffer.position:()I
            iload 1 /* increase */
            iadd
            invokestatic java.lang.Math.max:(II)I
            invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
            getstatic java.nio.ByteOrder.LITTLE_ENDIAN:Ljava/nio/ByteOrder;
            invokevirtual java.nio.ByteBuffer.order:(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
            astore 3 /* newBuffer */
        start local 3 // java.nio.ByteBuffer newBuffer
         3: .line 72
            aload 3 /* newBuffer */
            aload 2 /* oldBuffer */
            invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
            pop
         4: .line 73
            getstatic com.oracle.truffle.js.codec.BinaryEncoder.$assertionsDisabled:Z
            ifne 5
            aload 3 /* newBuffer */
            invokevirtual java.nio.ByteBuffer.position:()I
            aload 2 /* oldBuffer */
            invokevirtual java.nio.ByteBuffer.position:()I
            if_icmpeq 5
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         5: .line 74
      StackMap locals: java.nio.ByteBuffer java.nio.ByteBuffer
      StackMap stack:
            getstatic com.oracle.truffle.js.codec.BinaryEncoder.$assertionsDisabled:Z
            ifne 6
            aload 3 /* newBuffer */
            invokevirtual java.nio.ByteBuffer.order:()Ljava/nio/ByteOrder;
            getstatic java.nio.ByteOrder.LITTLE_ENDIAN:Ljava/nio/ByteOrder;
            if_acmpeq 6
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         6: .line 75
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 3 /* newBuffer */
            putfield com.oracle.truffle.js.codec.BinaryEncoder.buffer:Ljava/nio/ByteBuffer;
        end local 3 // java.nio.ByteBuffer newBuffer
        end local 2 // java.nio.ByteBuffer oldBuffer
         7: .line 77
      StackMap locals:
      StackMap stack:
            return
        end local 1 // int increase
        end local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    8     0       this  Lcom/oracle/truffle/js/codec/BinaryEncoder;
            0    8     1   increase  I
            2    7     2  oldBuffer  Ljava/nio/ByteBuffer;
            3    7     3  newBuffer  Ljava/nio/ByteBuffer;
    MethodParameters:
          Name  Flags
      increase  

  private void putSV(long);
    descriptor: (J)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=7, locals=5, args_size=2
        start local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
        start local 1 // long value
         0: .line 83
            lload 1 /* value */
            lstore 3 /* cur */
        start local 3 // long cur
         1: .line 85
      StackMap locals: long
      StackMap stack:
            lload 3 /* cur */
            ldc -64
            lcmp
            iflt 4
            lload 3 /* cur */
            ldc 64
            lcmp
            ifge 4
         2: .line 86
            aload 0 /* this */
            lload 3 /* cur */
            ldc 127
            land
            invokevirtual com.oracle.truffle.js.codec.BinaryEncoder.putU1:(J)V
         3: .line 87
            return
         4: .line 89
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            ldc 128
            lload 3 /* cur */
            ldc 127
            land
            lor
            invokevirtual com.oracle.truffle.js.codec.BinaryEncoder.putU1:(J)V
         5: .line 90
            lload 3 /* cur */
            bipush 7
            lshr
            lstore 3 /* cur */
         6: .line 84
            goto 1
        end local 3 // long cur
        end local 1 // long value
        end local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    7     0   this  Lcom/oracle/truffle/js/codec/BinaryEncoder;
            0    7     1  value  J
            1    7     3    cur  J
    MethodParameters:
       Name  Flags
      value  

  private void putUV(long);
    descriptor: (J)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=7, locals=5, args_size=2
        start local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
        start local 1 // long value
         0: .line 98
            lload 1 /* value */
            lstore 3 /* cur */
        start local 3 // long cur
         1: .line 100
      StackMap locals: long
      StackMap stack:
            getstatic com.oracle.truffle.js.codec.BinaryEncoder.$assertionsDisabled:Z
            ifne 2
            lload 3 /* cur */
            lconst_0
            lcmp
            ifge 2
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         2: .line 101
      StackMap locals:
      StackMap stack:
            lload 3 /* cur */
            ldc 128
            lcmp
            ifge 5
         3: .line 102
            aload 0 /* this */
            lload 3 /* cur */
            ldc 127
            land
            invokevirtual com.oracle.truffle.js.codec.BinaryEncoder.putU1:(J)V
         4: .line 103
            return
         5: .line 105
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            ldc 128
            lload 3 /* cur */
            ldc 127
            land
            lor
            invokevirtual com.oracle.truffle.js.codec.BinaryEncoder.putU1:(J)V
         6: .line 106
            lload 3 /* cur */
            bipush 7
            lshr
            lstore 3 /* cur */
         7: .line 99
            goto 1
        end local 3 // long cur
        end local 1 // long value
        end local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    8     0   this  Lcom/oracle/truffle/js/codec/BinaryEncoder;
            0    8     1  value  J
            1    8     3    cur  J
    MethodParameters:
       Name  Flags
      value  

  public void putInt(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
        start local 1 // int value
         0: .line 111
            aload 0 /* this */
            iload 1 /* value */
            i2l
            invokevirtual com.oracle.truffle.js.codec.BinaryEncoder.putSV:(J)V
         1: .line 112
            return
        end local 1 // int value
        end local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    2     0   this  Lcom/oracle/truffle/js/codec/BinaryEncoder;
            0    2     1  value  I
    MethodParameters:
       Name  Flags
      value  

  public void putUInt(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
        start local 1 // int value
         0: .line 115
            aload 0 /* this */
            iload 1 /* value */
            i2l
            invokevirtual com.oracle.truffle.js.codec.BinaryEncoder.putUV:(J)V
         1: .line 116
            return
        end local 1 // int value
        end local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    2     0   this  Lcom/oracle/truffle/js/codec/BinaryEncoder;
            0    2     1  value  I
    MethodParameters:
       Name  Flags
      value  

  public void putLong(long);
    descriptor: (J)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
        start local 1 // long value
         0: .line 119
            aload 0 /* this */
            lload 1 /* value */
            invokevirtual com.oracle.truffle.js.codec.BinaryEncoder.putSV:(J)V
         1: .line 120
            return
        end local 1 // long value
        end local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    2     0   this  Lcom/oracle/truffle/js/codec/BinaryEncoder;
            0    2     1  value  J
    MethodParameters:
       Name  Flags
      value  

  public void putDouble(double);
    descriptor: (D)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
        start local 1 // double value
         0: .line 123
            aload 0 /* this */
            dload 1 /* value */
            invokestatic java.lang.Double.doubleToRawLongBits:(D)J
            invokevirtual com.oracle.truffle.js.codec.BinaryEncoder.putInt64:(J)V
         1: .line 124
            return
        end local 1 // double value
        end local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    2     0   this  Lcom/oracle/truffle/js/codec/BinaryEncoder;
            0    2     1  value  D
    MethodParameters:
       Name  Flags
      value  

  public void putInt64(long);
    descriptor: (J)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=6, args_size=2
        start local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
        start local 1 // long value
         0: .line 127
            aload 0 /* this */
            bipush 8
            invokevirtual com.oracle.truffle.js.codec.BinaryEncoder.ensureCapacity:(I)V
         1: .line 128
            lload 1 /* value */
            lstore 3 /* cur */
        start local 3 // long cur
         2: .line 129
            iconst_0
            istore 5 /* i */
        start local 5 // int i
         3: goto 7
         4: .line 130
      StackMap locals: long int
      StackMap stack:
            aload 0 /* this */
            lload 3 /* cur */
            ldc 255
            land
            invokevirtual com.oracle.truffle.js.codec.BinaryEncoder.putU1:(J)V
         5: .line 131
            lload 3 /* cur */
            bipush 8
            lushr
            lstore 3 /* cur */
         6: .line 129
            iinc 5 /* i */ 1
      StackMap locals:
      StackMap stack:
         7: iload 5 /* i */
            bipush 8
            if_icmplt 4
        end local 5 // int i
         8: .line 133
            return
        end local 3 // long cur
        end local 1 // long value
        end local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    9     0   this  Lcom/oracle/truffle/js/codec/BinaryEncoder;
            0    9     1  value  J
            2    9     3    cur  J
            3    8     5      i  I
    MethodParameters:
       Name  Flags
      value  

  public void putUTF8(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
        start local 1 // java.lang.String value
         0: .line 136
            aload 0 /* this */
            aload 1 /* value */
            getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
            invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
            invokevirtual com.oracle.truffle.js.codec.BinaryEncoder.putByteArray:([B)V
         1: .line 137
            return
        end local 1 // java.lang.String value
        end local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    2     0   this  Lcom/oracle/truffle/js/codec/BinaryEncoder;
            0    2     1  value  Ljava/lang/String;
    MethodParameters:
       Name  Flags
      value  

  public void putByteArray(byte[]);
    descriptor: ([B)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
        start local 1 // byte[] value
         0: .line 140
            aload 0 /* this */
            aload 1 /* value */
            arraylength
            i2l
            invokevirtual com.oracle.truffle.js.codec.BinaryEncoder.putUV:(J)V
         1: .line 141
            iconst_0
            istore 2 /* i */
        start local 2 // int i
         2: goto 5
         3: .line 142
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            aload 1 /* value */
            iload 2 /* i */
            baload
            i2l
            invokevirtual com.oracle.truffle.js.codec.BinaryEncoder.putU1:(J)V
         4: .line 141
            iinc 2 /* i */ 1
      StackMap locals:
      StackMap stack:
         5: iload 2 /* i */
            aload 1 /* value */
            arraylength
            if_icmplt 3
        end local 2 // int i
         6: .line 144
            return
        end local 1 // byte[] value
        end local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    7     0   this  Lcom/oracle/truffle/js/codec/BinaryEncoder;
            0    7     1  value  [B
            2    6     2      i  I
    MethodParameters:
       Name  Flags
      value  

  public void putBigInteger(java.math.BigInteger);
    descriptor: (Ljava/math/BigInteger;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=4, args_size=2
        start local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
        start local 1 // java.math.BigInteger value
         0: .line 147
            aload 1 /* value */
            astore 2 /* cur */
        start local 2 // java.math.BigInteger cur
         1: .line 149
      StackMap locals: java.math.BigInteger
      StackMap stack:
            aload 2 /* cur */
            invokevirtual java.math.BigInteger.intValue:()I
            istore 3 /* intValue */
        start local 3 // int intValue
         2: .line 150
            iload 3 /* intValue */
            bipush -64
            if_icmplt 5
            iload 3 /* intValue */
            bipush 64
            if_icmpge 5
         3: .line 151
            aload 0 /* this */
            iload 3 /* intValue */
            bipush 127
            iand
            i2l
            invokevirtual com.oracle.truffle.js.codec.BinaryEncoder.putU1:(J)V
         4: .line 152
            return
         5: .line 154
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            sipush 128
            iload 3 /* intValue */
            bipush 127
            iand
            ior
            i2l
            invokevirtual com.oracle.truffle.js.codec.BinaryEncoder.putU1:(J)V
         6: .line 155
            aload 2 /* cur */
            bipush 7
            invokevirtual java.math.BigInteger.shiftRight:(I)Ljava/math/BigInteger;
            astore 2 /* cur */
        end local 3 // int intValue
         7: .line 148
            goto 1
        end local 2 // java.math.BigInteger cur
        end local 1 // java.math.BigInteger value
        end local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    8     0      this  Lcom/oracle/truffle/js/codec/BinaryEncoder;
            0    8     1     value  Ljava/math/BigInteger;
            1    8     2       cur  Ljava/math/BigInteger;
            2    7     3  intValue  I
    MethodParameters:
       Name  Flags
      value  

  public void putInt32(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=4, args_size=2
        start local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
        start local 1 // int value
         0: .line 160
            aload 0 /* this */
            iconst_4
            invokevirtual com.oracle.truffle.js.codec.BinaryEncoder.ensureCapacity:(I)V
         1: .line 161
            iload 1 /* value */
            istore 2 /* cur */
        start local 2 // int cur
         2: .line 162
            iconst_0
            istore 3 /* i */
        start local 3 // int i
         3: goto 7
         4: .line 163
      StackMap locals: int int
      StackMap stack:
            aload 0 /* this */
            iload 2 /* cur */
            i2l
            ldc 255
            land
            invokevirtual com.oracle.truffle.js.codec.BinaryEncoder.putU1:(J)V
         5: .line 164
            iload 2 /* cur */
            bipush 8
            iushr
            istore 2 /* cur */
         6: .line 162
            iinc 3 /* i */ 1
      StackMap locals:
      StackMap stack:
         7: iload 3 /* i */
            iconst_4
            if_icmplt 4
        end local 3 // int i
         8: .line 166
            return
        end local 2 // int cur
        end local 1 // int value
        end local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    9     0   this  Lcom/oracle/truffle/js/codec/BinaryEncoder;
            0    9     1  value  I
            2    9     2    cur  I
            3    8     3      i  I
    MethodParameters:
       Name  Flags
      value  

  public int getPosition();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
         0: .line 169
            aload 0 /* this */
            getfield com.oracle.truffle.js.codec.BinaryEncoder.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.position:()I
            ireturn
        end local 0 // com.oracle.truffle.js.codec.BinaryEncoder this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/oracle/truffle/js/codec/BinaryEncoder;
}
SourceFile: "BinaryEncoder.java"