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

#include <module.h>

Inheritance diagram for v8::internal::JSModuleNamespace:
Collaboration diagram for v8::internal::JSModuleNamespace:

Public Types

enum  { kToStringTagFieldIndex , kInObjectFieldCount }
 

Public Member Functions

V8_WARN_UNUSED_RESULT MaybeDirectHandle< ObjectGetExport (Isolate *isolate, DirectHandle< String > name)
 
bool HasExport (Isolate *isolate, DirectHandle< String > name)
 

Static Public Member Functions

static V8_WARN_UNUSED_RESULT Maybe< PropertyAttributesGetPropertyAttributes (LookupIterator *it)
 
static V8_WARN_UNUSED_RESULT Maybe< boolDefineOwnProperty (Isolate *isolate, DirectHandle< JSModuleNamespace > o, DirectHandle< Object > key, PropertyDescriptor *desc, Maybe< ShouldThrow > should_throw)
 

Static Public Attributes

static constexpr int kSize
 

Detailed Description

Definition at line 126 of file module.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kToStringTagFieldIndex 
kInObjectFieldCount 

Definition at line 152 of file module.h.

Member Function Documentation

◆ DefineOwnProperty()

Maybe< bool > v8::internal::JSModuleNamespace::DefineOwnProperty ( Isolate * isolate,
DirectHandle< JSModuleNamespace > o,
DirectHandle< Object > key,
PropertyDescriptor * desc,
Maybe< ShouldThrow > should_throw )
static

Definition at line 453 of file module.cc.

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

◆ GetExport()

MaybeDirectHandle< Object > v8::internal::JSModuleNamespace::GetExport ( Isolate * isolate,
DirectHandle< String > name )

Definition at line 405 of file module.cc.

Here is the call graph for this function:

◆ GetPropertyAttributes()

Maybe< PropertyAttributes > v8::internal::JSModuleNamespace::GetPropertyAttributes ( LookupIterator * it)
static

Definition at line 428 of file module.cc.

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

◆ HasExport()

bool v8::internal::JSModuleNamespace::HasExport ( Isolate * isolate,
DirectHandle< String > name )

Definition at line 400 of file module.cc.

Member Data Documentation

◆ kSize

int v8::internal::JSModuleNamespace::kSize
staticconstexpr
Initial value:
=
kHeaderSize + (kTaggedSize * kInObjectFieldCount)
constexpr int kTaggedSize
Definition globals.h:542

Definition at line 159 of file module.h.


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