Class JSToLengthNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.cast.JSToLengthNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,Cloneable
Implementation of ToLength (ES6 7.1.15).
-
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 JSToLengthNodecreate()protected final longdoDouble(double value, com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch, com.oracle.truffle.api.profiles.InlinedBranchProfile tooLargeBranch) protected final longdoInt(int value, com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch) protected final longdoObject(Object value, JSToNumberNode toNumberNode, com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch, com.oracle.truffle.api.profiles.InlinedBranchProfile tooLargeBranch) protected final longdoSafeInteger(SafeInteger value, com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch) protected static longdoUndefined(Object value) abstract longexecuteLong(Object value) Methods inherited from class com.oracle.truffle.js.nodes.JavaScriptBaseNode
copy, getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperators, onReplaceMethods 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, toString
-
Constructor Details
-
JSToLengthNode
public JSToLengthNode()
-
-
Method Details
-
create
-
executeLong
-
doInt
protected final long doInt(int value, com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch) -
doSafeInteger
protected final long doSafeInteger(SafeInteger value, com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch) -
doDouble
protected final long doDouble(double value, com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch, com.oracle.truffle.api.profiles.InlinedBranchProfile tooLargeBranch) -
doUndefined
-
doObject
protected final long doObject(Object value, JSToNumberNode toNumberNode, com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch, com.oracle.truffle.api.profiles.InlinedBranchProfile tooLargeBranch)
-