class com.oracle.truffle.js.runtime.builtins.JSArrayBuffer$1 extends com.oracle.truffle.js.runtime.JavaScriptRootNode
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.oracle.truffle.js.runtime.builtins.JSArrayBuffer$1
super_class: com.oracle.truffle.js.runtime.JavaScriptRootNode
{
private final com.oracle.truffle.api.profiles.ConditionProfile isArrayBuffer;
descriptor: Lcom/oracle/truffle/api/profiles/ConditionProfile;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.truffle.api.profiles.ConditionProfile isDirectByteBuffer;
descriptor: Lcom/oracle/truffle/api/profiles/ConditionProfile;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.truffle.api.profiles.BranchProfile errorBranch;
descriptor: Lcom/oracle/truffle/api/profiles/BranchProfile;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.truffle.js.runtime.JSContext val$context;
descriptor: Lcom/oracle/truffle/js/runtime/JSContext;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(com.oracle.truffle.js.lang.JavaScriptLanguage, com.oracle.truffle.api.source.SourceSection, com.oracle.truffle.api.frame.FrameDescriptor, com.oracle.truffle.js.runtime.JSContext);
descriptor: (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
flags: (0x0000)
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 4
putfield com.oracle.truffle.js.runtime.builtins.JSArrayBuffer$1.val$context:Lcom/oracle/truffle/js/runtime/JSContext;
aload 0
aload 1
aload 2
aload 3
invokespecial com.oracle.truffle.js.runtime.JavaScriptRootNode.<init>:(Lcom/oracle/truffle/js/lang/JavaScriptLanguage;Lcom/oracle/truffle/api/source/SourceSection;Lcom/oracle/truffle/api/frame/FrameDescriptor;)V
1: aload 0
invokestatic com.oracle.truffle.api.profiles.ConditionProfile.createBinaryProfile:()Lcom/oracle/truffle/api/profiles/ConditionProfile;
putfield com.oracle.truffle.js.runtime.builtins.JSArrayBuffer$1.isArrayBuffer:Lcom/oracle/truffle/api/profiles/ConditionProfile;
2: aload 0
invokestatic com.oracle.truffle.api.profiles.ConditionProfile.createBinaryProfile:()Lcom/oracle/truffle/api/profiles/ConditionProfile;
putfield com.oracle.truffle.js.runtime.builtins.JSArrayBuffer$1.isDirectByteBuffer:Lcom/oracle/truffle/api/profiles/ConditionProfile;
3: aload 0
invokestatic com.oracle.truffle.api.profiles.BranchProfile.create:()Lcom/oracle/truffle/api/profiles/BranchProfile;
putfield com.oracle.truffle.js.runtime.builtins.JSArrayBuffer$1.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer$1;
0 5 1 $anonymous0 Lcom/oracle/truffle/js/lang/JavaScriptLanguage;
0 5 2 $anonymous1 Lcom/oracle/truffle/api/source/SourceSection;
0 5 3 $anonymous2 Lcom/oracle/truffle/api/frame/FrameDescriptor;
MethodParameters:
Name Flags
$anonymous0
$anonymous1
$anonymous2
val$context final
public java.lang.Object execute(com.oracle.truffle.api.frame.VirtualFrame);
descriptor: (Lcom/oracle/truffle/api/frame/VirtualFrame;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface com.oracle.truffle.api.frame.VirtualFrame.getArguments:()[Ljava/lang/Object;
invokestatic com.oracle.truffle.js.runtime.JSArguments.getThisObject:([Ljava/lang/Object;)Ljava/lang/Object;
astore 2
start local 2 1: aload 2
invokestatic com.oracle.truffle.js.runtime.objects.JSDynamicObject.isJSDynamicObject:(Ljava/lang/Object;)Z
ifeq 11
2: aload 2
checkcast com.oracle.truffle.api.object.DynamicObject
astore 3
start local 3 3: aload 0
getfield com.oracle.truffle.js.runtime.builtins.JSArrayBuffer$1.isArrayBuffer:Lcom/oracle/truffle/api/profiles/ConditionProfile;
aload 3
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.isJSHeapArrayBuffer:(Ljava/lang/Object;)Z
invokevirtual com.oracle.truffle.api.profiles.ConditionProfile.profile:(Z)Z
ifeq 7
4: aload 0
getfield com.oracle.truffle.js.runtime.builtins.JSArrayBuffer$1.val$context:Lcom/oracle/truffle/js/runtime/JSContext;
invokevirtual com.oracle.truffle.js.runtime.JSContext.getTypedArrayNotDetachedAssumption:()Lcom/oracle/truffle/api/Assumption;
invokeinterface com.oracle.truffle.api.Assumption.isValid:()Z
ifne 6
aload 3
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.isDetachedBuffer:(Lcom/oracle/truffle/api/object/DynamicObject;)Z
ifeq 6
5: aload 0
invokevirtual com.oracle.truffle.js.runtime.builtins.JSArrayBuffer$1.handleDetachedBuffer:()Ljava/lang/Object;
areturn
6: StackMap locals: java.lang.Object com.oracle.truffle.api.object.DynamicObject
StackMap stack:
aload 3
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.getByteLength:(Lcom/oracle/truffle/api/object/DynamicObject;)I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
7: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.runtime.builtins.JSArrayBuffer$1.isDirectByteBuffer:Lcom/oracle/truffle/api/profiles/ConditionProfile;
aload 3
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.isJSDirectArrayBuffer:(Ljava/lang/Object;)Z
invokevirtual com.oracle.truffle.api.profiles.ConditionProfile.profile:(Z)Z
ifeq 11
8: aload 0
getfield com.oracle.truffle.js.runtime.builtins.JSArrayBuffer$1.val$context:Lcom/oracle/truffle/js/runtime/JSContext;
invokevirtual com.oracle.truffle.js.runtime.JSContext.getTypedArrayNotDetachedAssumption:()Lcom/oracle/truffle/api/Assumption;
invokeinterface com.oracle.truffle.api.Assumption.isValid:()Z
ifne 10
aload 3
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.isDetachedBuffer:(Lcom/oracle/truffle/api/object/DynamicObject;)Z
ifeq 10
9: aload 0
invokevirtual com.oracle.truffle.js.runtime.builtins.JSArrayBuffer$1.handleDetachedBuffer:()Ljava/lang/Object;
areturn
10: StackMap locals:
StackMap stack:
aload 3
invokestatic com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.getDirectByteLength:(Lcom/oracle/truffle/api/object/DynamicObject;)I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
end local 3 11: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.runtime.builtins.JSArrayBuffer$1.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
12: invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorArrayBufferExpected:()Lcom/oracle/truffle/js/runtime/JSException;
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer$1;
0 13 1 frame Lcom/oracle/truffle/api/frame/VirtualFrame;
1 13 2 obj Ljava/lang/Object;
3 11 3 buffer Lcom/oracle/truffle/api/object/DynamicObject;
MethodParameters:
Name Flags
frame
private java.lang.Object handleDetachedBuffer();
descriptor: ()Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.js.runtime.builtins.JSArrayBuffer$1.val$context:Lcom/oracle/truffle/js/runtime/JSContext;
invokevirtual com.oracle.truffle.js.runtime.JSContext.isOptionV8CompatibilityMode:()Z
ifeq 2
1: iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
2: StackMap locals:
StackMap stack:
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorDetachedBuffer:()Lcom/oracle/truffle/js/runtime/JSException;
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/js/runtime/builtins/JSArrayBuffer$1;
}
SourceFile: "JSArrayBuffer.java"
EnclosingMethod: com.oracle.truffle.js.runtime.builtins.JSArrayBuffer.createByteLengthGetterCallTarget:(Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/api/CallTarget;
NestHost: com.oracle.truffle.js.runtime.builtins.JSArrayBuffer
InnerClasses:
com.oracle.truffle.js.runtime.builtins.JSArrayBuffer$1