Class JSRuntime

java.lang.Object
com.oracle.truffle.js.runtime.JSRuntime

public final class JSRuntime extends Object
  • Field Details

    • TWO32

      public static final double TWO32
      See Also:
    • INVALID_ARRAY_INDEX

      public static final long INVALID_ARRAY_INDEX
      See Also:
    • MAX_ARRAY_LENGTH

      public static final long MAX_ARRAY_LENGTH
      See Also:
    • MAX_UINT32_DIGITS

      public static final int MAX_UINT32_DIGITS
      See Also:
    • MAX_SAFE_INTEGER

      public static final double MAX_SAFE_INTEGER
    • MIN_SAFE_INTEGER

      public static final double MIN_SAFE_INTEGER
    • MAX_SAFE_INTEGER_LONG

      public static final long MAX_SAFE_INTEGER_LONG
    • MIN_SAFE_INTEGER_LONG

      public static final long MIN_SAFE_INTEGER_LONG
    • INVALID_INTEGER_INDEX

      public static final long INVALID_INTEGER_INDEX
      See Also:
    • MAX_INTEGER_INDEX_DIGITS

      public static final int MAX_INTEGER_INDEX_DIGITS
      See Also:
    • MAX_SAFE_INTEGER_DIGITS

      public static final int MAX_SAFE_INTEGER_DIGITS
      See Also:
    • MAX_SAFE_INTEGER_IN_FLOAT

      public static final int MAX_SAFE_INTEGER_IN_FLOAT
      See Also:
    • MIN_SAFE_INTEGER_IN_FLOAT

      public static final int MIN_SAFE_INTEGER_IN_FLOAT
      See Also:
    • INVALID_SAFE_INTEGER

      public static final long INVALID_SAFE_INTEGER
      See Also:
    • ENUMERATE_ITERATOR_ID

      public static final com.oracle.truffle.api.object.HiddenKey ENUMERATE_ITERATOR_ID
    • ITERATION_KIND_KEY

      public static final int ITERATION_KIND_KEY
      See Also:
    • ITERATION_KIND_VALUE

      public static final int ITERATION_KIND_VALUE
      See Also:
    • ITERATION_KIND_KEY_PLUS_VALUE

      public static final int ITERATION_KIND_KEY_PLUS_VALUE
      See Also:
  • Method Details

    • doubleIsRepresentableAsInt

      public static boolean doubleIsRepresentableAsInt(double d)
    • doubleIsRepresentableAsInt

      public static boolean doubleIsRepresentableAsInt(double d, boolean ignoreNegativeZero)
    • doubleIsRepresentableAsUnsignedInt

      public static boolean doubleIsRepresentableAsUnsignedInt(double d, boolean ignoreNegativeZero)
    • isNegativeZero

      public static boolean isNegativeZero(double d)
    • isPositiveInfinity

      public static boolean isPositiveInfinity(double d)
    • doubleToNarrowestNumber

      public static Number doubleToNarrowestNumber(double d)
    • longIsRepresentableAsInt

      public static boolean longIsRepresentableAsInt(long value)
    • isRepresentableAsUnsignedInt

      public static boolean isRepresentableAsUnsignedInt(long value)
    • doubleIsRepresentableAsLong

      public static boolean doubleIsRepresentableAsLong(double d)
    • positiveLongToIntOrDouble

      public static Object positiveLongToIntOrDouble(long value)
    • longToIntOrDouble

      public static Number longToIntOrDouble(long value)
    • longFitsInDouble

      public static boolean longFitsInDouble(long l)
    • isNaN

      public static boolean isNaN(Object value)
    • typeof

      public static com.oracle.truffle.api.strings.TruffleString typeof(Object value)
    • isObject

      public static boolean isObject(Object value)
      Returns whether object is a JSObject. JS-Null and JS-Undefined are not considered objects.
    • isNullOrUndefined

      public static boolean isNullOrUndefined(Object value)
      Returns whether value is JS null or undefined.
    • isNullish

      public static boolean isNullish(Object value)
      Returns whether value is JS null or undefined or a foreign null.
    • toPrimitive

      public static Object toPrimitive(Object value)
      Implementation of ECMA 7.1.1 "ToPrimitive", with NO hint given.
      Parameters:
      value - an Object to be converted to a primitive value
      Returns:
      an Object representing the primitive value of the parameter
    • toPrimitive

      public static Object toPrimitive(Object value, JSToPrimitiveNode.Hint hint)
      Implementation of ECMA 7.1.1 "ToPrimitive".
      Parameters:
      value - an Object to be converted to a primitive value
      hint - the preferred type of primitive to return ("number", "string" or "default")
      Returns:
      an Object representing the primitive value of the parameter
      See Also:
    • toPrimitiveFromForeign

      public static Object toPrimitiveFromForeign(Object tObj, JSToPrimitiveNode.Hint hint)
      Converts a foreign object to a primitive value.
    • toBoolean

      public static boolean toBoolean(Object value)
      Implementation of ECMA 9.2 "ToBoolean".
      Parameters:
      value - an Object to be converted to a Boolean
      Returns:
      an Object representing the primitive value of the parameter
    • toNumber

      public static Number toNumber(Object value)
      Implementation of ECMA 9.3 "ToNumber".
      Parameters:
      value - an Object to be converted to a Number
      Returns:
      an Object representing the Number value of the parameter
    • toNumeric

      public static Object toNumeric(Object value)
    • booleanToNumber

      public static int booleanToNumber(boolean value)
    • isNumber

      public static boolean isNumber(Object value)
    • toBigInt

      public static BigInt toBigInt(Object value)
    • isBigInt

      public static boolean isBigInt(Object value)
    • isJavaNumber

      public static boolean isJavaNumber(Object value)
    • stringToNumber

      public static Number stringToNumber(com.oracle.truffle.api.strings.TruffleString string)
      Implementation of ECMA 9.3.1 "ToNumber Applied to the String Type".
      Parameters:
      string -
      Returns:
      a Number
    • parseDoubleOrNaN

      public static double parseDoubleOrNaN(com.oracle.truffle.api.strings.TruffleString input)
      Like Double.parseDouble(String), but does not allow trailing d or f.
      Returns:
      double value or Double.NaN if not parsable.
    • firstExpIndexInString

      public static int firstExpIndexInString(com.oracle.truffle.api.strings.TruffleString str)
      Returns the first index of a String that contains either 'e' or 'E'.
    • identifyInfinity

      public static double identifyInfinity(char firstChar, int len)
    • toInteger

      public static long toInteger(Object value)
      Implementation of ECMA 9.4 "ToInteger".
      Parameters:
      value - an Object to be converted to an Integer
      Returns:
      an Object representing the Integer value of the parameter
    • toInteger

      public static long toInteger(Number number)
    • toLength

      public static long toLength(Object value)
      Implementation of ECMAScript6 7.1.15 "ToLength".
    • toLength

      public static double toLength(double d)
    • toLength

      public static long toLength(long l)
    • toLength

      public static int toLength(int value)
    • toUInt16

      public static int toUInt16(Object value)
      Implementation of ECMA 9.7 "ToUInt16".
      Parameters:
      value - an Object to be converted to a UInt16
      Returns:
      an Object representing the Number value of the parameter
    • toUInt16

      public static int toUInt16(Number number)
    • toUInt16

      public static int toUInt16(long number)
    • toUInt32

      public static long toUInt32(Object value)
      Implementation of ECMA 9.6 "ToUInt32".
      Parameters:
      value - an Object to be converted to a UInt32
      Returns:
      an Object representing the Number value of the parameter
    • toUInt32

      public static long toUInt32(Number number)
      ToUint32 after previous ToNumber conversion.
    • toUInt32

      public static long toUInt32(long value)
    • toUInt32

      public static long toUInt32(double value)
    • toUInt32NoTruncate

      public static long toUInt32NoTruncate(double value)
    • truncateDouble

      public static double truncateDouble(double value)
    • toInt32

      public static int toInt32(Object value)
      Implementation of ECMA 9.5 "ToInt32".
      Parameters:
      value - an Object to be converted to a Int32
      Returns:
      an Object representing the Number value of the parameter
    • toInt32

      public static int toInt32(Number number)
      Convert JS number to int32.
    • toInt32

      public static int toInt32(double value)
    • toInt32NoTruncate

      public static int toInt32NoTruncate(double value)
    • toDouble

      public static double toDouble(Object value)
      Non-standard "ToDouble" utility function.
      Returns:
      the result of calling ToNumber, but converted to a primitive double
    • toDouble

      public static double toDouble(Number value)
      ToDouble for Numbers. In fact, just forwarding to doubleValue(). Keep it, as otherwise it is very easy to mistakenly call toDouble() inadvertently.
    • toJavaString

      public static String toJavaString(Object value)
    • toString

      public static com.oracle.truffle.api.strings.TruffleString toString(Object value)
      The abstract operation ToString. Converts a value to a string.
    • safeToString

      public static com.oracle.truffle.api.strings.TruffleString safeToString(Object value)
    • toDisplayString

      public static com.oracle.truffle.api.strings.TruffleString toDisplayString(Object value, boolean allowSideEffects)
    • toDisplayString

      public static com.oracle.truffle.api.strings.TruffleString toDisplayString(Object value, boolean allowSideEffects, ToDisplayStringFormat format)
    • toDisplayStringInner

      public static com.oracle.truffle.api.strings.TruffleString toDisplayStringInner(Object value, boolean allowSideEffects, ToDisplayStringFormat format, int currentDepth, Object parent)
    • toDisplayStringImpl

      public static com.oracle.truffle.api.strings.TruffleString toDisplayStringImpl(Object value, boolean allowSideEffects, ToDisplayStringFormat format, int depth, Object parent)
      Converts the value to a String that can be printed on the console and used in error messages.
      Parameters:
      format - formatting parameters
      depth - current recursion depth (starts at 0 = top level)
      parent - parent object or null
    • objectToDisplayString

      public static com.oracle.truffle.api.strings.TruffleString objectToDisplayString(JSDynamicObject obj, boolean allowSideEffects, ToDisplayStringFormat format, int depth, com.oracle.truffle.api.strings.TruffleString name)
    • objectToDisplayString

      public static com.oracle.truffle.api.strings.TruffleString objectToDisplayString(JSDynamicObject obj, boolean allowSideEffects, ToDisplayStringFormat format, int depth, com.oracle.truffle.api.strings.TruffleString name, com.oracle.truffle.api.strings.TruffleString[] internalKeys, Object[] internalValues)
    • collectionToConsoleString

      public static com.oracle.truffle.api.strings.TruffleString collectionToConsoleString(JSDynamicObject obj, boolean allowSideEffects, ToDisplayStringFormat format, com.oracle.truffle.api.strings.TruffleString name, JSHashMap map, int depth)
    • booleanToString

      public static com.oracle.truffle.api.strings.TruffleString booleanToString(boolean value)
    • toString

      public static com.oracle.truffle.api.strings.TruffleString toString(JSDynamicObject value)
    • numberToString

      public static com.oracle.truffle.api.strings.TruffleString numberToString(Number number)
    • propertyKeyEquals

      public static boolean propertyKeyEquals(com.oracle.truffle.api.strings.TruffleString.EqualNode equalsNode, Object a, Object b)
    • doubleToString

      public static Object doubleToString(double d, int radix)
    • doubleToString

      public static com.oracle.truffle.api.strings.TruffleString doubleToString(double d)
      9.8.1 ToString Applied to the Number Type.

      Better use JSDoubleToStringNode where appropriate.

    • formatDtoA

      public static String formatDtoA(double value)
    • formatDtoAPrecision

      public static Object formatDtoAPrecision(double value, int precision)
    • formatDtoAExponential

      public static Object formatDtoAExponential(double d, int digits)
    • formatDtoAExponential

      public static Object formatDtoAExponential(double d)
    • formatDtoAFixed

      public static Object formatDtoAFixed(double value, int digits)
    • formatDtoA

      public static Object formatDtoA(double d, int radix)
    • toObject

      public static Object toObject(Object value)
      Implementation of ECMA 9.9 "ToObject".
      Parameters:
      value - an Object to be converted to an Object
      Returns:
      an Object
    • isSameValue

      public static boolean isSameValue(Object x, Object y)
      9.12 SameValue Algorithm.
    • equal

      public static boolean equal(Object a, Object b)
    • isForeignObject

      public static boolean isForeignObject(Object value)
    • isForeignObject

      public static boolean isForeignObject(com.oracle.truffle.api.interop.TruffleObject value)
    • identical

      public static boolean identical(Object a, Object b)
    • requireObjectCoercible

      public static <T> T requireObjectCoercible(T argument)
      Implementation of the abstract operation RequireObjectCoercible.
    • toPropertyDescriptor

      public static PropertyDescriptor toPropertyDescriptor(Object property)
      Implementation of the ToPropertyDescriptor function as defined in ECMA 8.10.5.
      Returns:
      a property descriptor
    • valueInRadix10

      public static int valueInRadix10(char c)
    • valueInRadix

      public static int valueInRadix(char c, int radix)
    • valueInHex

      public static int valueInHex(char c)
    • isHex

      public static boolean isHex(char c)
    • parseArrayIndexIsIndexRaw

      public static long parseArrayIndexIsIndexRaw(Object o)
    • parseArrayIndexRaw

      public static long parseArrayIndexRaw(com.oracle.truffle.api.strings.TruffleString string, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node charAtNode)
      NB: does not check whether the result fits into the uint32 range. The caller is responsible for the range check and must take care not to pass in too long strings.
      Returns:
      parsed unsigned integer value or INVALID_UINT32 if the string is not parsable.
      See Also:
    • trimJSWhiteSpace

      public static com.oracle.truffle.api.strings.TruffleString trimJSWhiteSpace(com.oracle.truffle.api.strings.TruffleString string)
    • firstNonWhitespaceIndex

      public static int firstNonWhitespaceIndex(com.oracle.truffle.api.strings.TruffleString string, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node charAtNode)
    • lastNonWhitespaceIndex

      public static int lastNonWhitespaceIndex(com.oracle.truffle.api.strings.TruffleString string, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node charAtNode)
    • isWhiteSpaceOrLineTerminator

      public static boolean isWhiteSpaceOrLineTerminator(int cp)
      Union of WhiteSpace and LineTerminator (StrWhiteSpaceChar). Used by TrimString.
    • isWhiteSpaceExcludingLineTerminator

      public static boolean isWhiteSpaceExcludingLineTerminator(char cp)
      WhiteSpace (excluding LineTerminator).
    • isLineTerminator

      public static boolean isLineTerminator(char codePoint)
    • isAsciiWhitespace

      public static boolean isAsciiWhitespace(char cp)
    • isValidArrayLength

      public static boolean isValidArrayLength(long longValue)
      Checks whether a long value is within the valid range of array lengths. Note the difference to isArrayIndex, that does not allow the MAX_ARRAY_LENGTH value.
    • isValidArrayLength

      public static boolean isValidArrayLength(double doubleValue)
    • isValidArrayLength

      public static boolean isValidArrayLength(int intValue)
    • isIntegerIndex

      public static boolean isIntegerIndex(long longValue)
    • isArrayIndex

      public static boolean isArrayIndex(int intValue)
    • isArrayIndex

      public static boolean isArrayIndex(long longValue)
    • isArrayIndex

      public static boolean isArrayIndex(double doubleValue)
    • isArrayIndexString

      public static boolean isArrayIndexString(com.oracle.truffle.api.strings.TruffleString property)
    • isArrayIndex

      public static boolean isArrayIndex(Object property)
    • castArrayIndex

      public static long castArrayIndex(double doubleValue)
    • castArrayIndex

      public static long castArrayIndex(long longValue)
    • isAsciiDigit

      public static boolean isAsciiDigit(int c)
    • propertyNameToArrayIndex

      public static long propertyNameToArrayIndex(com.oracle.truffle.api.strings.TruffleString propertyName, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node charAtNode)
    • arrayIndexLengthInRange

      public static boolean arrayIndexLengthInRange(com.oracle.truffle.api.strings.TruffleString indexStr)
    • propertyKeyToArrayIndex

      public static long propertyKeyToArrayIndex(Object propertyKey)
    • propertyNameToIntegerIndex

      public static long propertyNameToIntegerIndex(com.oracle.truffle.api.strings.TruffleString propertyName)
    • propertyKeyToIntegerIndex

      public static long propertyKeyToIntegerIndex(Object propertyKey)
    • isJSNative

      public static boolean isJSNative(Object value)
      Is value a native JavaScript object or primitive?
    • isJSPrimitive

      public static boolean isJSPrimitive(Object value)
    • nullToUndefined

      public static Object nullToUndefined(Object value)
    • undefinedToNull

      public static Object undefinedToNull(Object value)
    • toJSNull

      public static Object toJSNull(Object value)
    • toJavaNull

      public static Object toJavaNull(Object value)
    • isPropertyKey

      public static boolean isPropertyKey(Object key)
    • propertyKeyToFunctionNameString

      public static com.oracle.truffle.api.strings.TruffleString propertyKeyToFunctionNameString(Object key)
    • stringToBigInt

      public static BigInt stringToBigInt(com.oracle.truffle.api.strings.TruffleString s)
    • intValue

      public static int intValue(Number number)
      See Also:
    • intValueVirtual

      public static int intValueVirtual(Number number)
    • doubleValue

      public static double doubleValue(Number number)
      See Also:
    • doubleValueVirtual

      public static double doubleValueVirtual(Number number)
    • floatValue

      public static float floatValue(Number n)
      See Also:
    • floatValueVirtual

      public static float floatValueVirtual(Number n)
    • longValue

      public static long longValue(Number n)
      See Also:
    • fromPropertyDescriptor

      public static JSDynamicObject fromPropertyDescriptor(PropertyDescriptor desc, JSContext context)
    • getArgOrUndefined

      public static Object getArgOrUndefined(Object[] args, int i)
    • getArg

      public static Object getArg(Object[] args, int i, Object defaultValue)
    • getOffset

      public static long getOffset(long start, long length, com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.profiles.InlinedConditionProfile profile)
    • getOffset

      public static int getOffset(int start, int length, com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.profiles.InlinedConditionProfile profile)
    • parseSafeInteger

      public static long parseSafeInteger(com.oracle.truffle.api.strings.TruffleString s)
    • parseSafeInteger

      public static long parseSafeInteger(com.oracle.truffle.api.strings.TruffleString s, int beginIndex, int endIndex, int radix)
    • parseRawFitsLong

      public static Number parseRawFitsLong(com.oracle.truffle.api.strings.TruffleString string, int radix, int startPos, int endPos, boolean negate)
    • parseRawDontFitLong

      public static double parseRawDontFitLong(com.oracle.truffle.api.strings.TruffleString string, int radix, int startPos, int endPos, boolean negate)
    • createDataProperty

      public static boolean createDataProperty(JSDynamicObject o, Object p, Object v)
      ES2015, 7.3.4 CreateDataProperty(O, P, V).
    • createDataProperty

      public static boolean createDataProperty(JSDynamicObject o, Object p, Object v, boolean doThrow)
    • createDataPropertyOrThrow

      public static boolean createDataPropertyOrThrow(JSDynamicObject o, Object p, Object v)
      ES2015, 7.3.6 CreateDataPropertyOrThrow(O, P, V).
    • createNonEnumerableDataPropertyOrThrow

      public static void createNonEnumerableDataPropertyOrThrow(JSDynamicObject o, Object p, Object v)
      Error Cause 7.3.6 CreateNonEnumerableDataPropertyOrThrow(O, P, V).
    • definePropertyOrThrow

      public static void definePropertyOrThrow(JSDynamicObject o, Object key, PropertyDescriptor desc)
      ES2016, 7.3.7 DefinePropertyOrThrow(O, P, desc).
    • isPrototypeOf

      public static boolean isPrototypeOf(JSDynamicObject object, JSDynamicObject prototype)
    • createArrayFromList

      public static JSDynamicObject createArrayFromList(JSContext context, JSRealm realm, List<? extends Object> list)
      ES2016 7.3.16 CreateArrayFromList(elements).
    • isCallable

      public static boolean isCallable(Object value)
      ES2015 7.2.3 IsCallable(argument).
    • isCallableIsJSObject

      public static boolean isCallableIsJSObject(JSDynamicObject value)
    • isCallableForeign

      public static boolean isCallableForeign(Object value)
    • isCallableProxy

      public static boolean isCallableProxy(JSDynamicObject proxy)
    • isArray

      public static boolean isArray(Object obj)
      ES2015 7.2.2 IsArray(argument).
    • isProxyAnArray

      public static boolean isProxyAnArray(JSDynamicObject proxy)
    • toPropertyKey

      public static Object toPropertyKey(Object arg)
      ES2015 7.1.14 ToPropertyKey(argument).
    • call

      public static Object call(Object fnObj, Object holder, Object[] arguments)
      ES2015 7.3.12 Call(F, V, arguments).
    • call

      public static Object call(Object fnObj, Object holder, Object[] arguments, com.oracle.truffle.api.nodes.Node encapsulatingNode)
    • construct

      public static Object construct(Object fnObj, Object[] arguments)
    • canonicalNumericIndexString

      public static Object canonicalNumericIndexString(com.oracle.truffle.api.strings.TruffleString s)
      ES2015, 7.1.16 CanonicalNumericIndexString().
    • isInteger

      public static boolean isInteger(Object obj)
      ES2015, 7.2.6 IsInteger.
    • comparePropertyKeys

      public static int comparePropertyKeys(Object key1, Object key2)
      Compare property keys such that a stable sort using it would maintain the following order.
      1. integer index keys, in ascending numeric index order
      2. string keys, in original insertion order
      3. symbols keys, in original insertion order
    • getConstructorName

      public static com.oracle.truffle.api.strings.TruffleString getConstructorName(JSDynamicObject receiver)
      Carefully try getting the constructor name, must not throw.
    • getPrimitiveConstructorName

      public static com.oracle.truffle.api.strings.TruffleString getPrimitiveConstructorName(Object primitive)
    • getDataProperty

      public static Object getDataProperty(JSDynamicObject thisObj, Object key)
    • isJSRootNode

      public static boolean isJSRootNode(com.oracle.truffle.api.nodes.RootNode rootNode)
    • isJSFunctionRootNode

      public static boolean isJSFunctionRootNode(com.oracle.truffle.api.nodes.RootNode rootNode)
    • isSafeInteger

      public static boolean isSafeInteger(double value)
    • isSafeInteger

      public static boolean isSafeInteger(long value)
    • getFunctionRealm

      public static JSRealm getFunctionRealm(Object obj, JSRealm currentRealm)
    • isConstructor

      public static boolean isConstructor(Object constrObj)
      ES2016 7.2.4 IsConstructor().
    • isConstructorForeign

      public static boolean isConstructorForeign(Object value)
    • isConstructorProxy

      public static boolean isConstructorProxy(JSDynamicObject constrObj)
    • isGenerator

      public static boolean isGenerator(Object genObj)
    • isGeneratorProxy

      public static boolean isGeneratorProxy(JSDynamicObject genObj)
    • createListFromArrayLikeAllowSymbolString

      public static List<Object> createListFromArrayLikeAllowSymbolString(Object obj)
    • quote

      public static String quote(String value)
    • quote

      public static com.oracle.truffle.api.strings.TruffleString quote(com.oracle.truffle.api.strings.TruffleString value)
      Implementation of the Quote(value) operation as defined in the ECMAscript spec. It wraps a String value in double quotes and escapes characters within.
      Parameters:
      value - string to quote
      Returns:
      quoted and escaped string
    • expectJSObject

      public static JSDynamicObject expectJSObject(Object to, com.oracle.truffle.api.profiles.BranchProfile errorBranch)
    • exportValue

      public static Object exportValue(Object value)
      Convert the value to a type valid in Truffle Interop. Use ExportValueNode where possible.
    • exportValueArray

      public static Object[] exportValueArray(Object[] arr)
    • importValue

      public static Object importValue(Object value)
      Convert the value to a type valid in Graal.js, from something received via TruffleInterop. Use ImportValueNode where possible.
    • intIsRepresentableAsFloat

      public static boolean intIsRepresentableAsFloat(int value)
    • isJavaPrimitive

      public static boolean isJavaPrimitive(Object value)
    • rethrow

      public static <E extends Throwable> RuntimeException rethrow(Throwable ex) throws E
      Throws:
      E
    • getException

      public static GraalJSException getException(Object errorObject)
    • getException

      public static GraalJSException getException(Object errorObject, com.oracle.truffle.api.nodes.Node node)
    • getIterator

      public static IteratorRecord getIterator(Object iteratedObject)
    • iteratorStep

      public static Object iteratorStep(IteratorRecord iteratorRecord)
    • iteratorValue

      public static Object iteratorValue(Object iterator)
    • iteratorClose

      public static void iteratorClose(Object iterator)
    • isIntegralNumber

      public static boolean isIntegralNumber(double arg)
    • get

      public static Object get(Object obj, Object key)
    • get

      public static Object get(Object obj, long index)
    • hasProperty

      public static boolean hasProperty(Object obj, Object key)
    • isPrivateSymbol

      public static boolean isPrivateSymbol(Object key)
    • filterPrivateSymbols

      public static List<Object> filterPrivateSymbols(List<Object> list)
    • toUint32

      public static Number toUint32(int value)
    • toFloat16

      public static short toFloat16(Number number)
    • toFloat16

      public static short toFloat16(double d)
    • getBufferElementDirect

      public static Object getBufferElementDirect(ByteBufferAccess bufferAccess, ByteBuffer buffer, TypedArray.ElementType elementType, int index)
    • setBufferElementDirect

      public static void setBufferElementDirect(ByteBufferAccess bufferAccess, ByteBuffer buffer, TypedArray.ElementType elementType, int index, Object value)