public abstract class jdk.nashorn.internal.objects.ArrayBufferView extends jdk.nashorn.internal.runtime.ScriptObject
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: jdk.nashorn.internal.objects.ArrayBufferView
super_class: jdk.nashorn.internal.runtime.ScriptObject
{
private final jdk.nashorn.internal.objects.NativeArrayBuffer buffer;
descriptor: Ljdk/nashorn/internal/objects/NativeArrayBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int byteOffset;
descriptor: I
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
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 Ljdk/nashorn/internal/objects/ArrayBufferView;
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 jdk.nashorn.internal.objects.ArrayBufferView.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(jdk.nashorn.internal.objects.NativeArrayBuffer, int, int, jdk.nashorn.internal.objects.Global);
descriptor: (Ljdk/nashorn/internal/objects/NativeArrayBuffer;IILjdk/nashorn/internal/objects/Global;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getstatic jdk.nashorn.internal.objects.ArrayBufferView.$nasgenmap$:Ljdk/nashorn/internal/runtime/PropertyMap;
invokespecial jdk.nashorn.internal.runtime.ScriptObject.<init>:(Ljdk/nashorn/internal/runtime/PropertyMap;)V
1: aload 0
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.bytesPerElement:()I
istore 5
start local 5 2: aload 1
invokevirtual jdk.nashorn.internal.objects.NativeArrayBuffer.getByteLength:()I
iload 5
iload 2
iload 3
invokestatic jdk.nashorn.internal.objects.ArrayBufferView.checkConstructorArgs:(IIII)V
3: aload 0
aload 0
aload 4
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.getPrototype:(Ljdk/nashorn/internal/objects/Global;)Ljdk/nashorn/internal/runtime/ScriptObject;
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.setProto:(Ljdk/nashorn/internal/runtime/ScriptObject;)V
4: aload 0
aload 1
putfield jdk.nashorn.internal.objects.ArrayBufferView.buffer:Ljdk/nashorn/internal/objects/NativeArrayBuffer;
5: aload 0
iload 2
putfield jdk.nashorn.internal.objects.ArrayBufferView.byteOffset:I
6: getstatic jdk.nashorn.internal.objects.ArrayBufferView.$assertionsDisabled:Z
ifne 7
iload 2
iload 5
irem
ifeq 7
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
7: StackMap locals: jdk.nashorn.internal.objects.ArrayBufferView jdk.nashorn.internal.objects.NativeArrayBuffer int int jdk.nashorn.internal.objects.Global int
StackMap stack:
iload 2
iload 5
idiv
istore 6
start local 6 8: aload 1
invokevirtual jdk.nashorn.internal.objects.NativeArrayBuffer.getNioBuffer:()Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
invokestatic java.nio.ByteOrder.nativeOrder:()Ljava/nio/ByteOrder;
invokevirtual java.nio.ByteBuffer.order:(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
astore 7
start local 7 9: aload 0
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.factory:()Ljdk/nashorn/internal/objects/ArrayBufferView$Factory;
aload 7
iload 6
iload 6
iload 3
iadd
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView$Factory.createArrayData:(Ljava/nio/ByteBuffer;II)Ljdk/nashorn/internal/runtime/arrays/TypedArrayData;
astore 8
start local 8 10: aload 0
aload 8
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.setArray:(Ljdk/nashorn/internal/runtime/arrays/ArrayData;)V
11: return
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 12 0 this Ljdk/nashorn/internal/objects/ArrayBufferView;
0 12 1 buffer Ljdk/nashorn/internal/objects/NativeArrayBuffer;
0 12 2 byteOffset I
0 12 3 elementLength I
0 12 4 global Ljdk/nashorn/internal/objects/Global;
2 12 5 bytesPerElement I
8 12 6 start I
9 12 7 newNioBuffer Ljava/nio/ByteBuffer;
10 12 8 data Ljdk/nashorn/internal/runtime/arrays/ArrayData;
MethodParameters:
Name Flags
buffer final
byteOffset final
elementLength final
global 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=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
iload 3
invokestatic jdk.nashorn.internal.objects.Global.instance:()Ljdk/nashorn/internal/objects/Global;
invokespecial jdk.nashorn.internal.objects.ArrayBufferView.<init>:(Ljdk/nashorn/internal/objects/NativeArrayBuffer;IILjdk/nashorn/internal/objects/Global;)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/ArrayBufferView;
0 2 1 buffer Ljdk/nashorn/internal/objects/NativeArrayBuffer;
0 2 2 byteOffset I
0 2 3 elementLength I
MethodParameters:
Name Flags
buffer final
byteOffset final
elementLength final
private static void checkConstructorArgs(int, int, int, int);
descriptor: (IIII)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
iflt 1
iload 3
ifge 2
1: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "byteOffset or length must not be negative, byteOffset="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", elementLength="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", bytesPerElement="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 2
iload 3
iload 1
imul
iadd
iload 0
if_icmple 4
3: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "byteOffset + byteLength out of range, byteOffset="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", elementLength="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", bytesPerElement="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
iload 2
iload 1
irem
ifeq 6
5: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "byteOffset must be a multiple of the element size, byteOffset="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " bytesPerElement="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 byteLength I
0 7 1 bytesPerElement I
0 7 2 byteOffset I
0 7 3 elementLength I
MethodParameters:
Name Flags
byteLength final
bytesPerElement final
byteOffset final
elementLength final
private int bytesPerElement();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.factory:()Ljdk/nashorn/internal/objects/ArrayBufferView$Factory;
getfield jdk.nashorn.internal.objects.ArrayBufferView$Factory.bytesPerElement:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/objects/ArrayBufferView;
public static java.lang.Object buffer(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
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.ArrayBufferView
getfield jdk.nashorn.internal.objects.ArrayBufferView.buffer:Ljdk/nashorn/internal/objects/NativeArrayBuffer;
areturn
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 int byteOffset(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.ArrayBufferView
getfield jdk.nashorn.internal.objects.ArrayBufferView.byteOffset: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 int byteLength(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
checkcast jdk.nashorn.internal.objects.ArrayBufferView
astore 1
start local 1 1: aload 1
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.getArray:()Ljdk/nashorn/internal/runtime/arrays/ArrayData;
checkcast jdk.nashorn.internal.runtime.arrays.TypedArrayData
invokevirtual jdk.nashorn.internal.runtime.arrays.TypedArrayData.getElementLength:()I
aload 1
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.bytesPerElement:()I
imul
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 self Ljava/lang/Object;
1 2 1 view Ljdk/nashorn/internal/objects/ArrayBufferView;
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.Getter(attributes = 7)
MethodParameters:
Name Flags
self final
public static int length(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.ArrayBufferView
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.elementLength:()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 final java.lang.Object getLength();
descriptor: ()Ljava/lang/Object;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.elementLength:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/objects/ArrayBufferView;
private int elementLength();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.getArray:()Ljdk/nashorn/internal/runtime/arrays/ArrayData;
checkcast jdk.nashorn.internal.runtime.arrays.TypedArrayData
invokevirtual jdk.nashorn.internal.runtime.arrays.TypedArrayData.getElementLength:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/objects/ArrayBufferView;
protected abstract jdk.nashorn.internal.objects.ArrayBufferView$Factory factory();
descriptor: ()Ljdk/nashorn/internal/objects/ArrayBufferView$Factory;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
protected abstract jdk.nashorn.internal.runtime.ScriptObject getPrototype(jdk.nashorn.internal.objects.Global);
descriptor: (Ljdk/nashorn/internal/objects/Global;)Ljdk/nashorn/internal/runtime/ScriptObject;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
MethodParameters:
Name Flags
global final
public final java.lang.String getClassName();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.factory:()Ljdk/nashorn/internal/objects/ArrayBufferView$Factory;
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView$Factory.getClassName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/objects/ArrayBufferView;
protected boolean isFloatArray();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/objects/ArrayBufferView;
protected static jdk.nashorn.internal.objects.ArrayBufferView constructorImpl(boolean, java.lang.Object[], jdk.nashorn.internal.objects.ArrayBufferView$Factory);
descriptor: (Z[Ljava/lang/Object;Ljdk/nashorn/internal/objects/ArrayBufferView$Factory;)Ljdk/nashorn/internal/objects/ArrayBufferView;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
arraylength
ifeq 1
aload 1
iconst_0
aaload
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
StackMap locals:
StackMap stack: java.lang.Object
2: astore 3
start local 3 3: iload 0
ifne 5
4: ldc "constructor.requires.new"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 2
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView$Factory.getClassName:()Ljava/lang/String;
aastore
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.typeError:(Ljava/lang/String;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/ECMAException;
athrow
5: StackMap locals: java.lang.Object
StackMap stack:
aload 3
instanceof jdk.nashorn.internal.objects.NativeArrayBuffer
ifeq 17
6: aload 3
checkcast jdk.nashorn.internal.objects.NativeArrayBuffer
astore 6
start local 6 7: aload 1
arraylength
iconst_1
if_icmple 8
aload 1
iconst_1
aaload
invokestatic jdk.nashorn.internal.runtime.JSType.toInt32:(Ljava/lang/Object;)I
goto 9
StackMap locals: int java.lang.Object[] jdk.nashorn.internal.objects.ArrayBufferView$Factory java.lang.Object top top jdk.nashorn.internal.objects.NativeArrayBuffer
StackMap stack:
8: iconst_0
StackMap locals:
StackMap stack: int
9: istore 7
start local 7 10: aload 1
arraylength
iconst_2
if_icmple 13
11: aload 1
iconst_2
aaload
invokestatic jdk.nashorn.internal.runtime.JSType.toInt32:(Ljava/lang/Object;)I
istore 5
start local 5 12: goto 16
end local 5 13: StackMap locals: int
StackMap stack:
aload 6
invokevirtual jdk.nashorn.internal.objects.NativeArrayBuffer.getByteLength:()I
iload 7
isub
aload 2
getfield jdk.nashorn.internal.objects.ArrayBufferView$Factory.bytesPerElement:I
irem
ifeq 15
14: new java.lang.RuntimeException
dup
ldc "buffer.byteLength - byteOffset must be a multiple of the element size"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
aload 6
invokevirtual jdk.nashorn.internal.objects.NativeArrayBuffer.getByteLength:()I
iload 7
isub
aload 2
getfield jdk.nashorn.internal.objects.ArrayBufferView$Factory.bytesPerElement:I
idiv
istore 5
start local 5 16: StackMap locals: int java.lang.Object[] jdk.nashorn.internal.objects.ArrayBufferView$Factory java.lang.Object top int jdk.nashorn.internal.objects.NativeArrayBuffer int
StackMap stack:
aload 2
aload 6
iload 7
iload 5
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView$Factory.construct:(Ljdk/nashorn/internal/objects/NativeArrayBuffer;II)Ljdk/nashorn/internal/objects/ArrayBufferView;
areturn
end local 7 end local 6 end local 5 17: StackMap locals: int java.lang.Object[] jdk.nashorn.internal.objects.ArrayBufferView$Factory java.lang.Object
StackMap stack:
aload 3
instanceof jdk.nashorn.internal.objects.ArrayBufferView
ifeq 21
18: aload 3
checkcast jdk.nashorn.internal.objects.ArrayBufferView
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.elementLength:()I
istore 5
start local 5 19: aload 2
iload 5
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView$Factory.construct:(I)Ljdk/nashorn/internal/objects/ArrayBufferView;
astore 4
start local 4 20: goto 30
end local 5 end local 4 StackMap locals:
StackMap stack:
21: aload 3
instanceof jdk.nashorn.internal.objects.NativeArray
ifeq 25
22: aload 3
checkcast jdk.nashorn.internal.objects.NativeArray
invokevirtual jdk.nashorn.internal.objects.NativeArray.getArray:()Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
invokestatic jdk.nashorn.internal.objects.ArrayBufferView.lengthToInt:(J)I
istore 5
start local 5 23: aload 2
iload 5
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView$Factory.construct:(I)Ljdk/nashorn/internal/objects/ArrayBufferView;
astore 4
start local 4 24: goto 30
end local 5 end local 4 25: StackMap locals:
StackMap stack:
aload 3
invokestatic jdk.nashorn.internal.runtime.JSType.toNumber:(Ljava/lang/Object;)D
dstore 6
start local 6 26: dload 6
invokestatic java.lang.Double.isInfinite:(D)Z
ifeq 27
lconst_0
goto 28
StackMap locals: int java.lang.Object[] jdk.nashorn.internal.objects.ArrayBufferView$Factory java.lang.Object top top double
StackMap stack:
27: dload 6
invokestatic jdk.nashorn.internal.runtime.JSType.toLong:(D)J
StackMap locals:
StackMap stack: long
28: invokestatic jdk.nashorn.internal.objects.ArrayBufferView.lengthToInt:(J)I
istore 5
start local 5 29: aload 2
iload 5
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView$Factory.construct:(I)Ljdk/nashorn/internal/objects/ArrayBufferView;
areturn
end local 6 start local 4 30: StackMap locals: int java.lang.Object[] jdk.nashorn.internal.objects.ArrayBufferView$Factory java.lang.Object jdk.nashorn.internal.objects.ArrayBufferView int
StackMap stack:
aload 4
iload 5
aload 3
checkcast jdk.nashorn.internal.runtime.ScriptObject
iconst_0
invokestatic jdk.nashorn.internal.objects.ArrayBufferView.copyElements:(Ljdk/nashorn/internal/objects/ArrayBufferView;ILjdk/nashorn/internal/runtime/ScriptObject;I)V
31: aload 4
areturn
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 32 0 newObj Z
0 32 1 args [Ljava/lang/Object;
0 32 2 factory Ljdk/nashorn/internal/objects/ArrayBufferView$Factory;
3 32 3 arg0 Ljava/lang/Object;
20 21 4 dest Ljdk/nashorn/internal/objects/ArrayBufferView;
24 25 4 dest Ljdk/nashorn/internal/objects/ArrayBufferView;
30 32 4 dest Ljdk/nashorn/internal/objects/ArrayBufferView;
12 13 5 length I
16 17 5 length I
19 21 5 length I
23 25 5 length I
29 32 5 length I
7 17 6 buffer Ljdk/nashorn/internal/objects/NativeArrayBuffer;
10 17 7 byteOffset I
26 30 6 dlen D
MethodParameters:
Name Flags
newObj final
args final
factory final
protected static java.lang.Object setImpl(java.lang.Object, java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
checkcast jdk.nashorn.internal.objects.ArrayBufferView
astore 3
start local 3 1: aload 1
instanceof jdk.nashorn.internal.objects.ArrayBufferView
ifeq 4
2: aload 1
checkcast jdk.nashorn.internal.objects.ArrayBufferView
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.elementLength:()I
istore 4
start local 4 3: goto 8
end local 4 StackMap locals: jdk.nashorn.internal.objects.ArrayBufferView
StackMap stack:
4: aload 1
instanceof jdk.nashorn.internal.objects.NativeArray
ifeq 7
5: aload 1
checkcast jdk.nashorn.internal.objects.NativeArray
invokevirtual jdk.nashorn.internal.objects.NativeArray.getArray:()Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
ldc 2147483647
land
l2i
istore 4
start local 4 6: goto 8
end local 4 7: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
ldc "argument is not of array type"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
start local 4 8: StackMap locals: int
StackMap stack:
aload 1
checkcast jdk.nashorn.internal.runtime.ScriptObject
astore 5
start local 5 9: aload 2
invokestatic jdk.nashorn.internal.runtime.JSType.toInt32:(Ljava/lang/Object;)I
istore 6
start local 6 10: aload 3
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.elementLength:()I
iload 4
iload 6
iadd
if_icmplt 11
iload 6
ifge 12
11: StackMap locals: jdk.nashorn.internal.runtime.ScriptObject int
StackMap stack:
new java.lang.RuntimeException
dup
ldc "offset or array length out of bounds"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 3
iload 4
aload 5
iload 6
invokestatic jdk.nashorn.internal.objects.ArrayBufferView.copyElements:(Ljdk/nashorn/internal/objects/ArrayBufferView;ILjdk/nashorn/internal/runtime/ScriptObject;I)V
13: getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
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 14 0 self Ljava/lang/Object;
0 14 1 array Ljava/lang/Object;
0 14 2 offset0 Ljava/lang/Object;
1 14 3 dest Ljdk/nashorn/internal/objects/ArrayBufferView;
3 4 4 length I
6 7 4 length I
8 14 4 length I
9 14 5 source Ljdk/nashorn/internal/runtime/ScriptObject;
10 14 6 offset I
MethodParameters:
Name Flags
self final
array final
offset0 final
private static void copyElements(jdk.nashorn.internal.objects.ArrayBufferView, int, jdk.nashorn.internal.runtime.ScriptObject, int);
descriptor: (Ljdk/nashorn/internal/objects/ArrayBufferView;ILjdk/nashorn/internal/runtime/ScriptObject;I)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.isFloatArray:()Z
ifne 8
1: iconst_0
istore 4
start local 4 2: iload 3
istore 5
start local 5 3: goto 6
4: StackMap locals: int int
StackMap stack:
aload 0
iload 5
aload 2
iload 4
iconst_m1
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.getInt:(II)I
iconst_0
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.set:(III)V
5: iinc 4 1
iinc 5 1
StackMap locals:
StackMap stack:
6: iload 4
iload 1
if_icmplt 4
end local 5 end local 4 7: goto 14
8: StackMap locals:
StackMap stack:
iconst_0
istore 4
start local 4 9: iload 3
istore 5
start local 5 10: goto 13
11: StackMap locals: int int
StackMap stack:
aload 0
iload 5
aload 2
iload 4
iconst_m1
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.getDouble:(II)D
iconst_0
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.set:(IDI)V
12: iinc 4 1
iinc 5 1
StackMap locals:
StackMap stack:
13: iload 4
iload 1
if_icmplt 11
end local 5 end local 4 14: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 dest Ljdk/nashorn/internal/objects/ArrayBufferView;
0 15 1 length I
0 15 2 source Ljdk/nashorn/internal/runtime/ScriptObject;
0 15 3 offset I
2 7 4 i I
3 7 5 j I
9 14 4 i I
10 14 5 j I
MethodParameters:
Name Flags
dest final
length final
source final
offset final
private static int lengthToInt(long);
descriptor: (J)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: lload 0
ldc 2147483647
lcmp
ifgt 1
lload 0
lconst_0
lcmp
ifge 2
1: StackMap locals:
StackMap stack:
ldc "inappropriate.array.buffer.length"
iconst_1
anewarray java.lang.String
dup
iconst_0
lload 0
l2d
invokestatic jdk.nashorn.internal.runtime.JSType.toString:(D)Ljava/lang/String;
aastore
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.rangeError:(Ljava/lang/String;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/ECMAException;
athrow
2: StackMap locals:
StackMap stack:
lload 0
ldc 2147483647
land
l2i
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 length J
MethodParameters:
Name Flags
length final
protected static jdk.nashorn.internal.runtime.ScriptObject subarrayImpl(java.lang.Object, java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljdk/nashorn/internal/runtime/ScriptObject;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=4, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 0
checkcast jdk.nashorn.internal.objects.ArrayBufferView
astore 3
start local 3 1: aload 3
getfield jdk.nashorn.internal.objects.ArrayBufferView.byteOffset:I
istore 4
start local 4 2: aload 3
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.bytesPerElement:()I
istore 5
start local 5 3: aload 3
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.elementLength:()I
istore 6
start local 6 4: aload 1
invokestatic jdk.nashorn.internal.runtime.JSType.toInt32:(Ljava/lang/Object;)I
iload 6
invokestatic jdk.nashorn.internal.objects.NativeArrayBuffer.adjustIndex:(II)I
istore 7
start local 7 5: aload 2
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
if_acmpeq 6
aload 2
invokestatic jdk.nashorn.internal.runtime.JSType.toInt32:(Ljava/lang/Object;)I
goto 7
StackMap locals: java.lang.Object java.lang.Object java.lang.Object jdk.nashorn.internal.objects.ArrayBufferView int int int int
StackMap stack:
6: iload 6
StackMap locals:
StackMap stack: int
7: iload 6
invokestatic jdk.nashorn.internal.objects.NativeArrayBuffer.adjustIndex:(II)I
istore 8
start local 8 8: iload 8
iload 7
isub
iconst_0
invokestatic java.lang.Math.max:(II)I
istore 9
start local 9 9: getstatic jdk.nashorn.internal.objects.ArrayBufferView.$assertionsDisabled:Z
ifne 10
iload 4
iload 5
irem
ifeq 10
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
10: StackMap locals: int int
StackMap stack:
aload 3
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.factory:()Ljdk/nashorn/internal/objects/ArrayBufferView$Factory;
aload 3
getfield jdk.nashorn.internal.objects.ArrayBufferView.buffer:Ljdk/nashorn/internal/objects/NativeArrayBuffer;
iload 7
iload 5
imul
iload 4
iadd
iload 9
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView$Factory.construct:(Ljdk/nashorn/internal/objects/NativeArrayBuffer;II)Ljdk/nashorn/internal/objects/ArrayBufferView;
areturn
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 self Ljava/lang/Object;
0 11 1 begin0 Ljava/lang/Object;
0 11 2 end0 Ljava/lang/Object;
1 11 3 arrayView Ljdk/nashorn/internal/objects/ArrayBufferView;
2 11 4 byteOffset I
3 11 5 bytesPerElement I
4 11 6 elementLength I
5 11 7 begin I
8 11 8 end I
9 11 9 length I
MethodParameters:
Name Flags
self final
begin0 final
end0 final
protected jdk.dynalink.linker.GuardedInvocation findGetIndexMethod(jdk.dynalink.CallSiteDescriptor, jdk.dynalink.linker.LinkRequest);
descriptor: (Ljdk/dynalink/CallSiteDescriptor;Ljdk/dynalink/linker/LinkRequest;)Ljdk/dynalink/linker/GuardedInvocation;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.getArray:()Ljdk/nashorn/internal/runtime/arrays/ArrayData;
aload 0
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.getArray:()Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
aload 2
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.findFastGetIndexMethod:(Ljava/lang/Class;Ljdk/dynalink/CallSiteDescriptor;Ljdk/dynalink/linker/LinkRequest;)Ljdk/dynalink/linker/GuardedInvocation;
astore 3
start local 3 1: aload 3
ifnull 3
2: aload 3
areturn
3: StackMap locals: jdk.dynalink.linker.GuardedInvocation
StackMap stack:
aload 0
aload 1
aload 2
invokespecial jdk.nashorn.internal.runtime.ScriptObject.findGetIndexMethod:(Ljdk/dynalink/CallSiteDescriptor;Ljdk/dynalink/linker/LinkRequest;)Ljdk/dynalink/linker/GuardedInvocation;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/internal/objects/ArrayBufferView;
0 4 1 desc Ljdk/dynalink/CallSiteDescriptor;
0 4 2 request Ljdk/dynalink/linker/LinkRequest;
1 4 3 inv Ljdk/dynalink/linker/GuardedInvocation;
MethodParameters:
Name Flags
desc final
request final
protected jdk.dynalink.linker.GuardedInvocation findSetIndexMethod(jdk.dynalink.CallSiteDescriptor, jdk.dynalink.linker.LinkRequest);
descriptor: (Ljdk/dynalink/CallSiteDescriptor;Ljdk/dynalink/linker/LinkRequest;)Ljdk/dynalink/linker/GuardedInvocation;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.getArray:()Ljdk/nashorn/internal/runtime/arrays/ArrayData;
aload 0
invokevirtual jdk.nashorn.internal.objects.ArrayBufferView.getArray:()Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
aload 2
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.findFastSetIndexMethod:(Ljava/lang/Class;Ljdk/dynalink/CallSiteDescriptor;Ljdk/dynalink/linker/LinkRequest;)Ljdk/dynalink/linker/GuardedInvocation;
astore 3
start local 3 1: aload 3
ifnull 3
2: aload 3
areturn
3: StackMap locals: jdk.dynalink.linker.GuardedInvocation
StackMap stack:
aload 0
aload 1
aload 2
invokespecial jdk.nashorn.internal.runtime.ScriptObject.findSetIndexMethod:(Ljdk/dynalink/CallSiteDescriptor;Ljdk/dynalink/linker/LinkRequest;)Ljdk/dynalink/linker/GuardedInvocation;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/internal/objects/ArrayBufferView;
0 4 1 desc Ljdk/dynalink/CallSiteDescriptor;
0 4 2 request Ljdk/dynalink/linker/LinkRequest;
1 4 3 inv Ljdk/dynalink/linker/GuardedInvocation;
MethodParameters:
Name Flags
desc final
request final
}
SourceFile: "ArrayBufferView.java"
NestMembers:
jdk.nashorn.internal.objects.ArrayBufferView$Factory
InnerClasses:
protected abstract Factory = jdk.nashorn.internal.objects.ArrayBufferView$Factory of jdk.nashorn.internal.objects.ArrayBufferView
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.ScriptClass(value = "ArrayBufferView")