public final class com.oracle.truffle.js.runtime.builtins.JSArrayBuffer extends com.oracle.truffle.js.runtime.builtins.JSAbstractBuffer implements com.oracle.truffle.js.runtime.builtins.JSConstructorFactory$WithFunctionsAndSpecies, com.oracle.truffle.js.runtime.builtins.PrototypeSupplier
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.js.runtime.builtins.JSArrayBuffer
super_class: com.oracle.truffle.js.runtime.builtins.JSAbstractBuffer
{
public static final java.lang.String CLASS_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "ArrayBuffer"
public static final java.lang.String PROTOTYPE_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "ArrayBuffer.prototype"
public static final com.oracle.truffle.js.runtime.builtins.JSArrayBuffer HEAP_INSTANCE;
descriptor: Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final com.oracle.truffle.js.runtime.builtins.JSArrayBuffer DIRECT_INSTANCE;
descriptor: Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, 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=2, locals=0, args_size=0
0: ldc Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.$assertionsDisabled:Z
3: new com.oracle.truffle.js.runtime.builtins.JSArrayBuffer
dup
invokespecial com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.<init>:()V
putstatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.HEAP_INSTANCE:Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer;
4: new com.oracle.truffle.js.runtime.builtins.JSArrayBuffer
dup
invokespecial com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.<init>:()V
putstatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.DIRECT_INSTANCE:Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.oracle.truffle.js.runtime.builtins.JSAbstractBuffer.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer;
public static com.oracle.truffle.api.object.DynamicObject createArrayBuffer(com.oracle.truffle.js.runtime.JSContext, int);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;I)Lcom/oracle/truffle/api/object/DynamicObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
newarray 8
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.createArrayBuffer:(Lcom/oracle/truffle/js/runtime/JSContext;[B)Lcom/oracle/truffle/api/object/DynamicObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lcom/oracle/truffle/js/runtime/JSContext;
0 1 1 length I
MethodParameters:
Name Flags
context
length
public static com.oracle.truffle.api.object.DynamicObject createArrayBuffer(com.oracle.truffle.js.runtime.JSContext, byte[]);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;[B)Lcom/oracle/truffle/api/object/DynamicObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.oracle.truffle.js.runtime.JSContext.getRealm:()Lcom/oracle/truffle/js/runtime/JSRealm;
astore 2
start local 2 1: aload 0
invokevirtual com.oracle.truffle.js.runtime.JSContext.getArrayBufferFactory:()Lcom/oracle/truffle/js/runtime/builtins/JSObjectFactory;
astore 3
start local 3 2: aload 3
aload 2
invokevirtual com.oracle.truffle.js.runtime.builtins.JSObjectFactory.getShape:(Lcom/oracle/truffle/js/runtime/JSRealm;)Lcom/oracle/truffle/api/object/Shape;
aload 1
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBufferObject.createHeapArrayBuffer:(Lcom/oracle/truffle/api/object/Shape;[B)Lcom/oracle/truffle/api/object/DynamicObject;
astore 4
start local 4 3: aload 3
aload 4
aload 2
invokevirtual com.oracle.truffle.js.runtime.builtins.JSObjectFactory.initProto:(Lcom/oracle/truffle/api/object/DynamicObject;Lcom/oracle/truffle/js/runtime/JSRealm;)Lcom/oracle/truffle/api/object/DynamicObject;
pop
4: getstatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.$assertionsDisabled:Z
ifne 5
aload 4
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.isJSHeapArrayBuffer:(Ljava/lang/Object;)Z
ifne 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals: com.oracle.truffle.js.runtime.JSRealm com.oracle.truffle.js.runtime.builtins.JSObjectFactory com.oracle.truffle.api.object.DynamicObject
StackMap stack:
aload 0
aload 4
invokevirtual com.oracle.truffle.js.runtime.JSContext.trackAllocation:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.oracle.truffle.api.object.DynamicObject
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 context Lcom/oracle/truffle/js/runtime/JSContext;
0 6 1 byteArray [B
1 6 2 realm Lcom/oracle/truffle/js/runtime/JSRealm;
2 6 3 factory Lcom/oracle/truffle/js/runtime/builtins/JSObjectFactory;
3 6 4 obj Lcom/oracle/truffle/api/object/DynamicObject;
MethodParameters:
Name Flags
context
byteArray
public static int getDirectByteLength(com.oracle.truffle.api.object.DynamicObject);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.getDirectByteBuffer:(Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.capacity:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 thisObj Lcom/oracle/truffle/api/object/DynamicObject;
MethodParameters:
Name Flags
thisObj
public static java.nio.ByteBuffer getDirectByteBuffer(com.oracle.truffle.api.object.DynamicObject);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/nio/ByteBuffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.$assertionsDisabled:Z
ifne 1
aload 0
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.isJSDirectArrayBuffer:(Ljava/lang/Object;)Z
ifne 1
aload 0
invokestatic com.oracle.truffle.js.runtime.builtins.JSSharedArrayBuffer.isJSSharedArrayBuffer:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBufferObject.getDirectByteBuffer:(Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/nio/ByteBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 thisObj Lcom/oracle/truffle/api/object/DynamicObject;
MethodParameters:
Name Flags
thisObj
public static com.oracle.truffle.api.object.DynamicObject createDirectArrayBuffer(com.oracle.truffle.js.runtime.JSContext, int);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;I)Lcom/oracle/truffle/api/object/DynamicObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokestatic com.oracle.truffle.js.runtime.util.DirectByteBufferHelper.allocateDirect:(I)Ljava/nio/ByteBuffer;
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.createDirectArrayBuffer:(Lcom/oracle/truffle/js/runtime/JSContext;Ljava/nio/ByteBuffer;)Lcom/oracle/truffle/api/object/DynamicObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lcom/oracle/truffle/js/runtime/JSContext;
0 1 1 length I
MethodParameters:
Name Flags
context
length
public static com.oracle.truffle.api.object.DynamicObject createDirectArrayBuffer(com.oracle.truffle.js.runtime.JSContext, java.nio.ByteBuffer);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;Ljava/nio/ByteBuffer;)Lcom/oracle/truffle/api/object/DynamicObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.oracle.truffle.js.runtime.JSContext.getRealm:()Lcom/oracle/truffle/js/runtime/JSRealm;
astore 2
start local 2 1: aload 0
invokevirtual com.oracle.truffle.js.runtime.JSContext.getDirectArrayBufferFactory:()Lcom/oracle/truffle/js/runtime/builtins/JSObjectFactory;
astore 3
start local 3 2: aload 3
aload 2
invokevirtual com.oracle.truffle.js.runtime.builtins.JSObjectFactory.getShape:(Lcom/oracle/truffle/js/runtime/JSRealm;)Lcom/oracle/truffle/api/object/Shape;
aload 1
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBufferObject.createDirectArrayBuffer:(Lcom/oracle/truffle/api/object/Shape;Ljava/nio/ByteBuffer;)Lcom/oracle/truffle/api/object/DynamicObject;
astore 4
start local 4 3: aload 3
aload 4
aload 2
invokevirtual com.oracle.truffle.js.runtime.builtins.JSObjectFactory.initProto:(Lcom/oracle/truffle/api/object/DynamicObject;Lcom/oracle/truffle/js/runtime/JSRealm;)Lcom/oracle/truffle/api/object/DynamicObject;
pop
4: getstatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.$assertionsDisabled:Z
ifne 5
aload 4
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.isJSDirectArrayBuffer:(Ljava/lang/Object;)Z
ifne 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals: com.oracle.truffle.js.runtime.JSRealm com.oracle.truffle.js.runtime.builtins.JSObjectFactory com.oracle.truffle.api.object.DynamicObject
StackMap stack:
aload 0
aload 4
invokevirtual com.oracle.truffle.js.runtime.JSContext.trackAllocation:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.oracle.truffle.api.object.DynamicObject
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 context Lcom/oracle/truffle/js/runtime/JSContext;
0 6 1 buffer Ljava/nio/ByteBuffer;
1 6 2 realm Lcom/oracle/truffle/js/runtime/JSRealm;
2 6 3 factory Lcom/oracle/truffle/js/runtime/builtins/JSObjectFactory;
3 6 4 obj Lcom/oracle/truffle/api/object/DynamicObject;
MethodParameters:
Name Flags
context
buffer
public com.oracle.truffle.api.object.DynamicObject createPrototype(com.oracle.truffle.js.runtime.JSRealm, com.oracle.truffle.api.object.DynamicObject);
descriptor: (Lcom/oracle/truffle/js/runtime/JSRealm;Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/api/object/DynamicObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual com.oracle.truffle.js.runtime.JSRealm.getContext:()Lcom/oracle/truffle/js/runtime/JSContext;
astore 3
start local 3 1: aload 3
invokevirtual com.oracle.truffle.js.runtime.JSContext.getEcmaScriptVersion:()I
bipush 6
if_icmpge 6
2: aload 3
getstatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.HEAP_INSTANCE:Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer;
aload 1
invokevirtual com.oracle.truffle.js.runtime.JSRealm.getObjectPrototype:()Lcom/oracle/truffle/api/object/DynamicObject;
invokestatic com.oracle.truffle.js.runtime.objects.JSShape.createPrototypeShape:(Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/js/runtime/builtins/JSClass;Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/api/object/Shape;
astore 5
start local 5 3: aload 5
iconst_0
newarray 8
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBufferObject.createHeapArrayBuffer:(Lcom/oracle/truffle/api/object/Shape;[B)Lcom/oracle/truffle/api/object/DynamicObject;
astore 4
start local 4 4: aload 3
aload 4
aload 1
invokevirtual com.oracle.truffle.js.runtime.JSRealm.getObjectPrototype:()Lcom/oracle/truffle/api/object/DynamicObject;
invokestatic com.oracle.truffle.js.runtime.objects.JSObjectUtil.setOrVerifyPrototype:(Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/api/object/DynamicObject;Lcom/oracle/truffle/api/object/DynamicObject;)V
end local 5 5: goto 7
end local 4 6: StackMap locals: com.oracle.truffle.js.runtime.JSContext
StackMap stack:
aload 1
invokestatic com.oracle.truffle.js.runtime.objects.JSObjectUtil.createOrdinaryPrototypeObject:(Lcom/oracle/truffle/js/runtime/JSRealm;)Lcom/oracle/truffle/api/object/DynamicObject;
astore 4
start local 4 7: StackMap locals: com.oracle.truffle.api.object.DynamicObject
StackMap stack:
aload 3
aload 4
aload 2
invokestatic com.oracle.truffle.js.runtime.objects.JSObjectUtil.putConstructorProperty:(Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/api/object/DynamicObject;Lcom/oracle/truffle/api/object/DynamicObject;)V
8: aload 1
aload 4
getstatic com.oracle.truffle.js.builtins.ArrayBufferPrototypeBuiltins.BUILTINS:Lcom/oracle/truffle/js/builtins/JSBuiltinsContainer;
invokestatic com.oracle.truffle.js.runtime.objects.JSObjectUtil.putFunctionsFromContainer:(Lcom/oracle/truffle/js/runtime/JSRealm;Lcom/oracle/truffle/api/object/DynamicObject;Lcom/oracle/truffle/js/builtins/JSBuiltinsContainer;)V
9: aload 1
invokevirtual com.oracle.truffle.js.runtime.JSRealm.getContext:()Lcom/oracle/truffle/js/runtime/JSContext;
getstatic com.oracle.truffle.js.runtime.JSContext$BuiltinFunctionKey.ArrayBufferByteLength:Lcom/oracle/truffle/js/runtime/JSContext$BuiltinFunctionKey;
aload 3
invokedynamic apply(Lcom/oracle/truffle/js/runtime/JSContext;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
com/oracle/truffle/js/runtime/builtins/JSArrayBuffer.lambda$0(Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/js/runtime/builtins/JSFunctionData; (6)
(Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/js/runtime/builtins/JSFunctionData;
invokevirtual com.oracle.truffle.js.runtime.JSContext.getOrCreateBuiltinFunctionData:(Lcom/oracle/truffle/js/runtime/JSContext$BuiltinFunctionKey;Ljava/util/function/Function;)Lcom/oracle/truffle/js/runtime/builtins/JSFunctionData;
astore 5
start local 5 10: aload 1
aload 5
invokestatic com.oracle.truffle.js.runtime.builtins.JSFunction.create:(Lcom/oracle/truffle/js/runtime/JSRealm;Lcom/oracle/truffle/js/runtime/builtins/JSFunctionData;)Lcom/oracle/truffle/api/object/DynamicObject;
astore 6
start local 6 11: aload 4
ldc "byteLength"
aload 6
getstatic com.oracle.truffle.js.runtime.objects.Undefined.instance:Lcom/oracle/truffle/js/runtime/objects/JSDynamicObject;
invokestatic com.oracle.truffle.js.runtime.objects.JSObjectUtil.putBuiltinAccessorProperty:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;Lcom/oracle/truffle/api/object/DynamicObject;Lcom/oracle/truffle/api/object/DynamicObject;)V
12: aload 4
ldc "ArrayBuffer"
invokestatic com.oracle.truffle.js.runtime.objects.JSObjectUtil.putToStringTag:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;)V
13: aload 4
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 this Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer;
0 14 1 realm Lcom/oracle/truffle/js/runtime/JSRealm;
0 14 2 ctor Lcom/oracle/truffle/api/object/DynamicObject;
1 14 3 context Lcom/oracle/truffle/js/runtime/JSContext;
4 6 4 arrayBufferPrototype Lcom/oracle/truffle/api/object/DynamicObject;
7 14 4 arrayBufferPrototype Lcom/oracle/truffle/api/object/DynamicObject;
3 5 5 protoShape Lcom/oracle/truffle/api/object/Shape;
10 14 5 byteLengthGetterData Lcom/oracle/truffle/js/runtime/builtins/JSFunctionData;
11 14 6 byteLengthGetter Lcom/oracle/truffle/api/object/DynamicObject;
MethodParameters:
Name Flags
realm
ctor
private static com.oracle.truffle.api.CallTarget createByteLengthGetterCallTarget(com.oracle.truffle.js.runtime.JSContext);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/api/CallTarget;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: invokestatic com.oracle.truffle.api.Truffle.getRuntime:()Lcom/oracle/truffle/api/TruffleRuntime;
new com.oracle.truffle.js.runtime.builtins.JSArrayBuffer$1
dup
aload 0
invokevirtual com.oracle.truffle.js.runtime.JSContext.getLanguage:()Lcom/oracle/truffle/js/lang/JavaScriptLanguage;
aconst_null
aconst_null
aload 0
invokespecial com.oracle.truffle.js.runtime.builtins.JSArrayBuffer$1.<init>:(Lcom/oracle/truffle/js/lang/JavaScriptLanguage;Lcom/oracle/truffle/api/source/SourceSection;Lcom/oracle/truffle/api/frame/FrameDescriptor;Lcom/oracle/truffle/js/runtime/JSContext;)V
invokeinterface com.oracle.truffle.api.TruffleRuntime.createCallTarget:(Lcom/oracle/truffle/api/nodes/RootNode;)Lcom/oracle/truffle/api/RootCallTarget;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lcom/oracle/truffle/js/runtime/JSContext;
MethodParameters:
Name Flags
context
public com.oracle.truffle.api.object.Shape makeInitialShape(com.oracle.truffle.js.runtime.JSContext, com.oracle.truffle.api.object.DynamicObject);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/api/object/Shape;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getstatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.HEAP_INSTANCE:Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer;
if_acmpne 3
1: aload 2
getstatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.HEAP_INSTANCE:Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer;
aload 1
invokestatic com.oracle.truffle.js.runtime.objects.JSObjectUtil.getProtoChildShape:(Lcom/oracle/truffle/api/object/DynamicObject;Lcom/oracle/truffle/js/runtime/builtins/JSClass;Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/api/object/Shape;
astore 3
start local 3 2: aload 3
areturn
end local 3 3: StackMap locals:
StackMap stack:
getstatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.$assertionsDisabled:Z
ifne 4
aload 0
getstatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.DIRECT_INSTANCE:Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer;
if_acmpeq 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 2
getstatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.DIRECT_INSTANCE:Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer;
aload 1
invokestatic com.oracle.truffle.js.runtime.objects.JSObjectUtil.getProtoChildShape:(Lcom/oracle/truffle/api/object/DynamicObject;Lcom/oracle/truffle/js/runtime/builtins/JSClass;Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/api/object/Shape;
astore 3
start local 3 5: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer;
0 6 1 context Lcom/oracle/truffle/js/runtime/JSContext;
0 6 2 prototype Lcom/oracle/truffle/api/object/DynamicObject;
2 3 3 initialShape Lcom/oracle/truffle/api/object/Shape;
5 6 3 initialShape Lcom/oracle/truffle/api/object/Shape;
MethodParameters:
Name Flags
context
prototype
public static com.oracle.truffle.js.runtime.builtins.JSConstructor createConstructor(com.oracle.truffle.js.runtime.JSRealm);
descriptor: (Lcom/oracle/truffle/js/runtime/JSRealm;)Lcom/oracle/truffle/js/runtime/builtins/JSConstructor;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.HEAP_INSTANCE:Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer;
aload 0
getstatic com.oracle.truffle.js.builtins.ArrayBufferFunctionBuiltins.BUILTINS:Lcom/oracle/truffle/js/builtins/JSBuiltinsContainer;
invokevirtual com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.createConstructorAndPrototype:(Lcom/oracle/truffle/js/runtime/JSRealm;Lcom/oracle/truffle/js/builtins/JSBuiltinsContainer;)Lcom/oracle/truffle/js/runtime/builtins/JSConstructor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 realm Lcom/oracle/truffle/js/runtime/JSRealm;
MethodParameters:
Name Flags
realm
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 Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer;
public java.lang.String getClassName(com.oracle.truffle.api.object.DynamicObject);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.getClassName:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer;
0 1 1 object Lcom/oracle/truffle/api/object/DynamicObject;
MethodParameters:
Name Flags
object
public static boolean isJSHeapArrayBuffer(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof com.oracle.truffle.js.runtime.builtins.JSArrayBufferObject$Heap
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public static boolean isJSDirectArrayBuffer(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof com.oracle.truffle.js.runtime.builtins.JSArrayBufferObject$Direct
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public static boolean isJSDirectOrSharedArrayBuffer(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.isJSDirectArrayBuffer:(Ljava/lang/Object;)Z
ifne 1
aload 0
invokestatic com.oracle.truffle.js.runtime.builtins.JSSharedArrayBuffer.isJSSharedArrayBuffer:(Ljava/lang/Object;)Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public static boolean isDetachedBuffer(com.oracle.truffle.api.object.DynamicObject);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.$assertionsDisabled:Z
ifne 1
aload 0
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.isJSAbstractBuffer:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.isJSHeapArrayBuffer:(Ljava/lang/Object;)Z
ifeq 4
2: aload 0
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.getByteArray:(Lcom/oracle/truffle/api/object/DynamicObject;)[B
ifnonnull 3
iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
getstatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.$assertionsDisabled:Z
ifne 5
aload 0
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.isJSDirectOrSharedArrayBuffer:(Ljava/lang/Object;)Z
ifne 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
aload 0
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.getDirectByteBuffer:(Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/nio/ByteBuffer;
ifnonnull 6
iconst_1
ireturn
StackMap locals:
StackMap stack:
6: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 arrayBuffer Lcom/oracle/truffle/api/object/DynamicObject;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
arrayBuffer
public static void detachArrayBuffer(com.oracle.truffle.api.object.DynamicObject);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.$assertionsDisabled:Z
ifne 1
aload 0
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.isJSAbstractBuffer:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
invokestatic com.oracle.truffle.js.runtime.objects.JSObject.getJSContext:(Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/js/runtime/JSContext;
invokevirtual com.oracle.truffle.js.runtime.JSContext.getTypedArrayNotDetachedAssumption:()Lcom/oracle/truffle/api/Assumption;
ldc "no detached array buffer"
invokeinterface com.oracle.truffle.api.Assumption.invalidate:(Ljava/lang/String;)V
2: aload 0
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.isJSDirectArrayBuffer:(Ljava/lang/Object;)Z
ifeq 5
3: aload 0
checkcast com.oracle.truffle.js.runtime.builtins.JSArrayBufferObject$Direct
invokevirtual com.oracle.truffle.js.runtime.builtins.JSArrayBufferObject$Direct.detachArrayBuffer:()V
4: goto 6
5: StackMap locals:
StackMap stack:
aload 0
checkcast com.oracle.truffle.js.runtime.builtins.JSArrayBufferObject$Heap
invokevirtual com.oracle.truffle.js.runtime.builtins.JSArrayBufferObject$Heap.detachArrayBuffer:()V
6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 arrayBuffer Lcom/oracle/truffle/api/object/DynamicObject;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
arrayBuffer
public com.oracle.truffle.api.object.DynamicObject getIntrinsicDefaultProto(com.oracle.truffle.js.runtime.JSRealm);
descriptor: (Lcom/oracle/truffle/js/runtime/JSRealm;)Lcom/oracle/truffle/api/object/DynamicObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.oracle.truffle.js.runtime.JSRealm.getArrayBufferPrototype:()Lcom/oracle/truffle/api/object/DynamicObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer;
0 1 1 realm Lcom/oracle/truffle/js/runtime/JSRealm;
MethodParameters:
Name Flags
realm
private static com.oracle.truffle.js.runtime.builtins.JSFunctionData lambda$0(com.oracle.truffle.js.runtime.JSContext, com.oracle.truffle.js.runtime.JSContext);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/js/runtime/builtins/JSFunctionData;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.createByteLengthGetterCallTarget:(Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/api/CallTarget;
iconst_0
ldc "get byteLength"
invokestatic com.oracle.truffle.js.runtime.builtins.JSFunctionData.createCallOnly:(Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/api/CallTarget;ILjava/lang/String;)Lcom/oracle/truffle/js/runtime/builtins/JSFunctionData;
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 c Lcom/oracle/truffle/js/runtime/JSContext;
}
SourceFile: "JSArrayBuffer.java"
NestMembers:
com.oracle.truffle.js.runtime.builtins.JSArrayBuffer$1
InnerClasses:
public abstract TruffleBoundary = com.oracle.truffle.api.CompilerDirectives$TruffleBoundary of com.oracle.truffle.api.CompilerDirectives
public final BuiltinFunctionKey = com.oracle.truffle.js.runtime.JSContext$BuiltinFunctionKey of com.oracle.truffle.js.runtime.JSContext
com.oracle.truffle.js.runtime.builtins.JSArrayBuffer$1
public final Direct = com.oracle.truffle.js.runtime.builtins.JSArrayBufferObject$Direct of com.oracle.truffle.js.runtime.builtins.JSArrayBufferObject
public final Heap = com.oracle.truffle.js.runtime.builtins.JSArrayBufferObject$Heap of com.oracle.truffle.js.runtime.builtins.JSArrayBufferObject
public abstract WithFunctionsAndSpecies = com.oracle.truffle.js.runtime.builtins.JSConstructorFactory$WithFunctionsAndSpecies of com.oracle.truffle.js.runtime.builtins.JSConstructorFactory
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles