Class JSRealm

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

public class JSRealm extends Object
Container for JavaScript globals (i.e. an ECMAScript 6 Realm object).
  • Field Details

    • POLYGLOT_CLASS_NAME

      public static final com.oracle.truffle.api.strings.TruffleString POLYGLOT_CLASS_NAME
    • REFLECT_CLASS_NAME

      public static final com.oracle.truffle.api.strings.TruffleString REFLECT_CLASS_NAME
    • ATOMICS_CLASS_NAME

      public static final com.oracle.truffle.api.strings.TruffleString ATOMICS_CLASS_NAME
    • REALM_BUILTIN_CLASS_NAME

      public static final com.oracle.truffle.api.strings.TruffleString REALM_BUILTIN_CLASS_NAME
    • ARGUMENTS_NAME

      public static final com.oracle.truffle.api.strings.TruffleString ARGUMENTS_NAME
    • JAVA_CLASS_NAME

      public static final com.oracle.truffle.api.strings.TruffleString JAVA_CLASS_NAME
    • JAVA_CLASS_NAME_NASHORN_COMPAT

      public static final com.oracle.truffle.api.strings.TruffleString JAVA_CLASS_NAME_NASHORN_COMPAT
    • PERFORMANCE_CLASS_NAME

      public static final com.oracle.truffle.api.strings.TruffleString PERFORMANCE_CLASS_NAME
    • DEBUG_CLASS_NAME

      public static final com.oracle.truffle.api.strings.TruffleString DEBUG_CLASS_NAME
    • CONSOLE_CLASS_NAME

      public static final com.oracle.truffle.api.strings.TruffleString CONSOLE_CLASS_NAME
    • SYMBOL_ITERATOR_NAME

      public static final com.oracle.truffle.api.strings.TruffleString SYMBOL_ITERATOR_NAME
    • MLE_CLASS_NAME

      public static final com.oracle.truffle.api.strings.TruffleString MLE_CLASS_NAME
    • NANOSECONDS_PER_MILLISECOND

      public static final long NANOSECONDS_PER_MILLISECOND
      See Also:
    • NANOSECONDS_PER_SECOND

      public static final long NANOSECONDS_PER_SECOND
      See Also:
  • Constructor Details

    • JSRealm

      protected JSRealm(JSContext context, com.oracle.truffle.api.TruffleLanguage.Env env, JSRealm parentRealm)
  • Method Details

    • getContext

      public final JSContext getContext()
    • getMain

      public static JSRealm getMain(com.oracle.truffle.api.nodes.Node node)
    • get

      public static JSRealm get(com.oracle.truffle.api.nodes.Node node)
    • enterRealm

      public JSRealm enterRealm(com.oracle.truffle.api.nodes.Node node, JSRealm childRealm)
    • leaveRealm

      public void leaveRealm(com.oracle.truffle.api.nodes.Node node, JSRealm prevRealm)
    • lookupFunction

      public final JSFunctionObject lookupFunction(JSBuiltinsContainer container, Object key)
    • lookupAccessor

      public final Accessor lookupAccessor(JSBuiltinsContainer container, Object key)
    • createObjectConstructor

      public static JSFunctionObject createObjectConstructor(JSRealm realm, JSDynamicObject objectPrototype)
    • getErrorConstructor

      public final JSFunctionObject getErrorConstructor(JSErrorType type)
    • getErrorPrototype

      public final JSDynamicObject getErrorPrototype(JSErrorType type)
    • getGlobalObject

      public final JSDynamicObject getGlobalObject()
    • setGlobalObject

      public final void setGlobalObject(JSDynamicObject global)
    • dispose

      public final void dispose()
    • getObjectConstructor

      public final JSFunctionObject getObjectConstructor()
    • getObjectPrototype

      public final JSDynamicObject getObjectPrototype()
    • getFunctionConstructor

      public final JSFunctionObject getFunctionConstructor()
    • getFunctionPrototype

      public final JSDynamicObject getFunctionPrototype()
    • getArrayConstructor

      public final JSFunctionObject getArrayConstructor()
    • getArrayPrototype

      public final JSDynamicObject getArrayPrototype()
    • getBooleanConstructor

      public final JSFunctionObject getBooleanConstructor()
    • getBooleanPrototype

      public final JSDynamicObject getBooleanPrototype()
    • getNumberConstructor

      public final JSFunctionObject getNumberConstructor()
    • getNumberPrototype

      public final JSDynamicObject getNumberPrototype()
    • getBigIntConstructor

      public final JSFunctionObject getBigIntConstructor()
    • getBigIntPrototype

      public final JSDynamicObject getBigIntPrototype()
    • getStringConstructor

      public final JSFunctionObject getStringConstructor()
    • getStringPrototype

      public final JSDynamicObject getStringPrototype()
    • getRegExpConstructor

      public final JSFunctionObject getRegExpConstructor()
    • getRegExpPrototype

      public final JSDynamicObject getRegExpPrototype()
    • getCollatorConstructor

      public final JSFunctionObject getCollatorConstructor()
    • getCollatorPrototype

      public final JSDynamicObject getCollatorPrototype()
    • getNumberFormatConstructor

      public final JSFunctionObject getNumberFormatConstructor()
    • getNumberFormatPrototype

      public final JSDynamicObject getNumberFormatPrototype()
    • getPluralRulesConstructor

      public final JSFunctionObject getPluralRulesConstructor()
    • getPluralRulesPrototype

      public final JSDynamicObject getPluralRulesPrototype()
    • getListFormatConstructor

      public final JSFunctionObject getListFormatConstructor()
    • getListFormatPrototype

      public final JSDynamicObject getListFormatPrototype()
    • getRelativeTimeFormatConstructor

      public final JSFunctionObject getRelativeTimeFormatConstructor()
    • getRelativeTimeFormatPrototype

      public final JSDynamicObject getRelativeTimeFormatPrototype()
    • getDateTimeFormatConstructor

      public final JSFunctionObject getDateTimeFormatConstructor()
    • getDateTimeFormatPrototype

      public final JSDynamicObject getDateTimeFormatPrototype()
    • getDateConstructor

      public final JSFunctionObject getDateConstructor()
    • getDatePrototype

      public final JSDynamicObject getDatePrototype()
    • getSegmenterConstructor

      public final JSFunctionObject getSegmenterConstructor()
    • getSegmenterPrototype

      public final JSDynamicObject getSegmenterPrototype()
    • getDisplayNamesConstructor

      public final JSFunctionObject getDisplayNamesConstructor()
    • getDisplayNamesPrototype

      public final JSDynamicObject getDisplayNamesPrototype()
    • getLocaleConstructor

      public final JSFunctionObject getLocaleConstructor()
    • getLocalePrototype

      public final JSDynamicObject getLocalePrototype()
    • getSymbolConstructor

      public final JSFunctionObject getSymbolConstructor()
    • getSymbolPrototype

      public final JSDynamicObject getSymbolPrototype()
    • getMapConstructor

      public final JSFunctionObject getMapConstructor()
    • getMapPrototype

      public final JSDynamicObject getMapPrototype()
    • getSetConstructor

      public final JSFunctionObject getSetConstructor()
    • getSetPrototype

      public final JSDynamicObject getSetPrototype()
    • getWeakRefConstructor

      public final JSFunctionObject getWeakRefConstructor()
    • getWeakRefPrototype

      public final JSDynamicObject getWeakRefPrototype()
    • getFinalizationRegistryConstructor

      public final JSFunctionObject getFinalizationRegistryConstructor()
    • getFinalizationRegistryPrototype

      public final JSDynamicObject getFinalizationRegistryPrototype()
    • getWeakMapConstructor

      public final JSFunctionObject getWeakMapConstructor()
    • getWeakMapPrototype

      public final JSDynamicObject getWeakMapPrototype()
    • getWeakSetConstructor

      public final JSFunctionObject getWeakSetConstructor()
    • getWeakSetPrototype

      public final JSDynamicObject getWeakSetPrototype()
    • getInitialRegExpPrototypeShape

      public final com.oracle.truffle.api.object.Shape getInitialRegExpPrototypeShape()
    • getArrayBufferConstructor

      public final JSFunctionObject getArrayBufferConstructor()
    • getArrayBufferPrototype

      public final JSDynamicObject getArrayBufferPrototype()
    • getSharedArrayBufferConstructor

      public final JSFunctionObject getSharedArrayBufferConstructor()
    • getSharedArrayBufferPrototype

      public final JSDynamicObject getSharedArrayBufferPrototype()
    • getArrayBufferViewConstructor

      public final JSFunctionObject getArrayBufferViewConstructor(TypedArrayFactory factory)
    • getArrayBufferViewPrototype

      public final JSDynamicObject getArrayBufferViewPrototype(TypedArrayFactory factory)
    • getDataViewConstructor

      public final JSFunctionObject getDataViewConstructor()
    • getDataViewPrototype

      public final JSDynamicObject getDataViewPrototype()
    • getTypedArrayConstructor

      public final JSFunctionObject getTypedArrayConstructor()
    • getTypedArrayPrototype

      public final JSDynamicObject getTypedArrayPrototype()
    • getRealmBuiltinObject

      public final JSDynamicObject getRealmBuiltinObject()
    • getProxyConstructor

      public final JSFunctionObject getProxyConstructor()
    • getProxyPrototype

      public final JSDynamicObject getProxyPrototype()
    • getGeneratorFunctionConstructor

      public final JSFunctionObject getGeneratorFunctionConstructor()
    • getGeneratorFunctionPrototype

      public final JSDynamicObject getGeneratorFunctionPrototype()
    • getAsyncFunctionConstructor

      public final JSFunctionObject getAsyncFunctionConstructor()
    • getAsyncFunctionPrototype

      public final JSDynamicObject getAsyncFunctionPrototype()
    • getAsyncGeneratorFunctionConstructor

      public final JSFunctionObject getAsyncGeneratorFunctionConstructor()
    • getAsyncGeneratorFunctionPrototype

      public final JSDynamicObject getAsyncGeneratorFunctionPrototype()
    • getEnumerateIteratorPrototype

      public final JSDynamicObject getEnumerateIteratorPrototype()
    • getForInIteratorPrototype

      public final JSDynamicObject getForInIteratorPrototype()
    • getGeneratorObjectPrototype

      public final JSDynamicObject getGeneratorObjectPrototype()
    • getAsyncGeneratorObjectPrototype

      public final JSDynamicObject getAsyncGeneratorObjectPrototype()
    • getJavaImporterConstructor

      public final JSFunctionObject getJavaImporterConstructor()
    • getJavaImporterPrototype

      public final JSDynamicObject getJavaImporterPrototype()
    • getJavaPackageToPrimitiveFunction

      public final JSDynamicObject getJavaPackageToPrimitiveFunction()
    • getTemporalPlainTimeConstructor

      public final JSFunctionObject getTemporalPlainTimeConstructor()
    • getTemporalPlainTimePrototype

      public final JSDynamicObject getTemporalPlainTimePrototype()
    • getTemporalPlainDateConstructor

      public final JSFunctionObject getTemporalPlainDateConstructor()
    • getTemporalPlainDatePrototype

      public final JSDynamicObject getTemporalPlainDatePrototype()
    • getTemporalPlainDateTimeConstructor

      public final JSFunctionObject getTemporalPlainDateTimeConstructor()
    • getTemporalPlainDateTimePrototype

      public final JSDynamicObject getTemporalPlainDateTimePrototype()
    • getTemporalDurationConstructor

      public final JSFunctionObject getTemporalDurationConstructor()
    • getTemporalDurationPrototype

      public final JSDynamicObject getTemporalDurationPrototype()
    • getTemporalCalendarConstructor

      public final JSFunctionObject getTemporalCalendarConstructor()
    • getTemporalCalendarPrototype

      public final JSDynamicObject getTemporalCalendarPrototype()
    • getTemporalPlainYearMonthConstructor

      public final JSFunctionObject getTemporalPlainYearMonthConstructor()
    • getTemporalPlainYearMonthPrototype

      public JSDynamicObject getTemporalPlainYearMonthPrototype()
    • getTemporalPlainMonthDayConstructor

      public JSFunctionObject getTemporalPlainMonthDayConstructor()
    • getTemporalPlainMonthDayPrototype

      public JSDynamicObject getTemporalPlainMonthDayPrototype()
    • getTemporalInstantConstructor

      public JSFunctionObject getTemporalInstantConstructor()
    • getTemporalInstantPrototype

      public JSDynamicObject getTemporalInstantPrototype()
    • getTemporalTimeZoneConstructor

      public JSFunctionObject getTemporalTimeZoneConstructor()
    • getTemporalTimeZonePrototype

      public JSDynamicObject getTemporalTimeZonePrototype()
    • getTemporalZonedDateTimeConstructor

      public JSFunctionObject getTemporalZonedDateTimeConstructor()
    • getTemporalZonedDateTimePrototype

      public JSDynamicObject getTemporalZonedDateTimePrototype()
    • getTemporalCalendarDateAddFunctionObject

      public Object getTemporalCalendarDateAddFunctionObject()
    • getTemporalCalendarDateFromFieldsFunctionObject

      public Object getTemporalCalendarDateFromFieldsFunctionObject()
    • getTemporalCalendarDateUntilFunctionObject

      public Object getTemporalCalendarDateUntilFunctionObject()
    • getTemporalCalendarDayFunctionObject

      public Object getTemporalCalendarDayFunctionObject()
    • getTemporalCalendarFieldsFunctionObject

      public Object getTemporalCalendarFieldsFunctionObject()
    • getTemporalCalendarMergeFieldsFunctionObject

      public Object getTemporalCalendarMergeFieldsFunctionObject()
    • getTemporalCalendarMonthDayFromFieldsFunctionObject

      public Object getTemporalCalendarMonthDayFromFieldsFunctionObject()
    • getTemporalCalendarYearMonthFromFieldsFunctionObject

      public Object getTemporalCalendarYearMonthFromFieldsFunctionObject()
    • getTemporalCalendarYearFunctionObject

      public Object getTemporalCalendarYearFunctionObject()
    • getTemporalCalendarMonthFunctionObject

      public Object getTemporalCalendarMonthFunctionObject()
    • getTemporalCalendarMonthCodeFunctionObject

      public Object getTemporalCalendarMonthCodeFunctionObject()
    • getTemporalCalendarDayOfWeekFunctionObject

      public Object getTemporalCalendarDayOfWeekFunctionObject()
    • getTemporalCalendarDayOfYearFunctionObject

      public Object getTemporalCalendarDayOfYearFunctionObject()
    • getTemporalCalendarWeekOfYearFunctionObject

      public Object getTemporalCalendarWeekOfYearFunctionObject()
    • getTemporalCalendarYearOfWeekFunctionObject

      public Object getTemporalCalendarYearOfWeekFunctionObject()
    • getTemporalCalendarDaysInWeekFunctionObject

      public Object getTemporalCalendarDaysInWeekFunctionObject()
    • getTemporalCalendarDaysInMonthFunctionObject

      public Object getTemporalCalendarDaysInMonthFunctionObject()
    • getTemporalCalendarDaysInYearFunctionObject

      public Object getTemporalCalendarDaysInYearFunctionObject()
    • getTemporalCalendarMonthsInYearFunctionObject

      public Object getTemporalCalendarMonthsInYearFunctionObject()
    • getTemporalCalendarInLeapYearFunctionObject

      public Object getTemporalCalendarInLeapYearFunctionObject()
    • getTemporalTimeZoneGetOffsetNanosecondsForFunctionObject

      public Object getTemporalTimeZoneGetOffsetNanosecondsForFunctionObject()
    • getTemporalTimeZoneGetPossibleInstantsForFunctionObject

      public Object getTemporalTimeZoneGetPossibleInstantsForFunctionObject()
    • getForeignArrayPrototype

      public final JSDynamicObject getForeignArrayPrototype()
    • getForeignDatePrototype

      public final JSDynamicObject getForeignDatePrototype()
    • getForeignMapPrototype

      public JSDynamicObject getForeignMapPrototype()
    • getForeignStringPrototype

      public JSDynamicObject getForeignStringPrototype()
    • getForeignNumberPrototype

      public JSDynamicObject getForeignNumberPrototype()
    • getForeignBooleanPrototype

      public JSDynamicObject getForeignBooleanPrototype()
    • getForeignErrorPrototype

      public JSDynamicObject getForeignErrorPrototype()
    • getForeignFunctionPrototype

      public JSDynamicObject getForeignFunctionPrototype()
    • getForeignObjectPrototype

      public JSDynamicObject getForeignObjectPrototype()
    • getTemplateRegistry

      public final Map<Object,JSArrayObject> getTemplateRegistry()
    • getDedentMap

      public final Map<Object,JSArrayObject> getDedentMap()
    • getEvalFunctionObject

      public final Object getEvalFunctionObject()
    • getApplyFunctionObject

      public final Object getApplyFunctionObject()
    • getCallFunctionObject

      public final Object getCallFunctionObject()
    • getReflectApplyFunctionObject

      public final Object getReflectApplyFunctionObject()
    • getReflectConstructFunctionObject

      public final Object getReflectConstructFunctionObject()
    • getCommonJSRequireFunctionObject

      public final Object getCommonJSRequireFunctionObject()
    • getJsonParseFunctionObject

      public final Object getJsonParseFunctionObject()
    • getPromiseAllFunctionObject

      public final JSDynamicObject getPromiseAllFunctionObject()
    • getUnhandledPromiseRejectionHandler

      public final Object getUnhandledPromiseRejectionHandler()
    • getThrowTypeErrorFunction

      public final JSFunctionObject getThrowTypeErrorFunction()
    • getThrowerAccessor

      public final Accessor getThrowerAccessor()
    • getIteratorConstructor

      public JSFunctionObject getIteratorConstructor()
    • getAsyncIteratorConstructor

      public JSFunctionObject getAsyncIteratorConstructor()
    • getIteratorPrototype

      public JSDynamicObject getIteratorPrototype()
    • getWrapForIteratorPrototype

      public JSDynamicObject getWrapForIteratorPrototype()
    • getWrapForAsyncIteratorPrototype

      public JSDynamicObject getWrapForAsyncIteratorPrototype()
    • getAsyncIteratorPrototype

      public JSDynamicObject getAsyncIteratorPrototype()
    • getAsyncFromSyncIteratorPrototype

      public JSDynamicObject getAsyncFromSyncIteratorPrototype()
    • getArrayIteratorPrototype

      public JSDynamicObject getArrayIteratorPrototype()
    • getSetIteratorPrototype

      public JSDynamicObject getSetIteratorPrototype()
    • getMapIteratorPrototype

      public JSDynamicObject getMapIteratorPrototype()
    • getIteratorHelperPrototype

      public JSDynamicObject getIteratorHelperPrototype()
    • getAsyncIteratorHelperPrototype

      public JSDynamicObject getAsyncIteratorHelperPrototype()
    • getStringIteratorPrototype

      public JSDynamicObject getStringIteratorPrototype()
    • getRegExpStringIteratorPrototype

      public JSDynamicObject getRegExpStringIteratorPrototype()
    • getSegmentsPrototype

      public JSDynamicObject getSegmentsPrototype()
    • getSegmentIteratorPrototype

      public JSDynamicObject getSegmentIteratorPrototype()
    • getPromiseConstructor

      public JSFunctionObject getPromiseConstructor()
    • getPromisePrototype

      public JSDynamicObject getPromisePrototype()
    • getObjectFactories

      public final JSObjectFactory.RealmData getObjectFactories()
    • getShadowRealmConstructor

      public final JSFunctionObject getShadowRealmConstructor()
    • getShadowRealmPrototype

      public final JSDynamicObject getShadowRealmPrototype()
    • getAsyncContextSnapshotConstructor

      public final JSFunctionObject getAsyncContextSnapshotConstructor()
    • getAsyncContextSnapshotPrototype

      public final JSDynamicObject getAsyncContextSnapshotPrototype()
    • getAsyncContexVariableConstructor

      public final JSFunctionObject getAsyncContexVariableConstructor()
    • getAsyncContextVariablePrototype

      public final JSDynamicObject getAsyncContextVariablePrototype()
    • getContextOptions

      public final JSContextOptions getContextOptions()
    • setupGlobals

      public void setupGlobals()
    • addOptionalGlobals

      public void addOptionalGlobals()
      Add optional global properties. Used by initializeContext and patchContext.
    • isJavaInteropEnabled

      public boolean isJavaInteropEnabled()
      Is Java interop enabled in this Context.
    • getArrayProtoValuesIterator

      public JSDynamicObject getArrayProtoValuesIterator()
    • getCallSiteConstructor

      public final JSFunctionObject getCallSiteConstructor()
    • getCallSitePrototype

      public final JSDynamicObject getCallSitePrototype()
    • getGlobalScope

      public final JSDynamicObject getGlobalScope()
    • getScriptEngineImportScope

      public JSDynamicObject getScriptEngineImportScope()
    • getTopScopeObject

      public Object getTopScopeObject()
    • setRealmBuiltinObject

      public void setRealmBuiltinObject(JSDynamicObject realmBuiltinObject)
    • initRealmBuiltinObject

      public void initRealmBuiltinObject()
    • setArguments

      public void setArguments(com.oracle.truffle.api.strings.TruffleString[] arguments)
    • getOrdinaryHasInstanceFunction

      public final JSDynamicObject getOrdinaryHasInstanceFunction()
    • getJSAdapterConstructor

      public final JSFunctionObject getJSAdapterConstructor()
    • getJSAdapterPrototype

      public final JSDynamicObject getJSAdapterPrototype()
    • getEnv

      public final com.oracle.truffle.api.TruffleLanguage.Env getEnv()
    • patchContext

      public boolean patchContext(com.oracle.truffle.api.TruffleLanguage.Env newEnv)
    • initialize

      public void initialize()
    • createChildRealm

      public JSRealm createChildRealm()
    • isPreparingStackTrace

      public boolean isPreparingStackTrace()
    • setPreparingStackTrace

      public void setPreparingStackTrace(boolean preparingStackTrace)
    • getTruffleContext

      public final com.oracle.truffle.api.TruffleContext getTruffleContext()
    • getEmbedderData

      public final Object getEmbedderData()
    • setEmbedderData

      public final void setEmbedderData(Object embedderData)
    • getStaticRegexResult

      public Object getStaticRegexResult(JSContext ctx, com.oracle.truffle.api.nodes.Node node, TRegexUtil.InvokeExecMethodNode invokeExec)
    • setStaticRegexResult

      public void setStaticRegexResult(JSContext ctx, Object compiledRegex, com.oracle.truffle.api.strings.TruffleString input, long fromIndex, Object result)
      To allow virtualization of TRegex RegexResults, we want to avoid storing the last result globally. Instead, we store the values needed to calculate the result on demand, under the assumption that this non-standard feature is often not used at all.
    • invalidateStaticRegexResult

      public void invalidateStaticRegexResult()
    • isRegexResultInvalidated

      public boolean isRegexResultInvalidated()
    • getStaticRegexResultCompiledRegex

      public Object getStaticRegexResultCompiledRegex()
    • getStaticRegexResultInputString

      public com.oracle.truffle.api.strings.TruffleString getStaticRegexResultInputString()
    • setStaticRegexResultInputString

      public void setStaticRegexResultInputString(com.oracle.truffle.api.strings.TruffleString inputString)
    • getStaticRegexResultOriginalInputString

      public com.oracle.truffle.api.strings.TruffleString getStaticRegexResultOriginalInputString()
    • getOptions

      public org.graalvm.options.OptionValues getOptions()
    • getOutputWriter

      public final PrintWriter getOutputWriter()
      Returns the environment's output stream as a PrintWriter.
    • getErrorWriter

      public final PrintWriter getErrorWriter()
      Returns the environment's error stream as a PrintWriter.
    • nanoTime

      public long nanoTime()
      The current time in nanoseconds precision (with fuzzed resolution for security reasons). Counted from the start of the application, as required by Node.js' `performance.now()`.
    • nanoTimeWallClock

      public long nanoTimeWallClock()
      The current time in nanoseconds precision (with fuzzed resolution for security reasons). Wall clock time, to be in the same range as ECMAScript's `Date.now()`.
    • currentTimeMillis

      public long currentTimeMillis()
    • getConsoleUtil

      public JSConsoleUtil getConsoleUtil()
    • getModuleLoader

      public JSModuleLoader getModuleLoader()
    • getAgent

      public final JSAgent getAgent()
    • setAgent

      public void setAgent(JSAgent newAgent)
    • getLocalTimeZone

      public org.graalvm.shadowed.com.ibm.icu.util.TimeZone getLocalTimeZone()
    • getLocalTimeZoneId

      public ZoneId getLocalTimeZoneId()
    • getRandom

      public final SplittableRandom getRandom()
    • getParent

      public JSRealm getParent()
    • isMainRealm

      public boolean isMainRealm()
    • getCallNode

      public JavaScriptBaseNode getCallNode()
    • setCallNode

      public void setCallNode(JavaScriptBaseNode callNode)
    • getFromRealmList

      public JSRealm getFromRealmList(int idx)
    • setInRealmList

      public void setInRealmList(int idx, JSRealm realm)
    • getIndexFromRealmList

      public int getIndexFromRealmList(JSRealm rlm)
    • removeFromRealmList

      public void removeFromRealmList(int idx)
    • getCurrentV8Realm

      public JSRealm getCurrentV8Realm()
    • setCurrentV8Realm

      public void setCurrentV8Realm(JSRealm realm)
    • registerCustomEsmPathMappingCallback

      public void registerCustomEsmPathMappingCallback(Object callback)
    • getCustomEsmPathMapping

      public com.oracle.truffle.api.strings.TruffleString getCustomEsmPathMapping(com.oracle.truffle.api.strings.TruffleString refPath, com.oracle.truffle.api.strings.TruffleString specifier)
    • joinStackPush

      public boolean joinStackPush(Object o, com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.profiles.InlinedBranchProfile growProfile)
    • joinStackPop

      public void joinStackPop()
    • getCommonJSRequireCache

      public final Map<com.oracle.truffle.api.TruffleFile,JSDynamicObject> getCommonJSRequireCache()
    • getWASMModuleDecode

      public Object getWASMModuleDecode()
    • getWASMModuleInstantiate

      public Object getWASMModuleInstantiate()
    • getWASMModuleValidate

      public Object getWASMModuleValidate()
    • getWASMModuleExports

      public Object getWASMModuleExports()
    • getWASMModuleImports

      public Object getWASMModuleImports()
    • getWASMCustomSections

      public Object getWASMCustomSections()
    • getWASMTableAlloc

      public Object getWASMTableAlloc()
    • getWASMTableGrow

      public Object getWASMTableGrow()
    • getWASMTableRead

      public Object getWASMTableRead()
    • getWASMTableWrite

      public Object getWASMTableWrite()
    • getWASMTableLength

      public Object getWASMTableLength()
    • getWASMFuncType

      public Object getWASMFuncType()
    • getWASMIsFunc

      public Object getWASMIsFunc()
    • getWASMMemAlloc

      public Object getWASMMemAlloc()
    • getWASMMemGrow

      public Object getWASMMemGrow()
    • getWASMGlobalAlloc

      public Object getWASMGlobalAlloc()
    • getWASMGlobalRead

      public Object getWASMGlobalRead()
    • getWASMGlobalWrite

      public Object getWASMGlobalWrite()
    • getWASMInstanceExport

      public Object getWASMInstanceExport()
    • getWASMEmbedderDataGet

      public Object getWASMEmbedderDataGet()
    • getWASMEmbedderDataSet

      public Object getWASMEmbedderDataSet()
    • getWASMMemAsByteBuffer

      public Object getWASMMemAsByteBuffer()
    • getWasmRefNull

      public Object getWasmRefNull()
    • getWebAssemblyModulePrototype

      public JSDynamicObject getWebAssemblyModulePrototype()
    • getWebAssemblyInstancePrototype

      public JSDynamicObject getWebAssemblyInstancePrototype()
    • getWebAssemblyMemoryPrototype

      public JSDynamicObject getWebAssemblyMemoryPrototype()
    • getWebAssemblyTablePrototype

      public JSDynamicObject getWebAssemblyTablePrototype()
    • getWebAssemblyGlobalPrototype

      public JSDynamicObject getWebAssemblyGlobalPrototype()
    • getForeignIterablePrototype

      public JSDynamicObject getForeignIterablePrototype()
    • getForeignIteratorPrototype

      public JSDynamicObject getForeignIteratorPrototype()
    • getJSDateISOFormat

      public org.graalvm.shadowed.com.ibm.icu.text.DateFormat getJSDateISOFormat(double time)
    • getJSDateUTCFormat

      public org.graalvm.shadowed.com.ibm.icu.text.DateFormat getJSDateUTCFormat()
    • getJSShortDateFormat

      public org.graalvm.shadowed.com.ibm.icu.text.DateFormat getJSShortDateFormat()
    • getJSShortDateLocalFormat

      public org.graalvm.shadowed.com.ibm.icu.text.DateFormat getJSShortDateLocalFormat()
    • getJSShortTimeFormat

      public org.graalvm.shadowed.com.ibm.icu.text.DateFormat getJSShortTimeFormat()
    • getJSShortTimeLocalFormat

      public org.graalvm.shadowed.com.ibm.icu.text.DateFormat getJSShortTimeLocalFormat()
    • getDateToStringFormat

      public org.graalvm.shadowed.com.ibm.icu.text.DateFormat getDateToStringFormat()
    • setLocalTimeZone

      public void setLocalTimeZone(String tzId)
    • getCharset

      public Charset getCharset()
    • nextAsyncEvaluationOrder

      public long nextAsyncEvaluationOrder()
    • putCachedCompiledRegex

      public void putCachedCompiledRegex(com.oracle.truffle.api.source.Source regexSource, Object compiledRegex)
    • getCachedCompiledRegex

      public Object getCachedCompiledRegex(com.oracle.truffle.api.source.Source regexSource)
    • storeParentPromise

      public void storeParentPromise(JSDynamicObject promise)
    • fetchParentPromise

      public JSDynamicObject fetchParentPromise()
    • getOperatorCounter

      public int getOperatorCounter()
    • incOperatorCounter

      public void incOperatorCounter()