public final class jdk.nashorn.internal.objects.NativeArrayBuffer extends jdk.nashorn.internal.runtime.ScriptObject
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.internal.objects.NativeArrayBuffer
super_class: jdk.nashorn.internal.runtime.ScriptObject
{
private final java.nio.ByteBuffer nb;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static jdk.nashorn.internal.runtime.PropertyMap $nasgenmap$;
descriptor: Ljdk/nashorn/internal/runtime/PropertyMap;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
protected void <init>(java.nio.ByteBuffer, jdk.nashorn.internal.objects.Global);
descriptor: (Ljava/nio/ByteBuffer;Ljdk/nashorn/internal/objects/Global;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokevirtual jdk.nashorn.internal.objects.Global.getArrayBufferPrototype:()Ljdk/nashorn/internal/runtime/ScriptObject;
getstatic jdk.nashorn.internal.objects.NativeArrayBuffer.$nasgenmap$:Ljdk/nashorn/internal/runtime/PropertyMap;
invokespecial jdk.nashorn.internal.runtime.ScriptObject.<init>:(Ljdk/nashorn/internal/runtime/ScriptObject;Ljdk/nashorn/internal/runtime/PropertyMap;)V
1: aload 0
aload 1
putfield jdk.nashorn.internal.objects.NativeArrayBuffer.nb:Ljava/nio/ByteBuffer;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/internal/objects/NativeArrayBuffer;
0 3 1 nb Ljava/nio/ByteBuffer;
0 3 2 global Ljdk/nashorn/internal/objects/Global;
MethodParameters:
Name Flags
nb final
global final
protected void <init>(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic jdk.nashorn.internal.objects.Global.instance:()Ljdk/nashorn/internal/objects/Global;
invokespecial jdk.nashorn.internal.objects.NativeArrayBuffer.<init>:(Ljava/nio/ByteBuffer;Ljdk/nashorn/internal/objects/Global;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/objects/NativeArrayBuffer;
0 2 1 nb Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
nb final
protected void <init>(int);
descriptor: (I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokestatic java.nio.ByteBuffer.allocateDirect:(I)Ljava/nio/ByteBuffer;
invokespecial jdk.nashorn.internal.objects.NativeArrayBuffer.<init>:(Ljava/nio/ByteBuffer;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/objects/NativeArrayBuffer;
0 2 1 byteLength I
MethodParameters:
Name Flags
byteLength final
protected void <init>(jdk.nashorn.internal.objects.NativeArrayBuffer, int, int);
descriptor: (Ljdk/nashorn/internal/objects/NativeArrayBuffer;II)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokevirtual jdk.nashorn.internal.objects.NativeArrayBuffer.getNioBuffer:()Ljava/nio/ByteBuffer;
iload 2
iload 3
invokestatic jdk.nashorn.internal.objects.NativeArrayBuffer.cloneBuffer:(Ljava/nio/ByteBuffer;II)Ljava/nio/ByteBuffer;
invokespecial jdk.nashorn.internal.objects.NativeArrayBuffer.<init>:(Ljava/nio/ByteBuffer;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/objects/NativeArrayBuffer;
0 2 1 other Ljdk/nashorn/internal/objects/NativeArrayBuffer;
0 2 2 begin I
0 2 3 end I
MethodParameters:
Name Flags
other final
begin final
end final
public static jdk.nashorn.internal.objects.NativeArrayBuffer constructor(boolean, java.lang.Object, java.lang.Object[]);
descriptor: (ZLjava/lang/Object;[Ljava/lang/Object;)Ljdk/nashorn/internal/objects/NativeArrayBuffer;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 0
ifne 2
1: ldc "constructor.requires.new"
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "ArrayBuffer"
aastore
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.typeError:(Ljava/lang/String;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/ECMAException;
athrow
2: StackMap locals:
StackMap stack:
aload 2
arraylength
ifne 4
3: new jdk.nashorn.internal.objects.NativeArrayBuffer
dup
iconst_0
invokespecial jdk.nashorn.internal.objects.NativeArrayBuffer.<init>:(I)V
areturn
4: StackMap locals:
StackMap stack:
aload 2
iconst_0
aaload
astore 3
start local 3 5: aload 3
instanceof java.nio.ByteBuffer
ifeq 7
6: new jdk.nashorn.internal.objects.NativeArrayBuffer
dup
aload 3
checkcast java.nio.ByteBuffer
invokespecial jdk.nashorn.internal.objects.NativeArrayBuffer.<init>:(Ljava/nio/ByteBuffer;)V
areturn
7: StackMap locals: java.lang.Object
StackMap stack:
new jdk.nashorn.internal.objects.NativeArrayBuffer
dup
aload 3
invokestatic jdk.nashorn.internal.runtime.JSType.toInt32:(Ljava/lang/Object;)I
invokespecial jdk.nashorn.internal.objects.NativeArrayBuffer.<init>:(I)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 newObj Z
0 8 1 self Ljava/lang/Object;
0 8 2 args [Ljava/lang/Object;
5 8 3 arg0 Ljava/lang/Object;
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.Constructor(arity = 1)
MethodParameters:
Name Flags
newObj final
self final
args final
private static java.nio.ByteBuffer cloneBuffer(java.nio.ByteBuffer, int, int);
descriptor: (Ljava/nio/ByteBuffer;II)Ljava/nio/ByteBuffer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual java.nio.ByteBuffer.capacity:()I
invokestatic java.nio.ByteBuffer.allocateDirect:(I)Ljava/nio/ByteBuffer;
astore 3
start local 3 1: aload 0
invokevirtual java.nio.ByteBuffer.rewind:()Ljava/nio/ByteBuffer;
pop
2: aload 3
aload 0
invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
pop
3: aload 0
invokevirtual java.nio.ByteBuffer.rewind:()Ljava/nio/ByteBuffer;
pop
4: aload 3
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
5: aload 3
iload 1
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
6: aload 3
iload 2
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
pop
7: aload 3
invokevirtual java.nio.ByteBuffer.slice:()Ljava/nio/ByteBuffer;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 original Ljava/nio/ByteBuffer;
0 8 1 begin I
0 8 2 end I
1 8 3 clone Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
original final
begin final
end final
java.nio.ByteBuffer getNioBuffer();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.objects.NativeArrayBuffer.nb:Ljava/nio/ByteBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/objects/NativeArrayBuffer;
public java.lang.String getClassName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "ArrayBuffer"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/objects/NativeArrayBuffer;
public static int byteLength(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
checkcast jdk.nashorn.internal.objects.NativeArrayBuffer
invokevirtual jdk.nashorn.internal.objects.NativeArrayBuffer.getByteLength:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 self Ljava/lang/Object;
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.Getter(attributes = 7)
MethodParameters:
Name Flags
self final
public static boolean isView(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof jdk.nashorn.internal.objects.ArrayBufferView
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 self Ljava/lang/Object;
0 1 1 obj Ljava/lang/Object;
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.Function(attributes = 2, where = jdk.nashorn.internal.objects.annotations.Where.CONSTRUCTOR:Ljdk/nashorn/internal/objects/annotations/Where;)
MethodParameters:
Name Flags
self final
obj final
public static jdk.nashorn.internal.objects.NativeArrayBuffer slice(java.lang.Object, java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljdk/nashorn/internal/objects/NativeArrayBuffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
checkcast jdk.nashorn.internal.objects.NativeArrayBuffer
astore 3
start local 3 1: aload 3
invokevirtual jdk.nashorn.internal.objects.NativeArrayBuffer.getByteLength:()I
istore 4
start local 4 2: aload 1
invokestatic jdk.nashorn.internal.runtime.JSType.toInt32:(Ljava/lang/Object;)I
iload 4
invokestatic jdk.nashorn.internal.objects.NativeArrayBuffer.adjustIndex:(II)I
istore 5
start local 5 3: aload 2
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
if_acmpeq 4
aload 2
invokestatic jdk.nashorn.internal.runtime.JSType.toInt32:(Ljava/lang/Object;)I
goto 5
StackMap locals: jdk.nashorn.internal.objects.NativeArrayBuffer int int
StackMap stack:
4: iload 4
StackMap locals:
StackMap stack: int
5: iload 4
invokestatic jdk.nashorn.internal.objects.NativeArrayBuffer.adjustIndex:(II)I
istore 6
start local 6 6: new jdk.nashorn.internal.objects.NativeArrayBuffer
dup
aload 3
iload 5
iload 6
iload 5
invokestatic java.lang.Math.max:(II)I
invokespecial jdk.nashorn.internal.objects.NativeArrayBuffer.<init>:(Ljdk/nashorn/internal/objects/NativeArrayBuffer;II)V
areturn
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 7 0 self Ljava/lang/Object;
0 7 1 begin0 Ljava/lang/Object;
0 7 2 end0 Ljava/lang/Object;
1 7 3 arrayBuffer Ljdk/nashorn/internal/objects/NativeArrayBuffer;
2 7 4 byteLength I
3 7 5 begin I
6 7 6 end I
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.Function(attributes = 2)
MethodParameters:
Name Flags
self final
begin0 final
end0 final
public static java.lang.Object slice(java.lang.Object, int, int);
descriptor: (Ljava/lang/Object;II)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
checkcast jdk.nashorn.internal.objects.NativeArrayBuffer
astore 3
start local 3 1: aload 3
invokevirtual jdk.nashorn.internal.objects.NativeArrayBuffer.getByteLength:()I
istore 4
start local 4 2: new jdk.nashorn.internal.objects.NativeArrayBuffer
dup
aload 3
iload 1
iload 4
invokestatic jdk.nashorn.internal.objects.NativeArrayBuffer.adjustIndex:(II)I
iload 2
iload 4
invokestatic jdk.nashorn.internal.objects.NativeArrayBuffer.adjustIndex:(II)I
iload 1
invokestatic java.lang.Math.max:(II)I
invokespecial jdk.nashorn.internal.objects.NativeArrayBuffer.<init>:(Ljdk/nashorn/internal/objects/NativeArrayBuffer;II)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 self Ljava/lang/Object;
0 3 1 begin I
0 3 2 end I
1 3 3 arrayBuffer Ljdk/nashorn/internal/objects/NativeArrayBuffer;
2 3 4 byteLength I
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.SpecializedFunction()
MethodParameters:
Name Flags
self final
begin final
end final
public static java.lang.Object slice(java.lang.Object, int);
descriptor: (Ljava/lang/Object;I)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
aload 0
checkcast jdk.nashorn.internal.objects.NativeArrayBuffer
invokevirtual jdk.nashorn.internal.objects.NativeArrayBuffer.getByteLength:()I
invokestatic jdk.nashorn.internal.objects.NativeArrayBuffer.slice:(Ljava/lang/Object;II)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 self Ljava/lang/Object;
0 1 1 begin I
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.SpecializedFunction()
MethodParameters:
Name Flags
self final
begin final
static int adjustIndex(int, int);
descriptor: (II)I
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 0
ifge 1
iload 0
iload 1
iadd
iload 1
invokestatic jdk.nashorn.internal.objects.NativeArrayBuffer.clamp:(II)I
goto 2
StackMap locals:
StackMap stack:
1: iload 0
iload 1
invokestatic jdk.nashorn.internal.objects.NativeArrayBuffer.clamp:(II)I
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 index I
0 3 1 length I
MethodParameters:
Name Flags
index final
length final
private static int clamp(int, int);
descriptor: (II)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 0
ifge 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
iload 0
iload 1
if_icmple 4
3: iload 1
ireturn
4: StackMap locals:
StackMap stack:
iload 0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 index I
0 5 1 length I
MethodParameters:
Name Flags
index final
length final
int getByteLength();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.objects.NativeArrayBuffer.nb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.limit:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/objects/NativeArrayBuffer;
java.nio.ByteBuffer getBuffer();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.objects.NativeArrayBuffer.nb:Ljava/nio/ByteBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/objects/NativeArrayBuffer;
java.nio.ByteBuffer getBuffer(int);
descriptor: (I)Ljava/nio/ByteBuffer;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.internal.objects.NativeArrayBuffer.nb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
iload 1
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/objects/NativeArrayBuffer;
0 1 1 offset I
MethodParameters:
Name Flags
offset final
java.nio.ByteBuffer getBuffer(int, int);
descriptor: (II)Ljava/nio/ByteBuffer;
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
invokevirtual jdk.nashorn.internal.objects.NativeArrayBuffer.getBuffer:(I)Ljava/nio/ByteBuffer;
iload 2
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/objects/NativeArrayBuffer;
0 1 1 offset I
0 1 2 length I
MethodParameters:
Name Flags
offset final
length final
}
SourceFile: "NativeArrayBuffer.java"
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.ScriptClass(value = "ArrayBuffer")