Class JSGetLengthNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.array.JSGetLengthNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.Children -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JSGetLengthNodeprotected PropertyGetNodeabstract Objectfinal longexecuteLong(Object value) doublegetArrayLength(JSArrayObject target, ArrayLengthNode.ArrayLengthReadNode arrayLengthReadNode) intgetArrayLengthInt(JSArrayObject target, ArrayLengthNode.ArrayLengthReadNode arrayLengthReadNode) doublegetLengthForeign(Object target, com.oracle.truffle.api.interop.InteropLibrary interop, ImportValueNode importValueNode) doublegetNonArrayLength(JSDynamicObject target, PropertyGetNode getLengthPropertyNode) Methods inherited from class JavaScriptBaseNode
copy, getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperators, onReplace, reportLoopCount, reportLoopCountMethods inherited from class com.oracle.truffle.api.nodes.Node
accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize, reportReplace, toString
-
Constructor Details
-
JSGetLengthNode
-
-
Method Details
-
create
-
execute
-
executeLong
-
getArrayLengthInt
public int getArrayLengthInt(JSArrayObject target, ArrayLengthNode.ArrayLengthReadNode arrayLengthReadNode) throws com.oracle.truffle.api.nodes.UnexpectedResultException - Throws:
com.oracle.truffle.api.nodes.UnexpectedResultException
-
getArrayLength
public double getArrayLength(JSArrayObject target, ArrayLengthNode.ArrayLengthReadNode arrayLengthReadNode) -
getNonArrayLength
-
getLengthForeign
public double getLengthForeign(Object target, com.oracle.truffle.api.interop.InteropLibrary interop, ImportValueNode importValueNode) -
createLengthProperty
-