v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::Module Class Reference

#include <module.h>

Inheritance diagram for v8::internal::Module:
Collaboration diagram for v8::internal::Module:

Classes

struct  Hash
 
class  ResolveSet
 

Public Types

enum  Status {
  kUnlinked , kPreLinking , kLinking , kLinked ,
  kEvaluating , kEvaluatingAsync , kEvaluated , kErrored
}
 
using BodyDescriptor
 

Public Member Functions

Tagged< ObjectGetException ()
 
V8_WARN_UNUSED_RESULT bool IsGraphAsync (Isolate *isolate) const
 

Static Public Member Functions

static V8_WARN_UNUSED_RESULT bool Instantiate (Isolate *isolate, Handle< Module > module, v8::Local< v8::Context > context, v8::Module::ResolveModuleCallback module_callback, v8::Module::ResolveSourceCallback source_callback)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< ObjectEvaluate (Isolate *isolate, Handle< Module > module)
 
static DirectHandle< JSModuleNamespaceGetModuleNamespace (Isolate *isolate, Handle< Module > module)
 

Protected Member Functions

void SetStatus (Status status)
 
void RecordError (Isolate *isolate, Tagged< Object > error)
 

Static Protected Member Functions

static V8_WARN_UNUSED_RESULT MaybeHandle< CellResolveExport (Isolate *isolate, Handle< Module > module, DirectHandle< String > module_specifier, Handle< String > export_name, MessageLocation loc, bool must_resolve, ResolveSet *resolve_set)
 
static V8_WARN_UNUSED_RESULT bool PrepareInstantiate (Isolate *isolate, DirectHandle< Module > module, v8::Local< v8::Context > context, v8::Module::ResolveModuleCallback module_callback, v8::Module::ResolveSourceCallback source_callback)
 
static V8_WARN_UNUSED_RESULT bool FinishInstantiate (Isolate *isolate, Handle< Module > module, ZoneForwardList< Handle< SourceTextModule > > *stack, unsigned *dfs_index, Zone *zone)
 
static void Reset (Isolate *isolate, DirectHandle< Module > module)
 
static void ResetGraph (Isolate *isolate, DirectHandle< Module > module)
 

Friends

class Factory
 

Detailed Description

Definition at line 32 of file module.h.

Member Typedef Documentation

◆ BodyDescriptor

Initial value:
FixedBodyDescriptor<kExportsOffset, kHeaderSize, kHeaderSize>

Definition at line 79 of file module.h.

Member Enumeration Documentation

◆ Status

Enumerator
kUnlinked 
kPreLinking 
kLinking 
kLinked 
kEvaluating 
kEvaluatingAsync 
kEvaluated 
kErrored 

Definition at line 38 of file module.h.

Member Function Documentation

◆ Evaluate()

MaybeDirectHandle< Object > v8::internal::Module::Evaluate ( Isolate * isolate,
Handle< Module > module )
static

Definition at line 272 of file module.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FinishInstantiate()

bool v8::internal::Module::FinishInstantiate ( Isolate * isolate,
Handle< Module > module,
ZoneForwardList< Handle< SourceTextModule > > * stack,
unsigned * dfs_index,
Zone * zone )
staticprotected

Definition at line 255 of file module.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetException()

Tagged< Object > v8::internal::Module::GetException ( )

Definition at line 180 of file module.cc.

◆ GetModuleNamespace()

DirectHandle< JSModuleNamespace > v8::internal::Module::GetModuleNamespace ( Isolate * isolate,
Handle< Module > module )
static

Definition at line 324 of file module.cc.

Here is the call graph for this function:

◆ Instantiate()

bool v8::internal::Module::Instantiate ( Isolate * isolate,
Handle< Module > module,
v8::Local< v8::Context > context,
v8::Module::ResolveModuleCallback module_callback,
v8::Module::ResolveSourceCallback source_callback )
static

Definition at line 206 of file module.cc.

Here is the call graph for this function:

◆ IsGraphAsync()

bool v8::internal::Module::IsGraphAsync ( Isolate * isolate) const

Definition at line 490 of file module.cc.

Here is the call graph for this function:

◆ PrepareInstantiate()

bool v8::internal::Module::PrepareInstantiate ( Isolate * isolate,
DirectHandle< Module > module,
v8::Local< v8::Context > context,
v8::Module::ResolveModuleCallback module_callback,
v8::Module::ResolveSourceCallback source_callback )
staticprotected

Definition at line 234 of file module.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RecordError()

void v8::internal::Module::RecordError ( Isolate * isolate,
Tagged< Object > error )
protected

Definition at line 104 of file module.cc.

Here is the call graph for this function:

◆ Reset()

void v8::internal::Module::Reset ( Isolate * isolate,
DirectHandle< Module > module )
staticprotected

Definition at line 158 of file module.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ResetGraph()

void v8::internal::Module::ResetGraph ( Isolate * isolate,
DirectHandle< Module > module )
staticprotected

Definition at line 125 of file module.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ResolveExport()

MaybeHandle< Cell > v8::internal::Module::ResolveExport ( Isolate * isolate,
Handle< Module > module,
DirectHandle< String > module_specifier,
Handle< String > export_name,
MessageLocation loc,
bool must_resolve,
Module::ResolveSet * resolve_set )
staticprotected

Definition at line 187 of file module.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetStatus()

void v8::internal::Module::SetStatus ( Status status)
protected

Definition at line 97 of file module.cc.

Friends And Related Symbol Documentation

◆ Factory

friend class Factory
friend

Definition at line 85 of file module.h.


The documentation for this class was generated from the following files: