Class JSModuleRecord
java.lang.Object
com.oracle.truffle.js.runtime.objects.ScriptOrModule
com.oracle.truffle.js.runtime.objects.JSModuleRecord
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.oracle.truffle.js.runtime.objects.ScriptOrModule
context, source -
Constructor Summary
ConstructorsConstructorDescriptionJSModuleRecord(JSModuleData parsedModule, JSModuleLoader moduleLoader) JSModuleRecord(JSModuleData moduleData, JSModuleLoader moduleLoader, Object hostDefined) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendAsyncParentModules(JSModuleRecord moduleRecord) voidlongintintcom.oracle.truffle.api.frame.MaterializedFramecom.oracle.truffle.api.frame.FrameDescriptorintbooleanbooleanhasTLA()voidvoidbooleanvoidrememberImportedModuleSource(com.oracle.truffle.api.strings.TruffleString moduleSpecifier, com.oracle.truffle.api.source.Source moduleSource) Keep a link from the referencing module or script to the imported module'sSource, so that the latter is kept alive for the lifetime of the former.voidsetAsyncEvaluatingOrder(long order) voidsetCycleRoot(JSModuleRecord module) voidsetDFSAncestorIndex(int dfsAncestorIndex) voidsetDFSIndex(int dfsIndex) voidsetEnvironment(com.oracle.truffle.api.frame.MaterializedFrame environment) voidsetEvaluationError(Throwable evaluationError) voidsetExecutionResult(Object executionResult) voidsetNamespace(JSDynamicObject namespace) voidsetPendingAsyncDependencies(int value) voidsetStatus(JSModuleRecord.Status status) voidsetTopLevelCapability(PromiseCapabilityRecord capability) voidMethods inherited from class com.oracle.truffle.js.runtime.objects.ScriptOrModule
getContext, getSource
-
Constructor Details
-
JSModuleRecord
-
JSModuleRecord
-
-
Method Details
-
getModule
-
getModuleLoader
-
getFunctionData
-
getFrameDescriptor
public com.oracle.truffle.api.frame.FrameDescriptor getFrameDescriptor() -
getModuleData
-
getStatus
-
setStatus
-
hasBeenEvaluated
public boolean hasBeenEvaluated() -
getEvaluationError
-
setEvaluationError
-
getNamespace
-
setNamespace
-
getEnvironment
public com.oracle.truffle.api.frame.MaterializedFrame getEnvironment() -
setEnvironment
public void setEnvironment(com.oracle.truffle.api.frame.MaterializedFrame environment) -
getHostDefined
-
getDFSIndex
public int getDFSIndex() -
setDFSIndex
public void setDFSIndex(int dfsIndex) -
getDFSAncestorIndex
public int getDFSAncestorIndex() -
setDFSAncestorIndex
public void setDFSAncestorIndex(int dfsAncestorIndex) -
getExecutionResult
-
setExecutionResult
-
getExecutionResultOrThrow
-
getImportMeta
-
setUnlinked
public void setUnlinked() -
getTopLevelCapability
-
setTopLevelCapability
-
isAsyncEvaluation
public boolean isAsyncEvaluation() -
getAsyncParentModules
-
setPendingAsyncDependencies
public void setPendingAsyncDependencies(int value) -
initAsyncParentModules
public void initAsyncParentModules() -
incPendingAsyncDependencies
public void incPendingAsyncDependencies() -
decPendingAsyncDependencies
public void decPendingAsyncDependencies() -
appendAsyncParentModules
-
getPendingAsyncDependencies
public int getPendingAsyncDependencies() -
setAsyncEvaluatingOrder
public void setAsyncEvaluatingOrder(long order) -
getAsyncEvaluatingOrder
public long getAsyncEvaluatingOrder() -
hasTLA
public boolean hasTLA() -
setCycleRoot
-
getCycleRoot
-
rememberImportedModuleSource
public void rememberImportedModuleSource(com.oracle.truffle.api.strings.TruffleString moduleSpecifier, com.oracle.truffle.api.source.Source moduleSource) Description copied from class:ScriptOrModuleKeep a link from the referencing module or script to the imported module'sSource, so that the latter is kept alive for the lifetime of the former.- Overrides:
rememberImportedModuleSourcein classScriptOrModule
-