abstract class com.oracle.truffle.js.nodes.array.GetLengthHelperNode extends com.oracle.truffle.js.nodes.JavaScriptBaseNode
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: com.oracle.truffle.js.nodes.array.GetLengthHelperNode
super_class: com.oracle.truffle.js.nodes.JavaScriptBaseNode
{
private final com.oracle.truffle.js.runtime.JSContext context;
descriptor: Lcom/oracle/truffle/js/runtime/JSContext;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private com.oracle.truffle.js.nodes.cast.JSToUInt32Node toUInt32Node;
descriptor: Lcom/oracle/truffle/js/nodes/cast/JSToUInt32Node;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
com.oracle.truffle.api.nodes.Node$Child()
private com.oracle.truffle.js.nodes.cast.JSToLengthNode toLengthNode;
descriptor: Lcom/oracle/truffle/js/nodes/cast/JSToLengthNode;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
com.oracle.truffle.api.nodes.Node$Child()
private final boolean toLength;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(com.oracle.truffle.js.runtime.JSContext);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial com.oracle.truffle.js.nodes.JavaScriptBaseNode.<init>:()V
1: aload 0
aload 1
putfield com.oracle.truffle.js.nodes.array.GetLengthHelperNode.context:Lcom/oracle/truffle/js/runtime/JSContext;
2: aload 0
aload 1
invokevirtual com.oracle.truffle.js.runtime.JSContext.getEcmaScriptVersion:()I
bipush 6
if_icmplt 3
iconst_1
goto 4
StackMap locals: com.oracle.truffle.js.nodes.array.GetLengthHelperNode com.oracle.truffle.js.runtime.JSContext
StackMap stack: com.oracle.truffle.js.nodes.array.GetLengthHelperNode
3: iconst_0
StackMap locals: com.oracle.truffle.js.nodes.array.GetLengthHelperNode com.oracle.truffle.js.runtime.JSContext
StackMap stack: com.oracle.truffle.js.nodes.array.GetLengthHelperNode int
4: putfield com.oracle.truffle.js.nodes.array.GetLengthHelperNode.toLength:Z
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/truffle/js/nodes/array/GetLengthHelperNode;
0 6 1 context Lcom/oracle/truffle/js/runtime/JSContext;
MethodParameters:
Name Flags
context
public static com.oracle.truffle.js.nodes.array.GetLengthHelperNode create(com.oracle.truffle.js.runtime.JSContext);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/js/nodes/array/GetLengthHelperNode;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tGetLengthHelperNodeGen cannot be resolved\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
MethodParameters:
Name Flags
context
public abstract java.lang.Object execute(java.lang.Object, boolean);
descriptor: (Ljava/lang/Object;Z)Ljava/lang/Object;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
value
isArray
public final long executeLong(java.lang.Object, boolean);
descriptor: (Ljava/lang/Object;Z)J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
aload 1
iload 2
invokevirtual com.oracle.truffle.js.nodes.array.GetLengthHelperNode.execute:(Ljava/lang/Object;Z)Ljava/lang/Object;
invokevirtual com.oracle.truffle.js.nodes.array.GetLengthHelperNode.toLengthLong:(Ljava/lang/Object;)J
lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/nodes/array/GetLengthHelperNode;
0 1 1 value Ljava/lang/Object;
0 1 2 isArray Z
MethodParameters:
Name Flags
value
isArray
public int getArrayLengthInt(com.oracle.truffle.api.object.DynamicObject, boolean, com.oracle.truffle.js.nodes.array.ArrayLengthNode$ArrayLengthReadNode);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;ZLcom/oracle/truffle/js/nodes/array/ArrayLengthNode$ArrayLengthReadNode;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
aload 1
invokevirtual com.oracle.truffle.js.nodes.array.ArrayLengthNode$ArrayLengthReadNode.executeInt:(Lcom/oracle/truffle/api/object/DynamicObject;)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/nodes/array/GetLengthHelperNode;
0 1 1 target Lcom/oracle/truffle/api/object/DynamicObject;
0 1 2 isArray Z
0 1 3 arrayLengthReadNode Lcom/oracle/truffle/js/nodes/array/ArrayLengthNode$ArrayLengthReadNode;
Exceptions:
throws com.oracle.truffle.api.nodes.UnexpectedResultException
RuntimeVisibleAnnotations:
com.oracle.truffle.api.dsl.Specialization(guards = {"isArray"}, rewriteOn = {Lcom/oracle/truffle/api/nodes/UnexpectedResultException;})
RuntimeInvisibleParameterAnnotations:
0:
1:
2:
com.oracle.truffle.api.dsl.Cached(value = "create()")
MethodParameters:
Name Flags
target
isArray
arrayLengthReadNode
public double getArrayLength(com.oracle.truffle.api.object.DynamicObject, boolean, com.oracle.truffle.js.nodes.array.ArrayLengthNode$ArrayLengthReadNode);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;ZLcom/oracle/truffle/js/nodes/array/ArrayLengthNode$ArrayLengthReadNode;)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
aload 1
invokevirtual com.oracle.truffle.js.nodes.array.ArrayLengthNode$ArrayLengthReadNode.executeDouble:(Lcom/oracle/truffle/api/object/DynamicObject;)D
dreturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/nodes/array/GetLengthHelperNode;
0 1 1 target Lcom/oracle/truffle/api/object/DynamicObject;
0 1 2 isArray Z
0 1 3 arrayLengthReadNode Lcom/oracle/truffle/js/nodes/array/ArrayLengthNode$ArrayLengthReadNode;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.dsl.Specialization(guards = {"isArray"})
RuntimeInvisibleParameterAnnotations:
0:
1:
2:
com.oracle.truffle.api.dsl.Cached(value = "create()")
MethodParameters:
Name Flags
target
isArray
arrayLengthReadNode
public double getLengthDynamicObject(com.oracle.truffle.api.object.DynamicObject, boolean, com.oracle.truffle.js.nodes.access.PropertyNode);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;ZLcom/oracle/truffle/js/nodes/access/PropertyNode;)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 3
aload 1
invokevirtual com.oracle.truffle.js.nodes.access.PropertyNode.executeWithTarget:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual com.oracle.truffle.js.nodes.array.GetLengthHelperNode.toLengthDouble:(Ljava/lang/Object;)D
dreturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/nodes/array/GetLengthHelperNode;
0 1 1 target Lcom/oracle/truffle/api/object/DynamicObject;
0 1 2 isArray Z
0 1 3 getLengthPropertyNode Lcom/oracle/truffle/js/nodes/access/PropertyNode;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.dsl.Specialization(guards = {"!isArray"})
RuntimeInvisibleParameterAnnotations:
0:
1:
2:
com.oracle.truffle.api.dsl.Cached(value = "createLengthProperty()")
MethodParameters:
Name Flags
target
isArray
getLengthPropertyNode
public double getLengthForeign(java.lang.Object, boolean, com.oracle.truffle.api.interop.InteropLibrary, com.oracle.truffle.js.nodes.interop.ImportValueNode);
descriptor: (Ljava/lang/Object;ZLcom/oracle/truffle/api/interop/InteropLibrary;Lcom/oracle/truffle/js/nodes/interop/ImportValueNode;)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 3
aload 1
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.hasArrayElements:(Ljava/lang/Object;)Z
ifeq 2
1: aload 1
aload 3
aload 0
invokestatic com.oracle.truffle.js.runtime.interop.JSInteropUtil.getArraySize:(Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropLibrary;Lcom/oracle/truffle/api/nodes/Node;)J
l2d
dreturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
ldc "length"
iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 3
aload 4
aload 0
invokestatic com.oracle.truffle.js.runtime.interop.JSInteropUtil.readMemberOrDefault:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropLibrary;Lcom/oracle/truffle/js/nodes/interop/ImportValueNode;Lcom/oracle/truffle/api/nodes/Node;)Ljava/lang/Object;
invokevirtual com.oracle.truffle.js.nodes.array.GetLengthHelperNode.toLengthDouble:(Ljava/lang/Object;)D
dreturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/js/nodes/array/GetLengthHelperNode;
0 3 1 target Ljava/lang/Object;
0 3 2 isArray Z
0 3 3 interop Lcom/oracle/truffle/api/interop/InteropLibrary;
0 3 4 importValueNode Lcom/oracle/truffle/js/nodes/interop/ImportValueNode;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.dsl.Specialization(guards = {"!isDynamicObject(target)"}, limit = "3")
RuntimeInvisibleParameterAnnotations:
0:
1:
2:
com.oracle.truffle.api.library.CachedLibrary(value = "target")
3:
com.oracle.truffle.api.dsl.Cached(value = "create()")
MethodParameters:
Name Flags
target
isArray
interop
importValueNode
protected com.oracle.truffle.js.nodes.access.PropertyNode createLengthProperty();
descriptor: ()Lcom/oracle/truffle/js/nodes/access/PropertyNode;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.js.nodes.array.GetLengthHelperNode.context:Lcom/oracle/truffle/js/runtime/JSContext;
aconst_null
ldc "length"
invokestatic com.oracle.truffle.js.nodes.access.PropertyNode.createProperty:(Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/js/nodes/JavaScriptNode;Ljava/lang/Object;)Lcom/oracle/truffle/js/nodes/access/PropertyNode;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/nodes/array/GetLengthHelperNode;
private double toUInt32Double(java.lang.Object);
descriptor: (Ljava/lang/Object;)D
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.oracle.truffle.js.nodes.array.GetLengthHelperNode.getUInt32Node:()Lcom/oracle/truffle/js/nodes/cast/JSToUInt32Node;
aload 1
invokevirtual com.oracle.truffle.js.nodes.cast.JSToUInt32Node.execute:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Number
invokestatic com.oracle.truffle.js.runtime.JSRuntime.doubleValue:(Ljava/lang/Number;)D
dreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/nodes/array/GetLengthHelperNode;
0 1 1 target Ljava/lang/Object;
MethodParameters:
Name Flags
target
private long toUInt32Long(java.lang.Object);
descriptor: (Ljava/lang/Object;)J
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.oracle.truffle.js.nodes.array.GetLengthHelperNode.getUInt32Node:()Lcom/oracle/truffle/js/nodes/cast/JSToUInt32Node;
aload 1
invokevirtual com.oracle.truffle.js.nodes.cast.JSToUInt32Node.execute:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Number
invokestatic com.oracle.truffle.js.runtime.JSRuntime.longValue:(Ljava/lang/Number;)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/nodes/array/GetLengthHelperNode;
0 1 1 target Ljava/lang/Object;
MethodParameters:
Name Flags
target
private double toLengthDouble(java.lang.Object);
descriptor: (Ljava/lang/Object;)D
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.truffle.js.nodes.array.GetLengthHelperNode.toLength:Z
ifeq 2
1: aload 0
invokevirtual com.oracle.truffle.js.nodes.array.GetLengthHelperNode.getToLengthNode:()Lcom/oracle/truffle/js/nodes/cast/JSToLengthNode;
aload 1
invokevirtual com.oracle.truffle.js.nodes.cast.JSToLengthNode.executeLong:(Ljava/lang/Object;)J
l2d
dreturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual com.oracle.truffle.js.nodes.array.GetLengthHelperNode.toUInt32Double:(Ljava/lang/Object;)D
dreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/js/nodes/array/GetLengthHelperNode;
0 3 1 target Ljava/lang/Object;
MethodParameters:
Name Flags
target
private long toLengthLong(java.lang.Object);
descriptor: (Ljava/lang/Object;)J
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.truffle.js.nodes.array.GetLengthHelperNode.toLength:Z
ifeq 2
1: aload 0
invokevirtual com.oracle.truffle.js.nodes.array.GetLengthHelperNode.getToLengthNode:()Lcom/oracle/truffle/js/nodes/cast/JSToLengthNode;
aload 1
invokevirtual com.oracle.truffle.js.nodes.cast.JSToLengthNode.executeLong:(Ljava/lang/Object;)J
lreturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual com.oracle.truffle.js.nodes.array.GetLengthHelperNode.toUInt32Long:(Ljava/lang/Object;)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/js/nodes/array/GetLengthHelperNode;
0 3 1 target Ljava/lang/Object;
MethodParameters:
Name Flags
target
private com.oracle.truffle.js.nodes.cast.JSToLengthNode getToLengthNode();
descriptor: ()Lcom/oracle/truffle/js/nodes/cast/JSToLengthNode;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.js.nodes.array.GetLengthHelperNode.toLengthNode:Lcom/oracle/truffle/js/nodes/cast/JSToLengthNode;
ifnonnull 3
1: invokestatic com.oracle.truffle.api.CompilerDirectives.transferToInterpreterAndInvalidate:()V
2: aload 0
aload 0
invokestatic com.oracle.truffle.js.nodes.cast.JSToLengthNode.create:()Lcom/oracle/truffle/js/nodes/cast/JSToLengthNode;
invokevirtual com.oracle.truffle.js.nodes.array.GetLengthHelperNode.insert:(Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/api/nodes/Node;
checkcast com.oracle.truffle.js.nodes.cast.JSToLengthNode
putfield com.oracle.truffle.js.nodes.array.GetLengthHelperNode.toLengthNode:Lcom/oracle/truffle/js/nodes/cast/JSToLengthNode;
3: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.nodes.array.GetLengthHelperNode.toLengthNode:Lcom/oracle/truffle/js/nodes/cast/JSToLengthNode;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/js/nodes/array/GetLengthHelperNode;
private com.oracle.truffle.js.nodes.cast.JSToUInt32Node getUInt32Node();
descriptor: ()Lcom/oracle/truffle/js/nodes/cast/JSToUInt32Node;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.js.nodes.array.GetLengthHelperNode.toUInt32Node:Lcom/oracle/truffle/js/nodes/cast/JSToUInt32Node;
ifnonnull 3
1: invokestatic com.oracle.truffle.api.CompilerDirectives.transferToInterpreterAndInvalidate:()V
2: aload 0
aload 0
invokestatic com.oracle.truffle.js.nodes.cast.JSToUInt32Node.create:()Lcom/oracle/truffle/js/nodes/cast/JSToUInt32Node;
invokevirtual com.oracle.truffle.js.nodes.array.GetLengthHelperNode.insert:(Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/api/nodes/Node;
checkcast com.oracle.truffle.js.nodes.cast.JSToUInt32Node
putfield com.oracle.truffle.js.nodes.array.GetLengthHelperNode.toUInt32Node:Lcom/oracle/truffle/js/nodes/cast/JSToUInt32Node;
3: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.nodes.array.GetLengthHelperNode.toUInt32Node:Lcom/oracle/truffle/js/nodes/cast/JSToUInt32Node;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/js/nodes/array/GetLengthHelperNode;
}
SourceFile: "GetLengthHelperNode.java"
InnerClasses:
public abstract Child = com.oracle.truffle.api.nodes.Node$Child of com.oracle.truffle.api.nodes.Node
public abstract ArrayLengthReadNode = com.oracle.truffle.js.nodes.array.ArrayLengthNode$ArrayLengthReadNode of com.oracle.truffle.js.nodes.array.ArrayLengthNode
RuntimeInvisibleAnnotations:
com.oracle.truffle.api.dsl.ImportStatic(value = {Lcom/oracle/truffle/js/runtime/interop/JSInteropUtil;})