![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <modules.h>
Classes | |
class | AstModuleRequest |
struct | AstRawStringComparer |
struct | Entry |
struct | ModuleRequestComparer |
Public Types | |
enum | CellIndexKind { kInvalid , kExport , kImport } |
using | ModuleRequestMap |
using | RegularExportMap |
using | RegularImportMap |
Public Member Functions | |
SourceTextModuleDescriptor (Zone *zone) | |
void | AddImport (const AstRawString *import_name, const AstRawString *local_name, const AstRawString *specifier, const ModuleImportPhase import_phase, const ImportAttributes *import_attributes, const Scanner::Location loc, const Scanner::Location specifier_loc, Zone *zone) |
void | AddStarImport (const AstRawString *local_name, const AstRawString *specifier, const ImportAttributes *import_attributes, const Scanner::Location loc, const Scanner::Location specifier_loc, Zone *zone) |
void | AddEmptyImport (const AstRawString *specifier, const ImportAttributes *import_attributes, const Scanner::Location specifier_loc, Zone *zone) |
void | AddExport (const AstRawString *local_name, const AstRawString *export_name, const Scanner::Location loc, Zone *zone) |
void | AddExport (const AstRawString *export_name, const AstRawString *import_name, const AstRawString *specifier, const ImportAttributes *import_attributes, const Scanner::Location loc, const Scanner::Location specifier_loc, Zone *zone) |
void | AddStarExport (const AstRawString *specifier, const ImportAttributes *import_attributes, const Scanner::Location loc, const Scanner::Location specifier_loc, Zone *zone) |
bool | Validate (ModuleScope *module_scope, PendingCompilationErrorHandler *error_handler, Zone *zone) |
const ModuleRequestMap & | module_requests () const |
const ZoneVector< const Entry * > & | namespace_imports () const |
const RegularImportMap & | regular_imports () const |
const ZoneVector< const Entry * > & | special_exports () const |
const RegularExportMap & | regular_exports () const |
void | AddRegularExport (Entry *entry) |
void | AddSpecialExport (const Entry *entry, Zone *zone) |
void | AddRegularImport (Entry *entry) |
void | AddNamespaceImport (const Entry *entry, Zone *zone) |
template<typename IsolateT > | |
DirectHandle< FixedArray > | SerializeRegularExports (IsolateT *isolate, Zone *zone) const |
![]() | |
void * | operator new (size_t, Zone *)=delete |
void * | operator new (size_t size, void *ptr) |
void | operator delete (void *, size_t) |
void | operator delete (void *pointer, Zone *zone)=delete |
Static Public Member Functions | |
static CellIndexKind | GetCellIndexKind (int cell_index) |
Private Member Functions | |
const Entry * | FindDuplicateExport (Zone *zone) const |
void | MakeIndirectExportsExplicit (Zone *zone) |
void | AssignCellIndices () |
int | AddModuleRequest (const AstRawString *specifier, const ModuleImportPhase import_phase, const ImportAttributes *import_attributes, Scanner::Location specifier_loc, Zone *zone) |
Private Attributes | |
ModuleRequestMap | module_requests_ |
ZoneVector< const Entry * > | special_exports_ |
ZoneVector< const Entry * > | namespace_imports_ |
RegularExportMap | regular_exports_ |
RegularImportMap | regular_imports_ |
|
inlineexplicit |
void v8::internal::SourceTextModuleDescriptor::AddEmptyImport | ( | const AstRawString * | specifier, |
const ImportAttributes * | import_attributes, | ||
const Scanner::Location | specifier_loc, | ||
Zone * | zone ) |
void v8::internal::SourceTextModuleDescriptor::AddExport | ( | const AstRawString * | export_name, |
const AstRawString * | import_name, | ||
const AstRawString * | specifier, | ||
const ImportAttributes * | import_attributes, | ||
const Scanner::Location | loc, | ||
const Scanner::Location | specifier_loc, | ||
Zone * | zone ) |
void v8::internal::SourceTextModuleDescriptor::AddExport | ( | const AstRawString * | local_name, |
const AstRawString * | export_name, | ||
const Scanner::Location | loc, | ||
Zone * | zone ) |
Definition at line 90 of file modules.cc.
void v8::internal::SourceTextModuleDescriptor::AddImport | ( | const AstRawString * | import_name, |
const AstRawString * | local_name, | ||
const AstRawString * | specifier, | ||
const ModuleImportPhase | import_phase, | ||
const ImportAttributes * | import_attributes, | ||
const Scanner::Location | loc, | ||
const Scanner::Location | specifier_loc, | ||
Zone * | zone ) |
|
inlineprivate |
|
inline |
|
inline |
void v8::internal::SourceTextModuleDescriptor::AddStarExport | ( | const AstRawString * | specifier, |
const ImportAttributes * | import_attributes, | ||
const Scanner::Location | loc, | ||
const Scanner::Location | specifier_loc, | ||
Zone * | zone ) |
void v8::internal::SourceTextModuleDescriptor::AddStarImport | ( | const AstRawString * | local_name, |
const AstRawString * | specifier, | ||
const ImportAttributes * | import_attributes, | ||
const Scanner::Location | loc, | ||
const Scanner::Location | specifier_loc, | ||
Zone * | zone ) |
|
private |
|
private |
|
static |
|
private |
Definition at line 246 of file modules.cc.
|
inline |
|
inline |
|
inline |
|
inline |
template DirectHandle< FixedArray > v8::internal::SourceTextModuleDescriptor::SerializeRegularExports | ( | IsolateT * | isolate, |
Zone * | zone ) const |
Definition at line 185 of file modules.cc.
|
inline |
bool v8::internal::SourceTextModuleDescriptor::Validate | ( | ModuleScope * | module_scope, |
PendingCompilationErrorHandler * | error_handler, | ||
Zone * | zone ) |
|
private |
|
private |
|
private |
|
private |
|
private |