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: 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 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial com.oracle.truffle.trufflenode.buffer.NIOBufferAccessNode.<init>:(Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/js/nodes/function/JSBuiltin;)V
1: aload 0
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: aload 0
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: aload 0
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: return
end local 2 end local 1 end local 0 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 0: aload 0
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 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 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
iload 3
iload 4
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: StackMap locals:
StackMap stack: java.nio.charset.CharacterCodingException
pop
3: aload 0
aload 1
aload 2
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
iload 4
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 end local 3 end local 2 end local 1 end local 0 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 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
iload 3
aload 2
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: StackMap locals:
StackMap stack: java.nio.charset.CharacterCodingException
pop
3: aload 0
aload 1
aload 2
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 4
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 end local 3 end local 2 end local 1 end local 0 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 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
iconst_0
aload 2
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: StackMap locals:
StackMap stack: java.nio.charset.CharacterCodingException
pop
3: aload 0
aload 1
aload 2
aload 3
aload 4
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 end local 3 end local 2 end local 1 end local 0 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 start local 1 start local 2 start local 3 start local 5 0: aload 0
aload 1
aload 2
aload 0
getfield com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.toInt:Lcom/oracle/truffle/js/nodes/cast/JSToIntegerAsIntNode;
dload 3
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual com.oracle.truffle.js.nodes.cast.JSToIntegerAsIntNode.executeInt:(Ljava/lang/Object;)I
aload 0
getfield com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.toInt:Lcom/oracle/truffle/js/nodes/cast/JSToIntegerAsIntNode;
dload 5
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: StackMap locals:
StackMap stack: java.nio.charset.CharacterCodingException
pop
3: aload 0
aload 1
aload 2
dload 3
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
dload 5
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 end local 3 end local 2 end local 1 end local 0 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 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokevirtual com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.getNativeUtf8Write:()Lcom/oracle/truffle/api/object/DynamicObject;
aload 1
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 3
aastore
dup
iconst_2
aload 4
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 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/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 start local 1 start local 2 start local 3 start local 4 0: invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorArrayBufferViewExpected:()Lcom/oracle/truffle/js/runtime/JSException;
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/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 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.nativePath:Lcom/oracle/truffle/api/profiles/BranchProfile;
invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
1: aload 0
invokevirtual com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.getNativeUtf8Write:()Lcom/oracle/truffle/api/object/DynamicObject;
aload 1
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 3
aastore
dup
iconst_2
aload 4
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 end local 3 end local 2 end local 1 end local 0 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 start local 1 start local 2 start local 3 start local 4 0: aload 1
invokestatic com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.getArrayBuffer:(Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/api/object/DynamicObject;
astore 5
start local 5 1: aload 0
aload 1
invokevirtual com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.getOffset:(Lcom/oracle/truffle/api/object/DynamicObject;)I
istore 6
start local 6 2: aload 0
aload 1
invokevirtual com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.getLength:(Lcom/oracle/truffle/api/object/DynamicObject;)I
istore 7
start local 7 3: iload 3
iload 7
if_icmpgt 4
iload 4
iflt 4
iload 3
ifge 6
4: StackMap locals: com.oracle.truffle.api.object.DynamicObject int int
StackMap stack:
aload 0
getfield com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
5: aload 0
invokevirtual com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.outOfBoundsFail:()V
6: StackMap locals:
StackMap stack:
aload 5
invokestatic com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.getDirectByteBuffer:(Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/nio/ByteBuffer;
astore 8
start local 8 7: iload 7
iload 3
iload 4
iadd
invokestatic java.lang.Math.min:(II)I
istore 9
start local 9 8: aload 8
iload 6
iload 3
iadd
iload 6
iload 9
iadd
invokestatic com.oracle.truffle.js.runtime.Boundaries.byteBufferSlice:(Ljava/nio/ByteBuffer;II)Ljava/nio/ByteBuffer;
astore 10
start local 10 9: aload 2
aload 10
invokestatic com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.doEncode:(Ljava/lang/String;Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
pop
10: aload 10
invokevirtual java.nio.ByteBuffer.position:()I
ireturn
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 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 start local 1 0: getstatic com.oracle.truffle.trufflenode.buffer.NIOBufferUTF8WriteNode.utf8:Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
astore 2
start local 2 1: aload 2
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: aload 2
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: aload 0
invokestatic java.nio.CharBuffer.wrap:(Ljava/lang/CharSequence;)Ljava/nio/CharBuffer;
astore 3
start local 3 4: aload 2
aload 3
aload 1
iconst_1
invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
astore 4
start local 4 5: aload 4
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifeq 8
6: aload 2
aload 3
aload 1
iconst_1
invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
pop
7: aload 2
aload 1
invokevirtual java.nio.charset.CharsetEncoder.flush:(Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
astore 4
8: 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
invokevirtual java.nio.charset.CoderResult.isError:()Z
aload 4
invokevirtual java.nio.charset.CoderResult.isMalformed:()Z
ifne 9
aload 4
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: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.nio.charset.CoderResult.isError:()Z
ifeq 13
12: aload 4
invokevirtual java.nio.charset.CoderResult.throwException:()V
13: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 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 0: aload 0
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 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