Class StringPrototypeBuiltins.JSStringRepeatNode

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

public abstract static class StringPrototypeBuiltins.JSStringRepeatNode extends JSBuiltinNode
Implementation of the String.prototype.repeat() method of ECMAScript6/Harmony.
  • Constructor Details

  • Method Details

    • repeat

      protected Object repeat(Object thisObj, Object count, JSToNumberNode toNumberNode, com.oracle.truffle.api.strings.TruffleString.RepeatNode repeatNode, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch)
    • within

      protected static int within(int value, int min, int max)
    • withinNumber

      protected static int withinNumber(Number value, int min, int max)
    • requireObjectCoercible

      protected final void requireObjectCoercible(Object target)
    • toString

      protected com.oracle.truffle.api.strings.TruffleString toString(Object target)
    • toIntegerAsInt

      protected int toIntegerAsInt(Object target)