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

#include <global-context.h>

Inheritance diagram for v8::internal::torque::GlobalContext:
Collaboration diagram for v8::internal::torque::GlobalContext:

Classes

struct  PerFileStreams
 

Public Member Functions

 GlobalContext (GlobalContext &&) V8_NOEXCEPT=default
 
GlobalContextoperator= (GlobalContext &&) V8_NOEXCEPT=default
 
 GlobalContext (Ast ast)
 
template<class T >
TRegisterDeclarable (std::unique_ptr< T > d)
 

Static Public Member Functions

static NamespaceGetDefaultNamespace ()
 
static const std::vector< std::unique_ptr< Declarable > > & AllDeclarables ()
 
static void AddCppInclude (std::string include_path)
 
static const std::set< std::string > & CppIncludes ()
 
static void SetCollectLanguageServerData ()
 
static bool collect_language_server_data ()
 
static void SetCollectKytheData ()
 
static bool collect_kythe_data ()
 
static void SetForceAssertStatements ()
 
static bool force_assert_statements ()
 
static void SetAnnotateIR ()
 
static bool annotate_ir ()
 
static Astast ()
 
static std::string MakeUniqueName (const std::string &base)
 
static PerFileStreamsGeneratedPerFile (SourceId file)
 
static void SetInstanceTypesInitialized ()
 
static bool IsInstanceTypesInitialized ()
 
static void EnsureInCCOutputList (TorqueMacro *macro, SourceId source)
 
static const std::vector< std::pair< TorqueMacro *, SourceId > > & AllMacrosForCCOutput ()
 
static void EnsureInCCDebugOutputList (TorqueMacro *macro, SourceId source)
 
static const std::vector< std::pair< TorqueMacro *, SourceId > > & AllMacrosForCCDebugOutput ()
 
- Static Public Member Functions inherited from v8::base::ContextualVariable< Derived, VarType >
static VarType & Get ()
 
static bool HasScope ()
 

Private Attributes

bool collect_language_server_data_
 
bool collect_kythe_data_
 
bool force_assert_statements_
 
bool annotate_ir_
 
Namespacedefault_namespace_
 
Ast ast_
 
std::vector< std::unique_ptr< Declarable > > declarables_
 
std::set< std::string > cpp_includes_
 
std::map< SourceId, PerFileStreamsgenerated_per_file_
 
std::map< std::string, size_tfresh_ids_
 
std::vector< std::pair< TorqueMacro *, SourceId > > macros_for_cc_output_
 
std::set< std::pair< TorqueMacro *, SourceId > > macros_for_cc_output_set_
 
std::vector< std::pair< TorqueMacro *, SourceId > > macros_for_cc_debug_output_
 
std::set< std::pair< TorqueMacro *, SourceId > > macros_for_cc_debug_output_set_
 
bool instance_types_initialized_ = false
 

Friends

class LanguageServerData
 

Additional Inherited Members

- Public Types inherited from v8::base::ContextualVariable< Derived, VarType >
using VarT = VarType
 

Detailed Description

Definition at line 21 of file global-context.h.

Constructor & Destructor Documentation

◆ GlobalContext() [1/2]

v8::internal::torque::GlobalContext::GlobalContext ( GlobalContext && )
default

◆ GlobalContext() [2/2]

v8::internal::torque::GlobalContext::GlobalContext ( Ast ast)
explicit

Definition at line 11 of file global-context.cc.

Here is the call graph for this function:

Member Function Documentation

◆ AddCppInclude()

static void v8::internal::torque::GlobalContext::AddCppInclude ( std::string include_path)
inlinestatic

Definition at line 39 of file global-context.h.

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

◆ AllDeclarables()

static const std::vector< std::unique_ptr< Declarable > > & v8::internal::torque::GlobalContext::AllDeclarables ( )
inlinestatic

Definition at line 35 of file global-context.h.

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

◆ AllMacrosForCCDebugOutput()

static const std::vector< std::pair< TorqueMacro *, SourceId > > & v8::internal::torque::GlobalContext::AllMacrosForCCDebugOutput ( )
inlinestatic

Definition at line 129 of file global-context.h.

Here is the call graph for this function:

◆ AllMacrosForCCOutput()

static const std::vector< std::pair< TorqueMacro *, SourceId > > & v8::internal::torque::GlobalContext::AllMacrosForCCOutput ( )
inlinestatic

Definition at line 118 of file global-context.h.

Here is the call graph for this function:

◆ annotate_ir()

static bool v8::internal::torque::GlobalContext::annotate_ir ( )
inlinestatic

Definition at line 61 of file global-context.h.

Here is the call graph for this function:

◆ ast()

static Ast * v8::internal::torque::GlobalContext::ast ( )
inlinestatic

Definition at line 62 of file global-context.h.

Here is the call graph for this function:

◆ collect_kythe_data()

static bool v8::internal::torque::GlobalContext::collect_kythe_data ( )
inlinestatic

Definition at line 53 of file global-context.h.

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

◆ collect_language_server_data()

static bool v8::internal::torque::GlobalContext::collect_language_server_data ( )
inlinestatic

Definition at line 49 of file global-context.h.

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

◆ CppIncludes()

static const std::set< std::string > & v8::internal::torque::GlobalContext::CppIncludes ( )
inlinestatic

Definition at line 42 of file global-context.h.

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

◆ EnsureInCCDebugOutputList()

static void v8::internal::torque::GlobalContext::EnsureInCCDebugOutputList ( TorqueMacro * macro,
SourceId source )
inlinestatic

Definition at line 121 of file global-context.h.

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

◆ EnsureInCCOutputList()

static void v8::internal::torque::GlobalContext::EnsureInCCOutputList ( TorqueMacro * macro,
SourceId source )
inlinestatic

Definition at line 109 of file global-context.h.

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

◆ force_assert_statements()

static bool v8::internal::torque::GlobalContext::force_assert_statements ( )
inlinestatic

Definition at line 57 of file global-context.h.

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

◆ GeneratedPerFile()

static PerFileStreams & v8::internal::torque::GlobalContext::GeneratedPerFile ( SourceId file)
inlinestatic

Definition at line 96 of file global-context.h.

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

◆ GetDefaultNamespace()

static Namespace * v8::internal::torque::GlobalContext::GetDefaultNamespace ( )
inlinestatic

Definition at line 27 of file global-context.h.

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

◆ IsInstanceTypesInitialized()

static bool v8::internal::torque::GlobalContext::IsInstanceTypesInitialized ( )
inlinestatic

Definition at line 106 of file global-context.h.

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

◆ MakeUniqueName()

static std::string v8::internal::torque::GlobalContext::MakeUniqueName ( const std::string & base)
inlinestatic

Definition at line 63 of file global-context.h.

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

◆ operator=()

GlobalContext & v8::internal::torque::GlobalContext::operator= ( GlobalContext && )
default

◆ RegisterDeclarable()

template<class T >
T * v8::internal::torque::GlobalContext::RegisterDeclarable ( std::unique_ptr< T > d)
inline

Definition at line 29 of file global-context.h.

Here is the caller graph for this function:

◆ SetAnnotateIR()

static void v8::internal::torque::GlobalContext::SetAnnotateIR ( )
inlinestatic

Definition at line 60 of file global-context.h.

Here is the call graph for this function:

◆ SetCollectKytheData()

static void v8::internal::torque::GlobalContext::SetCollectKytheData ( )
inlinestatic

Definition at line 52 of file global-context.h.

Here is the call graph for this function:

◆ SetCollectLanguageServerData()

static void v8::internal::torque::GlobalContext::SetCollectLanguageServerData ( )
inlinestatic

Definition at line 46 of file global-context.h.

Here is the call graph for this function:

◆ SetForceAssertStatements()

static void v8::internal::torque::GlobalContext::SetForceAssertStatements ( )
inlinestatic

Definition at line 54 of file global-context.h.

Here is the call graph for this function:

◆ SetInstanceTypesInitialized()

static void v8::internal::torque::GlobalContext::SetInstanceTypesInitialized ( )
inlinestatic

Definition at line 102 of file global-context.h.

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

Friends And Related Symbol Documentation

◆ LanguageServerData

friend class LanguageServerData
friend

Definition at line 150 of file global-context.h.

Member Data Documentation

◆ annotate_ir_

bool v8::internal::torque::GlobalContext::annotate_ir_
private

Definition at line 137 of file global-context.h.

◆ ast_

Ast v8::internal::torque::GlobalContext::ast_
private

Definition at line 139 of file global-context.h.

◆ collect_kythe_data_

bool v8::internal::torque::GlobalContext::collect_kythe_data_
private

Definition at line 135 of file global-context.h.

◆ collect_language_server_data_

bool v8::internal::torque::GlobalContext::collect_language_server_data_
private

Definition at line 134 of file global-context.h.

◆ cpp_includes_

std::set<std::string> v8::internal::torque::GlobalContext::cpp_includes_
private

Definition at line 141 of file global-context.h.

◆ declarables_

std::vector<std::unique_ptr<Declarable> > v8::internal::torque::GlobalContext::declarables_
private

Definition at line 140 of file global-context.h.

◆ default_namespace_

Namespace* v8::internal::torque::GlobalContext::default_namespace_
private

Definition at line 138 of file global-context.h.

◆ force_assert_statements_

bool v8::internal::torque::GlobalContext::force_assert_statements_
private

Definition at line 136 of file global-context.h.

◆ fresh_ids_

std::map<std::string, size_t> v8::internal::torque::GlobalContext::fresh_ids_
private

Definition at line 143 of file global-context.h.

◆ generated_per_file_

std::map<SourceId, PerFileStreams> v8::internal::torque::GlobalContext::generated_per_file_
private

Definition at line 142 of file global-context.h.

◆ instance_types_initialized_

bool v8::internal::torque::GlobalContext::instance_types_initialized_ = false
private

Definition at line 148 of file global-context.h.

◆ macros_for_cc_debug_output_

std::vector<std::pair<TorqueMacro*, SourceId> > v8::internal::torque::GlobalContext::macros_for_cc_debug_output_
private

Definition at line 146 of file global-context.h.

◆ macros_for_cc_debug_output_set_

std::set<std::pair<TorqueMacro*, SourceId> > v8::internal::torque::GlobalContext::macros_for_cc_debug_output_set_
private

Definition at line 147 of file global-context.h.

◆ macros_for_cc_output_

std::vector<std::pair<TorqueMacro*, SourceId> > v8::internal::torque::GlobalContext::macros_for_cc_output_
private

Definition at line 144 of file global-context.h.

◆ macros_for_cc_output_set_

std::set<std::pair<TorqueMacro*, SourceId> > v8::internal::torque::GlobalContext::macros_for_cc_output_set_
private

Definition at line 145 of file global-context.h.


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