public abstract class com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode extends com.oracle.truffle.trufflenode.buffer.NIOBufferAccessNode
  minor version: 0
  major version: 59
  flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
  this_class: com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode
  super_class: com.oracle.truffle.trufflenode.buffer.NIOBufferAccessNode
{
  protected com.oracle.truffle.js.nodes.cast.JSToIntegerAsIntNode toInt;
    descriptor: Lcom/oracle/truffle/js/nodes/cast/JSToIntegerAsIntNode;
    flags: (0x0004) ACC_PROTECTED
    RuntimeVisibleAnnotations: 
      com.oracle.truffle.api.nodes.Node$Child()

  protected final com.oracle.truffle.api.profiles.BranchProfile nativePath;
    descriptor: Lcom/oracle/truffle/api/profiles/BranchProfile;
    flags: (0x0014) ACC_PROTECTED, ACC_FINAL

  protected final com.oracle.truffle.api.profiles.BranchProfile errorBranch;
    descriptor: Lcom/oracle/truffle/api/profiles/BranchProfile;
    flags: (0x0014) ACC_PROTECTED, 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=1, locals=0, args_size=0
         0: .line 62
            ldc Lcom/oracle/truffle/trufflenode/buffer/NIOBufferUTF8WriteNode;
            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.trufflenode.buffer.NIOBufferUTF8WriteNode.$assertionsDisabled:Z
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>(com.oracle.truffle.js.runtime.JSContext, com.oracle.truffle.js.nodes.function.JSBuiltin);
    descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/js/nodes/function/JSBuiltin;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
        start local 1 // com.oracle.truffle.js.runtime.JSContext context
        start local 2 // com.oracle.truffle.js.nodes.function.JSBuiltin builtin
         0: .line 70
            aload 0 /* this */
            aload 1 /* context */
            aload 2 /* builtin */
            invokespecial com.oracle.truffle.trufflenode.buffer.NIOBufferAccessNode.<init>:(Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/js/nodes/function/JSBuiltin;)V
         1: .line 66
            aload 0 /* this */
            invokestatic com.oracle.truffle.api.profiles.BranchProfile.create:()Lcom/oracle/truffle/api/profiles/BranchProfile;
            putfield com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.nativePath:Lcom/oracle/truffle/api/profiles/BranchProfile;
         2: .line 67
            aload 0 /* this */
            invokestatic com.oracle.truffle.api.profiles.BranchProfile.create:()Lcom/oracle/truffle/api/profiles/BranchProfile;
            putfield com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
         3: .line 71
            aload 0 /* this */
            invokestatic com.oracle.truffle.js.nodes.cast.JSToIntegerAsIntNode.create:()Lcom/oracle/truffle/js/nodes/cast/JSToIntegerAsIntNode;
            putfield com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.toInt:Lcom/oracle/truffle/js/nodes/cast/JSToIntegerAsIntNode;
         4: .line 72
            return
        end local 2 // com.oracle.truffle.js.nodes.function.JSBuiltin builtin
        end local 1 // com.oracle.truffle.js.runtime.JSContext context
        end local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    5     0     this  Lcom/oracle/truffle/trufflenode/buffer/NIOBufferUTF8WriteNode;
            0    5     1  context  Lcom/oracle/truffle/js/runtime/JSContext;
            0    5     2  builtin  Lcom/oracle/truffle/js/nodes/function/JSBuiltin;
    MethodParameters:
         Name  Flags
      context  
      builtin  

  private com.oracle.truffle.api.object.DynamicObject getNativeUtf8Write();
    descriptor: ()Lcom/oracle/truffle/api/object/DynamicObject;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
         0: .line 75
            aload 0 /* this */
            invokevirtual com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.getContext:()Lcom/oracle/truffle/js/runtime/JSContext;
            invokevirtual com.oracle.truffle.js.runtime.JSContext.getRealm:()Lcom/oracle/truffle/js/runtime/JSRealm;
            invokestatic com.oracle.truffle.trufflenode.GraalJSAccess.getRealmEmbedderData:(Ljava/lang/Object;)Lcom/oracle/truffle/trufflenode/RealmData;
            invokevirtual com.oracle.truffle.trufflenode.RealmData.getNativeUtf8Write:()Lcom/oracle/truffle/api/object/DynamicObject;
            areturn
        end local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/oracle/truffle/trufflenode/buffer/NIOBufferUTF8WriteNode;

  public java.lang.Object write(com.oracle.truffle.api.object.DynamicObject, java.lang.String, int, int);
    descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;II)Ljava/lang/Object;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=5, args_size=5
        start local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
        start local 1 // com.oracle.truffle.api.object.DynamicObject target
        start local 2 // java.lang.String str
        start local 3 // int destOffset
        start local 4 // int bytes
         0: .line 81
            aload 0 /* this */
            aload 1 /* target */
            aload 2 /* str */
            iload 3 /* destOffset */
            iload 4 /* bytes */
            invokevirtual com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.doWrite:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;II)I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
         1: areturn
         2: .line 82
      StackMap locals:
      StackMap stack: java.nio.charset.CharacterCodingException
            pop
         3: .line 83
            aload 0 /* this */
            aload 1 /* target */
            aload 2 /* str */
            iload 3 /* destOffset */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            iload 4 /* bytes */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokevirtual com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.doNativeFallback:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            areturn
        end local 4 // int bytes
        end local 3 // int destOffset
        end local 2 // java.lang.String str
        end local 1 // com.oracle.truffle.api.object.DynamicObject target
        end local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    4     0        this  Lcom/oracle/truffle/trufflenode/buffer/NIOBufferUTF8WriteNode;
            0    4     1      target  Lcom/oracle/truffle/api/object/DynamicObject;
            0    4     2         str  Ljava/lang/String;
            0    4     3  destOffset  I
            0    4     4       bytes  I
      Exception table:
        from    to  target  type
           0     1       2  Class java.nio.charset.CharacterCodingException
    RuntimeVisibleAnnotations: 
      com.oracle.truffle.api.dsl.Specialization(guards = {"accept(target)"})
    MethodParameters:
            Name  Flags
      target      
      str         
      destOffset  
      bytes       

  public java.lang.Object writeDefaultOffset(com.oracle.truffle.api.object.DynamicObject, java.lang.String, int, java.lang.Object);
    descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/Object;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=5, args_size=5
        start local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
        start local 1 // com.oracle.truffle.api.object.DynamicObject target
        start local 2 // java.lang.String str
        start local 3 // int destOffset
        start local 4 // java.lang.Object bytes
         0: .line 90
            aload 0 /* this */
            aload 1 /* target */
            aload 2 /* str */
            iload 3 /* destOffset */
            aload 2 /* str */
            invokestatic com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.getBytes:(Ljava/lang/String;)[B
            arraylength
            invokevirtual com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.doWrite:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;II)I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
         1: areturn
         2: .line 91
      StackMap locals:
      StackMap stack: java.nio.charset.CharacterCodingException
            pop
         3: .line 92
            aload 0 /* this */
            aload 1 /* target */
            aload 2 /* str */
            iload 3 /* destOffset */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aload 4 /* bytes */
            invokevirtual com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.doNativeFallback:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            areturn
        end local 4 // java.lang.Object bytes
        end local 3 // int destOffset
        end local 2 // java.lang.String str
        end local 1 // com.oracle.truffle.api.object.DynamicObject target
        end local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    4     0        this  Lcom/oracle/truffle/trufflenode/buffer/NIOBufferUTF8WriteNode;
            0    4     1      target  Lcom/oracle/truffle/api/object/DynamicObject;
            0    4     2         str  Ljava/lang/String;
            0    4     3  destOffset  I
            0    4     4       bytes  Ljava/lang/Object;
      Exception table:
        from    to  target  type
           0     1       2  Class java.nio.charset.CharacterCodingException
    RuntimeVisibleAnnotations: 
      com.oracle.truffle.api.dsl.Specialization(guards = {"accept(target)", "isUndefined(bytes)"})
    MethodParameters:
            Name  Flags
      target      
      str         
      destOffset  
      bytes       

  public java.lang.Object writeDefaultValues(com.oracle.truffle.api.object.DynamicObject, java.lang.String, java.lang.Object, java.lang.Object);
    descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=5, args_size=5
        start local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
        start local 1 // com.oracle.truffle.api.object.DynamicObject target
        start local 2 // java.lang.String str
        start local 3 // java.lang.Object destOffset
        start local 4 // java.lang.Object bytes
         0: .line 99
            aload 0 /* this */
            aload 1 /* target */
            aload 2 /* str */
            iconst_0
            aload 2 /* str */
            invokestatic com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.getBytes:(Ljava/lang/String;)[B
            arraylength
            invokevirtual com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.doWrite:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;II)I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
         1: areturn
         2: .line 100
      StackMap locals:
      StackMap stack: java.nio.charset.CharacterCodingException
            pop
         3: .line 101
            aload 0 /* this */
            aload 1 /* target */
            aload 2 /* str */
            aload 3 /* destOffset */
            aload 4 /* bytes */
            invokevirtual com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.doNativeFallback:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            areturn
        end local 4 // java.lang.Object bytes
        end local 3 // java.lang.Object destOffset
        end local 2 // java.lang.String str
        end local 1 // com.oracle.truffle.api.object.DynamicObject target
        end local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    4     0        this  Lcom/oracle/truffle/trufflenode/buffer/NIOBufferUTF8WriteNode;
            0    4     1      target  Lcom/oracle/truffle/api/object/DynamicObject;
            0    4     2         str  Ljava/lang/String;
            0    4     3  destOffset  Ljava/lang/Object;
            0    4     4       bytes  Ljava/lang/Object;
      Exception table:
        from    to  target  type
           0     1       2  Class java.nio.charset.CharacterCodingException
    RuntimeVisibleAnnotations: 
      com.oracle.truffle.api.dsl.Specialization(guards = {"accept(target)", "isUndefined(destOffset)", "isUndefined(bytes)"})
    MethodParameters:
            Name  Flags
      target      
      str         
      destOffset  
      bytes       

  public java.lang.Object write(com.oracle.truffle.api.object.DynamicObject, java.lang.String, double, double);
    descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;DD)Ljava/lang/Object;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=7, args_size=5
        start local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
        start local 1 // com.oracle.truffle.api.object.DynamicObject target
        start local 2 // java.lang.String str
        start local 3 // double destOffset
        start local 5 // double bytes
         0: .line 108
            aload 0 /* this */
            aload 1 /* target */
            aload 2 /* str */
            aload 0 /* this */
            getfield com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.toInt:Lcom/oracle/truffle/js/nodes/cast/JSToIntegerAsIntNode;
            dload 3 /* destOffset */
            invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
            invokevirtual com.oracle.truffle.js.nodes.cast.JSToIntegerAsIntNode.executeInt:(Ljava/lang/Object;)I
            aload 0 /* this */
            getfield com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.toInt:Lcom/oracle/truffle/js/nodes/cast/JSToIntegerAsIntNode;
            dload 5 /* bytes */
            invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
            invokevirtual com.oracle.truffle.js.nodes.cast.JSToIntegerAsIntNode.executeInt:(Ljava/lang/Object;)I
            invokevirtual com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.doWrite:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;II)I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
         1: areturn
         2: .line 109
      StackMap locals:
      StackMap stack: java.nio.charset.CharacterCodingException
            pop
         3: .line 110
            aload 0 /* this */
            aload 1 /* target */
            aload 2 /* str */
            dload 3 /* destOffset */
            invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
            dload 5 /* bytes */
            invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
            invokevirtual com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.doNativeFallback:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            areturn
        end local 5 // double bytes
        end local 3 // double destOffset
        end local 2 // java.lang.String str
        end local 1 // com.oracle.truffle.api.object.DynamicObject target
        end local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    4     0        this  Lcom/oracle/truffle/trufflenode/buffer/NIOBufferUTF8WriteNode;
            0    4     1      target  Lcom/oracle/truffle/api/object/DynamicObject;
            0    4     2         str  Ljava/lang/String;
            0    4     3  destOffset  D
            0    4     5       bytes  D
      Exception table:
        from    to  target  type
           0     1       2  Class java.nio.charset.CharacterCodingException
    RuntimeVisibleAnnotations: 
      com.oracle.truffle.api.dsl.Specialization(guards = {"accept(target)"})
    MethodParameters:
            Name  Flags
      target      
      str         
      destOffset  
      bytes       

  public java.lang.Object writeDefault(com.oracle.truffle.api.object.DynamicObject, java.lang.Object, java.lang.Object, java.lang.Object);
    descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=5, args_size=5
        start local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
        start local 1 // com.oracle.truffle.api.object.DynamicObject target
        start local 2 // java.lang.Object str
        start local 3 // java.lang.Object destOffset
        start local 4 // java.lang.Object bytes
         0: .line 116
            aload 0 /* this */
            invokevirtual com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.getNativeUtf8Write:()Lcom/oracle/truffle/api/object/DynamicObject;
            aload 1 /* target */
            iconst_3
            anewarray java.lang.Object
            dup
            iconst_0
            aload 2 /* str */
            aastore
            dup
            iconst_1
            aload 3 /* destOffset */
            aastore
            dup
            iconst_2
            aload 4 /* bytes */
            aastore
            invokestatic com.oracle.truffle.js.runtime.builtins.JSFunction.call:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
            areturn
        end local 4 // java.lang.Object bytes
        end local 3 // java.lang.Object destOffset
        end local 2 // java.lang.Object str
        end local 1 // com.oracle.truffle.api.object.DynamicObject target
        end local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    1     0        this  Lcom/oracle/truffle/trufflenode/buffer/NIOBufferUTF8WriteNode;
            0    1     1      target  Lcom/oracle/truffle/api/object/DynamicObject;
            0    1     2         str  Ljava/lang/Object;
            0    1     3  destOffset  Ljava/lang/Object;
            0    1     4       bytes  Ljava/lang/Object;
    RuntimeVisibleAnnotations: 
      com.oracle.truffle.api.dsl.Specialization()
    MethodParameters:
            Name  Flags
      target      
      str         
      destOffset  
      bytes       

  public java.lang.Object writeAbort(java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object);
    descriptor: (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=5, args_size=5
        start local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
        start local 1 // java.lang.Object target
        start local 2 // java.lang.Object str
        start local 3 // java.lang.Object destOffset
        start local 4 // java.lang.Object bytes
         0: .line 122
            invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorArrayBufferViewExpected:()Lcom/oracle/truffle/js/runtime/JSException;
            athrow
        end local 4 // java.lang.Object bytes
        end local 3 // java.lang.Object destOffset
        end local 2 // java.lang.Object str
        end local 1 // java.lang.Object target
        end local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    1     0        this  Lcom/oracle/truffle/trufflenode/buffer/NIOBufferUTF8WriteNode;
            0    1     1      target  Ljava/lang/Object;
            0    1     2         str  Ljava/lang/Object;
            0    1     3  destOffset  Ljava/lang/Object;
            0    1     4       bytes  Ljava/lang/Object;
    RuntimeVisibleAnnotations: 
      com.oracle.truffle.api.dsl.Specialization(guards = {"!isJSArrayBufferView(target)"})
    MethodParameters:
            Name  Flags
      target      
      str         
      destOffset  
      bytes       

  private java.lang.Object doNativeFallback(com.oracle.truffle.api.object.DynamicObject, java.lang.String, java.lang.Object, java.lang.Object);
    descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=6, locals=5, args_size=5
        start local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
        start local 1 // com.oracle.truffle.api.object.DynamicObject target
        start local 2 // java.lang.String str
        start local 3 // java.lang.Object destOffset
        start local 4 // java.lang.Object bytes
         0: .line 126
            aload 0 /* this */
            getfield com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.nativePath:Lcom/oracle/truffle/api/profiles/BranchProfile;
            invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
         1: .line 127
            aload 0 /* this */
            invokevirtual com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.getNativeUtf8Write:()Lcom/oracle/truffle/api/object/DynamicObject;
            aload 1 /* target */
            iconst_3
            anewarray java.lang.Object
            dup
            iconst_0
            aload 2 /* str */
            aastore
            dup
            iconst_1
            aload 3 /* destOffset */
            aastore
            dup
            iconst_2
            aload 4 /* bytes */
            aastore
            invokestatic com.oracle.truffle.js.runtime.builtins.JSFunction.call:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
            areturn
        end local 4 // java.lang.Object bytes
        end local 3 // java.lang.Object destOffset
        end local 2 // java.lang.String str
        end local 1 // com.oracle.truffle.api.object.DynamicObject target
        end local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    2     0        this  Lcom/oracle/truffle/trufflenode/buffer/NIOBufferUTF8WriteNode;
            0    2     1      target  Lcom/oracle/truffle/api/object/DynamicObject;
            0    2     2         str  Ljava/lang/String;
            0    2     3  destOffset  Ljava/lang/Object;
            0    2     4       bytes  Ljava/lang/Object;
    MethodParameters:
            Name  Flags
      target      
      str         
      destOffset  
      bytes       

  private int doWrite(com.oracle.truffle.api.object.DynamicObject, java.lang.String, int, int);
    descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;II)I
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=11, args_size=5
        start local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
        start local 1 // com.oracle.truffle.api.object.DynamicObject target
        start local 2 // java.lang.String str
        start local 3 // int destOffset
        start local 4 // int bytes
         0: .line 131
            aload 1 /* target */
            invokestatic com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.getArrayBuffer:(Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/api/object/DynamicObject;
            astore 5 /* arrayBuffer */
        start local 5 // com.oracle.truffle.api.object.DynamicObject arrayBuffer
         1: .line 132
            aload 0 /* this */
            aload 1 /* target */
            invokevirtual com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.getOffset:(Lcom/oracle/truffle/api/object/DynamicObject;)I
            istore 6 /* bufferOffset */
        start local 6 // int bufferOffset
         2: .line 133
            aload 0 /* this */
            aload 1 /* target */
            invokevirtual com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.getLength:(Lcom/oracle/truffle/api/object/DynamicObject;)I
            istore 7 /* bufferLen */
        start local 7 // int bufferLen
         3: .line 135
            iload 3 /* destOffset */
            iload 7 /* bufferLen */
            if_icmpgt 4
            iload 4 /* bytes */
            iflt 4
            iload 3 /* destOffset */
            ifge 6
         4: .line 136
      StackMap locals: com.oracle.truffle.api.object.DynamicObject int int
      StackMap stack:
            aload 0 /* this */
            getfield com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
            invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
         5: .line 137
            aload 0 /* this */
            invokevirtual com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.outOfBoundsFail:()V
         6: .line 139
      StackMap locals:
      StackMap stack:
            aload 5 /* arrayBuffer */
            invokestatic com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.getDirectByteBuffer:(Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/nio/ByteBuffer;
            astore 8 /* rawBuffer */
        start local 8 // java.nio.ByteBuffer rawBuffer
         7: .line 140
            iload 7 /* bufferLen */
            iload 3 /* destOffset */
            iload 4 /* bytes */
            iadd
            invokestatic java.lang.Math.min:(II)I
            istore 9 /* destLimit */
        start local 9 // int destLimit
         8: .line 141
            aload 8 /* rawBuffer */
            iload 6 /* bufferOffset */
            iload 3 /* destOffset */
            iadd
            iload 6 /* bufferOffset */
            iload 9 /* destLimit */
            iadd
            invokestatic com.oracle.truffle.js.runtime.Boundaries.byteBufferSlice:(Ljava/nio/ByteBuffer;II)Ljava/nio/ByteBuffer;
            astore 10 /* buffer */
        start local 10 // java.nio.ByteBuffer buffer
         9: .line 142
            aload 2 /* str */
            aload 10 /* buffer */
            invokestatic com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.doEncode:(Ljava/lang/String;Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
            pop
        10: .line 143
            aload 10 /* buffer */
            invokevirtual java.nio.ByteBuffer.position:()I
            ireturn
        end local 10 // java.nio.ByteBuffer buffer
        end local 9 // int destLimit
        end local 8 // java.nio.ByteBuffer rawBuffer
        end local 7 // int bufferLen
        end local 6 // int bufferOffset
        end local 5 // com.oracle.truffle.api.object.DynamicObject arrayBuffer
        end local 4 // int bytes
        end local 3 // int destOffset
        end local 2 // java.lang.String str
        end local 1 // com.oracle.truffle.api.object.DynamicObject target
        end local 0 // com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   11     0          this  Lcom/oracle/truffle/trufflenode/buffer/NIOBufferUTF8WriteNode;
            0   11     1        target  Lcom/oracle/truffle/api/object/DynamicObject;
            0   11     2           str  Ljava/lang/String;
            0   11     3    destOffset  I
            0   11     4         bytes  I
            1   11     5   arrayBuffer  Lcom/oracle/truffle/api/object/DynamicObject;
            2   11     6  bufferOffset  I
            3   11     7     bufferLen  I
            7   11     8     rawBuffer  Ljava/nio/ByteBuffer;
            8   11     9     destLimit  I
            9   11    10        buffer  Ljava/nio/ByteBuffer;
    Exceptions:
      throws java.nio.charset.CharacterCodingException
    MethodParameters:
            Name  Flags
      target      
      str         
      destOffset  
      bytes       

  private static java.nio.charset.CoderResult doEncode(java.lang.String, java.nio.ByteBuffer);
    descriptor: (Ljava/lang/String;Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=5, args_size=2
        start local 0 // java.lang.String str
        start local 1 // java.nio.ByteBuffer buffer
         0: .line 148
            getstatic com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.utf8:Ljava/nio/charset/Charset;
            invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
            astore 2 /* encoder */
        start local 2 // java.nio.charset.CharsetEncoder encoder
         1: .line 149
            aload 2 /* encoder */
            getstatic java.nio.charset.CodingErrorAction.REPORT:Ljava/nio/charset/CodingErrorAction;
            invokevirtual java.nio.charset.CharsetEncoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
            pop
         2: .line 150
            aload 2 /* encoder */
            getstatic java.nio.charset.CodingErrorAction.REPORT:Ljava/nio/charset/CodingErrorAction;
            invokevirtual java.nio.charset.CharsetEncoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
            pop
         3: .line 151
            aload 0 /* str */
            invokestatic java.nio.CharBuffer.wrap:(Ljava/lang/CharSequence;)Ljava/nio/CharBuffer;
            astore 3 /* cb */
        start local 3 // java.nio.CharBuffer cb
         4: .line 152
            aload 2 /* encoder */
            aload 3 /* cb */
            aload 1 /* buffer */
            iconst_1
            invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
            astore 4 /* res */
        start local 4 // java.nio.charset.CoderResult res
         5: .line 154
            aload 4 /* res */
            invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
            ifeq 8
         6: .line 155
            aload 2 /* encoder */
            aload 3 /* cb */
            aload 1 /* buffer */
            iconst_1
            invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
            pop
         7: .line 156
            aload 2 /* encoder */
            aload 1 /* buffer */
            invokevirtual java.nio.charset.CharsetEncoder.flush:(Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
            astore 4 /* res */
         8: .line 159
      StackMap locals: java.nio.charset.CharsetEncoder java.nio.CharBuffer java.nio.charset.CoderResult
      StackMap stack:
            getstatic com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.$assertionsDisabled:Z
            ifne 11
            aload 4 /* res */
            invokevirtual java.nio.charset.CoderResult.isError:()Z
            aload 4 /* res */
            invokevirtual java.nio.charset.CoderResult.isMalformed:()Z
            ifne 9
            aload 4 /* res */
            invokevirtual java.nio.charset.CoderResult.isUnmappable:()Z
            ifne 9
            iconst_0
            goto 10
      StackMap locals:
      StackMap stack: int
         9: iconst_1
      StackMap locals: java.lang.String java.nio.ByteBuffer java.nio.charset.CharsetEncoder java.nio.CharBuffer java.nio.charset.CoderResult
      StackMap stack: int int
        10: if_icmpeq 11
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
        11: .line 160
      StackMap locals:
      StackMap stack:
            aload 4 /* res */
            invokevirtual java.nio.charset.CoderResult.isError:()Z
            ifeq 13
        12: .line 161
            aload 4 /* res */
            invokevirtual java.nio.charset.CoderResult.throwException:()V
        13: .line 164
      StackMap locals:
      StackMap stack:
            aload 4 /* res */
            areturn
        end local 4 // java.nio.charset.CoderResult res
        end local 3 // java.nio.CharBuffer cb
        end local 2 // java.nio.charset.CharsetEncoder encoder
        end local 1 // java.nio.ByteBuffer buffer
        end local 0 // java.lang.String str
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   14     0      str  Ljava/lang/String;
            0   14     1   buffer  Ljava/nio/ByteBuffer;
            1   14     2  encoder  Ljava/nio/charset/CharsetEncoder;
            4   14     3       cb  Ljava/nio/CharBuffer;
            5   14     4      res  Ljava/nio/charset/CoderResult;
    Exceptions:
      throws java.nio.charset.CharacterCodingException
    RuntimeVisibleAnnotations: 
      com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
    MethodParameters:
        Name  Flags
      str     
      buffer  

  private static byte[] getBytes(java.lang.String);
    descriptor: (Ljava/lang/String;)[B
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // java.lang.String str
         0: .line 169
            aload 0 /* str */
            getstatic com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.utf8:Ljava/nio/charset/Charset;
            invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
            areturn
        end local 0 // java.lang.String str
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0   str  Ljava/lang/String;
    RuntimeVisibleAnnotations: 
      com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
    MethodParameters:
      Name  Flags
      str   
}
SourceFile: "NIOBufferUTF8WriteNode.java"
InnerClasses:
  public abstract TruffleBoundary = com.oracle.truffle.api.CompilerDirectives$TruffleBoundary of com.oracle.truffle.api.CompilerDirectives
  public abstract Child = com.oracle.truffle.api.nodes.Node$Child of com.oracle.truffle.api.nodes.Node