public abstract class com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode extends com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructWithNewTargetNode
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode
super_class: com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructWithNewTargetNode
{
private final com.oracle.truffle.api.profiles.ConditionProfile badLengthCondition;
descriptor: Lcom/oracle/truffle/api/profiles/ConditionProfile;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean useShared;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private com.oracle.truffle.js.nodes.access.GetPrototypeFromConstructorNode getPrototypeFromConstructorNode;
descriptor: Lcom/oracle/truffle/js/nodes/access/GetPrototypeFromConstructorNode;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
com.oracle.truffle.api.nodes.Node$Child()
public void <init>(com.oracle.truffle.js.runtime.JSContext, com.oracle.truffle.js.nodes.function.JSBuiltin, boolean, boolean);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/js/nodes/function/JSBuiltin;ZZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, 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 4
invokespecial com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructWithNewTargetNode.<init>:(Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/js/nodes/function/JSBuiltin;Z)V
1: aload 0
invokestatic com.oracle.truffle.api.profiles.ConditionProfile.createBinaryProfile:()Lcom/oracle/truffle/api/profiles/ConditionProfile;
putfield com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode.badLengthCondition:Lcom/oracle/truffle/api/profiles/ConditionProfile;
2: aload 0
iload 3
putfield com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode.useShared:Z
3: iload 4
ifeq 5
4: aload 0
aload 1
aconst_null
aload 0
invokedynamic apply(Lcom/oracle/truffle/js/builtins/ConstructorBuiltins$ConstructArrayBufferNode;)Lcom/oracle/truffle/js/runtime/util/CompilableFunction;
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/builtins/ConstructorBuiltins$ConstructArrayBufferNode.lambda$0(Lcom/oracle/truffle/js/runtime/JSRealm;)Lcom/oracle/truffle/api/object/DynamicObject; (7)
(Lcom/oracle/truffle/js/runtime/JSRealm;)Lcom/oracle/truffle/api/object/DynamicObject;
invokestatic com.oracle.truffle.js.nodes.access.GetPrototypeFromConstructorNode.create:(Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/js/nodes/JavaScriptNode;Lcom/oracle/truffle/js/runtime/util/CompilableFunction;)Lcom/oracle/truffle/js/nodes/access/GetPrototypeFromConstructorNode;
putfield com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode.getPrototypeFromConstructorNode:Lcom/oracle/truffle/js/nodes/access/GetPrototypeFromConstructorNode;
5: StackMap locals: com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode com.oracle.truffle.js.runtime.JSContext com.oracle.truffle.js.nodes.function.JSBuiltin int int
StackMap stack:
return
end local 4 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/builtins/ConstructorBuiltins$ConstructArrayBufferNode;
0 6 1 context Lcom/oracle/truffle/js/runtime/JSContext;
0 6 2 builtin Lcom/oracle/truffle/js/nodes/function/JSBuiltin;
0 6 3 useShared Z
0 6 4 isNewTargetCase Z
MethodParameters:
Name Flags
context
builtin
useShared
isNewTargetCase
protected boolean isHostByteBuffer(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode.getContext:()Lcom/oracle/truffle/js/runtime/JSContext;
invokevirtual com.oracle.truffle.js.runtime.JSContext.getRealm:()Lcom/oracle/truffle/js/runtime/JSRealm;
invokevirtual com.oracle.truffle.js.runtime.JSRealm.getEnv:()Lcom/oracle/truffle/api/TruffleLanguage$Env;
aload 1
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.isHostObject:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/builtins/ConstructorBuiltins$ConstructArrayBufferNode;
0 1 1 buffer Ljava/lang/Object;
MethodParameters:
Name Flags
buffer
protected com.oracle.truffle.api.object.DynamicObject constructFromLength(com.oracle.truffle.api.object.DynamicObject, java.lang.Object, com.oracle.truffle.js.nodes.cast.JSToIndexNode);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;Lcom/oracle/truffle/js/nodes/cast/JSToIndexNode;)Lcom/oracle/truffle/api/object/DynamicObject;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
aload 2
invokevirtual com.oracle.truffle.js.nodes.cast.JSToIndexNode.executeLong:(Ljava/lang/Object;)J
lstore 4
start local 4 1: aconst_null
astore 6
start local 6 2: aload 0
getfield com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode.isNewTargetCase:Z
ifeq 4
3: aload 0
getfield com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode.getPrototypeFromConstructorNode:Lcom/oracle/truffle/js/nodes/access/GetPrototypeFromConstructorNode;
aload 1
invokevirtual com.oracle.truffle.js.nodes.access.GetPrototypeFromConstructorNode.executeWithConstructor:(Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/api/object/DynamicObject;
astore 6
4: StackMap locals: long com.oracle.truffle.api.object.DynamicObject
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode.badLengthCondition:Lcom/oracle/truffle/api/profiles/ConditionProfile;
lload 4
aload 0
invokevirtual com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode.getContext:()Lcom/oracle/truffle/js/runtime/JSContext;
invokevirtual com.oracle.truffle.js.runtime.JSContext.getContextOptions:()Lcom/oracle/truffle/js/runtime/JSContextOptions;
invokevirtual com.oracle.truffle.js.runtime.JSContextOptions.getMaxTypedArrayLength:()I
i2l
lcmp
ifle 5
iconst_1
goto 6
StackMap locals:
StackMap stack: com.oracle.truffle.api.profiles.ConditionProfile
5: iconst_0
StackMap locals: com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode com.oracle.truffle.api.object.DynamicObject java.lang.Object com.oracle.truffle.js.nodes.cast.JSToIndexNode long com.oracle.truffle.api.object.DynamicObject
StackMap stack: com.oracle.truffle.api.profiles.ConditionProfile int
6: invokevirtual com.oracle.truffle.api.profiles.ConditionProfile.profile:(Z)Z
ifeq 8
7: ldc "Array buffer allocation failed"
invokestatic com.oracle.truffle.js.runtime.Errors.createRangeError:(Ljava/lang/String;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
8: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode.getContext:()Lcom/oracle/truffle/js/runtime/JSContext;
astore 8
start local 8 9: aload 0
getfield com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode.useShared:Z
ifeq 12
10: aload 8
lload 4
l2i
invokestatic com.oracle.truffle.js.runtime.builtins.JSSharedArrayBuffer.createSharedArrayBuffer:(Lcom/oracle/truffle/js/runtime/JSContext;I)Lcom/oracle/truffle/api/object/DynamicObject;
astore 7
start local 7 11: goto 16
end local 7 12: StackMap locals: com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode com.oracle.truffle.api.object.DynamicObject java.lang.Object com.oracle.truffle.js.nodes.cast.JSToIndexNode long com.oracle.truffle.api.object.DynamicObject top com.oracle.truffle.js.runtime.JSContext
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode.getContext:()Lcom/oracle/truffle/js/runtime/JSContext;
invokevirtual com.oracle.truffle.js.runtime.JSContext.isOptionDirectByteBuffer:()Z
ifeq 15
13: aload 8
lload 4
l2i
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.createDirectArrayBuffer:(Lcom/oracle/truffle/js/runtime/JSContext;I)Lcom/oracle/truffle/api/object/DynamicObject;
astore 7
start local 7 14: goto 16
end local 7 15: StackMap locals:
StackMap stack:
aload 8
lload 4
l2i
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.createArrayBuffer:(Lcom/oracle/truffle/js/runtime/JSContext;I)Lcom/oracle/truffle/api/object/DynamicObject;
astore 7
start local 7 16: StackMap locals: com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode com.oracle.truffle.api.object.DynamicObject java.lang.Object com.oracle.truffle.js.nodes.cast.JSToIndexNode long com.oracle.truffle.api.object.DynamicObject com.oracle.truffle.api.object.DynamicObject com.oracle.truffle.js.runtime.JSContext
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode.isNewTargetCase:Z
ifeq 18
17: aload 7
aload 6
invokestatic com.oracle.truffle.js.runtime.objects.JSObject.setPrototype:(Lcom/oracle/truffle/api/object/DynamicObject;Lcom/oracle/truffle/api/object/DynamicObject;)Z
pop
18: StackMap locals:
StackMap stack:
aload 7
areturn
end local 8 end local 7 end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lcom/oracle/truffle/js/builtins/ConstructorBuiltins$ConstructArrayBufferNode;
0 19 1 newTarget Lcom/oracle/truffle/api/object/DynamicObject;
0 19 2 length Ljava/lang/Object;
0 19 3 toIndexNode Lcom/oracle/truffle/js/nodes/cast/JSToIndexNode;
1 19 4 byteLength J
2 19 6 prototype Lcom/oracle/truffle/api/object/DynamicObject;
11 12 7 arrayBuffer Lcom/oracle/truffle/api/object/DynamicObject;
14 15 7 arrayBuffer Lcom/oracle/truffle/api/object/DynamicObject;
16 19 7 arrayBuffer Lcom/oracle/truffle/api/object/DynamicObject;
9 19 8 contextFromNewTarget Lcom/oracle/truffle/js/runtime/JSContext;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.dsl.Specialization(guards = {"!isByteBuffer(length)", "!isHostByteBuffer(length)"})
RuntimeInvisibleParameterAnnotations:
0:
1:
2:
com.oracle.truffle.api.dsl.Cached(value = "create()")
MethodParameters:
Name Flags
newTarget
length
toIndexNode
protected com.oracle.truffle.api.object.DynamicObject constructFromHostByteBuffer(com.oracle.truffle.api.object.DynamicObject, java.lang.Object, com.oracle.truffle.api.profiles.BranchProfile, com.oracle.truffle.api.profiles.ConditionProfile);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;Lcom/oracle/truffle/api/profiles/BranchProfile;Lcom/oracle/truffle/api/profiles/ConditionProfile;)Lcom/oracle/truffle/api/object/DynamicObject;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=7, 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.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode.getContext:()Lcom/oracle/truffle/js/runtime/JSContext;
invokevirtual com.oracle.truffle.js.runtime.JSContext.getRealm:()Lcom/oracle/truffle/js/runtime/JSRealm;
invokevirtual com.oracle.truffle.js.runtime.JSRealm.getEnv:()Lcom/oracle/truffle/api/TruffleLanguage$Env;
aload 2
invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.asHostObject:(Ljava/lang/Object;)Ljava/lang/Object;
astore 5
start local 5 1: aload 5
instanceof java.nio.ByteBuffer
ifeq 6
2: aload 5
checkcast java.nio.ByteBuffer
astore 6
start local 6 3: aload 4
aload 6
invokevirtual java.nio.ByteBuffer.isDirect:()Z
invokevirtual com.oracle.truffle.api.profiles.ConditionProfile.profile:(Z)Z
ifeq 5
4: aload 0
aload 0
invokevirtual com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode.getContext:()Lcom/oracle/truffle/js/runtime/JSContext;
aload 6
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.createDirectArrayBuffer:(Lcom/oracle/truffle/js/runtime/JSContext;Ljava/nio/ByteBuffer;)Lcom/oracle/truffle/api/object/DynamicObject;
aload 1
invokevirtual com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode.swapPrototype:(Lcom/oracle/truffle/api/object/DynamicObject;Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/api/object/DynamicObject;
areturn
5: StackMap locals: java.lang.Object java.nio.ByteBuffer
StackMap stack:
aload 0
aload 0
invokevirtual com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode.getContext:()Lcom/oracle/truffle/js/runtime/JSContext;
aload 6
invokestatic com.oracle.truffle.js.runtime.Boundaries.byteBufferArray:(Ljava/nio/ByteBuffer;)[B
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.createArrayBuffer:(Lcom/oracle/truffle/js/runtime/JSContext;[B)Lcom/oracle/truffle/api/object/DynamicObject;
aload 1
invokevirtual com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode.swapPrototype:(Lcom/oracle/truffle/api/object/DynamicObject;Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/api/object/DynamicObject;
areturn
end local 6 6: StackMap locals:
StackMap stack:
aload 3
invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
7: ldc "Unsupported input data type"
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeError:(Ljava/lang/String;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
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 8 0 this Lcom/oracle/truffle/js/builtins/ConstructorBuiltins$ConstructArrayBufferNode;
0 8 1 newTarget Lcom/oracle/truffle/api/object/DynamicObject;
0 8 2 buffer Ljava/lang/Object;
0 8 3 errorBranch Lcom/oracle/truffle/api/profiles/BranchProfile;
0 8 4 isDirect Lcom/oracle/truffle/api/profiles/ConditionProfile;
1 8 5 maybeBuffer Ljava/lang/Object;
3 6 6 byteBuffer Ljava/nio/ByteBuffer;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.dsl.Specialization(guards = {"isHostByteBuffer(buffer)"})
RuntimeInvisibleParameterAnnotations:
0:
1:
2:
com.oracle.truffle.api.dsl.Cached(value = "create()")
3:
com.oracle.truffle.api.dsl.Cached(value = "createBinaryProfile()")
MethodParameters:
Name Flags
newTarget
buffer
errorBranch
isDirect
protected 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: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode.useShared:Z
ifeq 1
aload 1
invokevirtual com.oracle.truffle.js.runtime.JSRealm.getSharedArrayBufferPrototype:()Lcom/oracle/truffle/api/object/DynamicObject;
goto 2
StackMap locals:
StackMap stack:
1: aload 1
invokevirtual com.oracle.truffle.js.runtime.JSRealm.getArrayBufferPrototype:()Lcom/oracle/truffle/api/object/DynamicObject;
StackMap locals:
StackMap stack: com.oracle.truffle.api.object.DynamicObject
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/js/builtins/ConstructorBuiltins$ConstructArrayBufferNode;
0 3 1 realm Lcom/oracle/truffle/js/runtime/JSRealm;
MethodParameters:
Name Flags
realm
private com.oracle.truffle.api.object.DynamicObject lambda$0(com.oracle.truffle.js.runtime.JSRealm);
descriptor: (Lcom/oracle/truffle/js/runtime/JSRealm;)Lcom/oracle/truffle/api/object/DynamicObject;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode.getIntrinsicDefaultProto:(Lcom/oracle/truffle/js/runtime/JSRealm;)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/builtins/ConstructorBuiltins$ConstructArrayBufferNode;
0 1 1 realm Lcom/oracle/truffle/js/runtime/JSRealm;
}
SourceFile: "ConstructorBuiltins.java"
NestHost: com.oracle.truffle.js.builtins.ConstructorBuiltins
InnerClasses:
public final Env = com.oracle.truffle.api.TruffleLanguage$Env of com.oracle.truffle.api.TruffleLanguage
public abstract Child = com.oracle.truffle.api.nodes.Node$Child of com.oracle.truffle.api.nodes.Node
public abstract ConstructArrayBufferNode = com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructArrayBufferNode of com.oracle.truffle.js.builtins.ConstructorBuiltins
public abstract ConstructWithNewTargetNode = com.oracle.truffle.js.builtins.ConstructorBuiltins$ConstructWithNewTargetNode of com.oracle.truffle.js.builtins.ConstructorBuiltins
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles