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

public abstract class JSToLengthNode extends JavaScriptBaseNode
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected final long
    doDouble(double value, com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch, com.oracle.truffle.api.profiles.InlinedBranchProfile tooLargeBranch)
     
    protected final long
    doInt(int value, com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch)
     
    protected final long
    doObject(Object value, JSToNumberNode toNumberNode, com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch, com.oracle.truffle.api.profiles.InlinedBranchProfile tooLargeBranch)
     
    protected final long
    doSafeInteger(SafeInteger value, com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch)
     
    protected static long
     
    abstract long
     

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • JSToLengthNode

      public JSToLengthNode()
  • Method Details

    • create

      public static JSToLengthNode create()
    • executeLong

      public abstract long executeLong(Object value)
    • 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

      protected static long doUndefined(Object value)
    • doObject

      protected final long doObject(Object value, JSToNumberNode toNumberNode, com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch, com.oracle.truffle.api.profiles.InlinedBranchProfile tooLargeBranch)