Class ToArrayIndexNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.cast.ToArrayIndexNode
- 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 -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectconvertFromString(com.oracle.truffle.api.strings.TruffleString index, com.oracle.truffle.api.profiles.InlinedConditionProfile startsWithDigitBranch, com.oracle.truffle.api.profiles.InlinedBranchProfile isArrayIndexBranch, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node stringReadNode) protected static com.oracle.truffle.api.strings.TruffleStringconvertFromStringNotInRange(com.oracle.truffle.api.strings.TruffleString index) static ToArrayIndexNodecreate()static ToArrayIndexNodeprotected static longprotected static longdoDoubleAsIntIndex(double value) protected static longdoDoubleAsUintIndex(double value) protected static longdoInteger(int value) protected static longdoInteropArrayIndex(Object value, com.oracle.truffle.api.interop.InteropLibrary interop, long index) protected static longdoLong(long value) protected final ObjectdoNonArrayIndex(Object value, com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.interop.InteropLibrary interop, JSToPropertyKeyNode toPropertyKey, ToArrayIndexNoToPropertyKeyNode propertyKeyToArrayIndex) protected static Symbolprotected static booleandoubleIsIntIndex(double d) protected static booleandoubleIsUintIndex(double d) abstract Objectabstract longexecuteLong(Object operand) protected static booleanMethods inherited from class com.oracle.truffle.js.nodes.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
-
Field Details
-
convertStringToIndex
protected final boolean convertStringToIndex
-
-
Constructor Details
-
ToArrayIndexNode
protected ToArrayIndexNode(boolean convertStringToIndex)
-
-
Method Details
-
execute
-
executeLong
public abstract long executeLong(Object operand) throws com.oracle.truffle.api.nodes.UnexpectedResultException - Throws:
com.oracle.truffle.api.nodes.UnexpectedResultException
-
create
-
createNoStringToIndex
-
doInteger
protected static long doInteger(int value) -
doLong
protected static long doLong(long value) -
doubleIsIntIndex
protected static boolean doubleIsIntIndex(double d) -
doDoubleAsIntIndex
protected static long doDoubleAsIntIndex(double value) -
doubleIsUintIndex
protected static boolean doubleIsUintIndex(double d) -
doDoubleAsUintIndex
protected static long doDoubleAsUintIndex(double value) -
doSymbol
-
doBigInt
-
convertFromString
protected final Object convertFromString(com.oracle.truffle.api.strings.TruffleString index, com.oracle.truffle.api.profiles.InlinedConditionProfile startsWithDigitBranch, com.oracle.truffle.api.profiles.InlinedBranchProfile isArrayIndexBranch, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node stringReadNode) -
convertFromStringNotInRange
protected static com.oracle.truffle.api.strings.TruffleString convertFromStringNotInRange(com.oracle.truffle.api.strings.TruffleString index) -
notArrayIndex
-
doInteropArrayIndex
protected static long doInteropArrayIndex(Object value, com.oracle.truffle.api.interop.InteropLibrary interop, long index) -
doNonArrayIndex
protected final Object doNonArrayIndex(Object value, com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.interop.InteropLibrary interop, JSToPropertyKeyNode toPropertyKey, ToArrayIndexNoToPropertyKeyNode propertyKeyToArrayIndex)
-