Class StringPrototypeBuiltins.JSStringToStringNode

All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, Cloneable
Enclosing class:
StringPrototypeBuiltins

public abstract static class StringPrototypeBuiltins.JSStringToStringNode extends JSBuiltinNode
Implementation of the String.prototype.toString() and String.prototype.valueOf() methods as specified by ECMAScript 5.1 in 15.5.4.2 and 15.5.4.3.
  • Constructor Details

    • JSStringToStringNode

      public JSStringToStringNode(JSContext context, JSBuiltin builtin)
  • Method Details

    • toStringTString

      protected com.oracle.truffle.api.strings.TruffleString toStringTString(com.oracle.truffle.api.strings.TruffleString thisStr)
    • toStringStringObject

      protected static com.oracle.truffle.api.strings.TruffleString toStringStringObject(JSStringObject thisStr)
    • toStringForeignObject

      protected com.oracle.truffle.api.strings.TruffleString toStringForeignObject(Object thisObj, com.oracle.truffle.api.interop.InteropLibrary interop, com.oracle.truffle.api.strings.TruffleString.SwitchEncodingNode switchEncoding)
    • toStringOther

      protected com.oracle.truffle.api.strings.TruffleString toStringOther(Object thisObj)