Class JSToCanonicalizedLocaleListNode

java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.intl.JSToCanonicalizedLocaleListNode
All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public abstract class JSToCanonicalizedLocaleListNode extends JavaScriptBaseNode
Implementation of ECMA intl402 9.2.1 "CanonicalizeLocaleList" as Truffle node. https://tc39.github.io/ecma402/#sec-canonicalizelocalelist
  • Constructor Details

    • JSToCanonicalizedLocaleListNode

      protected JSToCanonicalizedLocaleListNode()
  • Method Details

    • create

      public static JSToCanonicalizedLocaleListNode create()
    • executeLanguageTags

      public abstract String[] executeLanguageTags(Object value)
    • doTString

      protected static String[] doTString(com.oracle.truffle.api.strings.TruffleString s, com.oracle.truffle.api.strings.TruffleString.ToJavaStringNode toJavaStringNode)
    • doUndefined

      protected static String[] doUndefined(Object object)
    • doLocale

      protected static String[] doLocale(JSLocaleObject object)
    • doOtherType

      protected static String[] doOtherType(Object object, com.oracle.truffle.api.nodes.Node node, JSToObjectNode toObjectNode, JSGetLengthNode getLengthNode, JSHasPropertyNode hasPropertyNode, TypeOfNode typeOfNode, JSToStringNode toStringNode, com.oracle.truffle.api.strings.TruffleString.EqualNode equalsNode, com.oracle.truffle.api.strings.TruffleString.ToJavaStringNode toJavaStringNode, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch)
    • doForeignType

      protected static String[] doForeignType(Object object, com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.interop.InteropLibrary arrayInterop, com.oracle.truffle.api.interop.InteropLibrary valueInterop, ImportValueNode importValueNode, TypeOfNode typeOfNode, JSToStringNode toStringNode, com.oracle.truffle.api.strings.TruffleString.EqualNode equalsNode, com.oracle.truffle.api.strings.TruffleString.ToJavaStringNode toJavaStringNode, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch)