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

#include <declarations.h>

Collaboration diagram for v8::internal::torque::Declarations:

Static Public Member Functions

static std::vector< Declarable * > TryLookup (const QualifiedName &name)
 
static std::vector< Declarable * > TryLookupShallow (const QualifiedName &name)
 
template<class T >
static std::vector< T * > TryLookup (const QualifiedName &name)
 
static std::vector< Declarable * > Lookup (const QualifiedName &name)
 
static std::vector< Declarable * > LookupGlobalScope (const QualifiedName &name)
 
static const TypeAliasLookupTypeAlias (const QualifiedName &name)
 
static const TypeLookupType (const QualifiedName &name)
 
static const TypeLookupType (const Identifier *identifier)
 
static std::optional< const Type * > TryLookupType (const QualifiedName &name)
 
static const TypeLookupGlobalType (const QualifiedName &name)
 
static BuiltinFindSomeInternalBuiltinWithType (const BuiltinPointerType *type)
 
static ValueLookupValue (const QualifiedName &name)
 
static MacroTryLookupMacro (const std::string &name, const TypeVector &types)
 
static std::optional< Builtin * > TryLookupBuiltin (const QualifiedName &name)
 
static std::vector< GenericCallable * > LookupGeneric (const std::string &name)
 
static GenericCallableLookupUniqueGeneric (const QualifiedName &name)
 
static GenericTypeLookupUniqueGenericType (const QualifiedName &name)
 
static GenericTypeLookupGlobalUniqueGenericType (const std::string &name)
 
static std::optional< GenericType * > TryLookupGenericType (const QualifiedName &name)
 
static NamespaceDeclareNamespace (const std::string &name)
 
static TypeAliasDeclareType (const Identifier *name, const Type *type)
 
static TypeAliasPredeclareTypeAlias (const Identifier *name, TypeDeclaration *type, bool redeclaration)
 
static TorqueMacroCreateTorqueMacro (std::string external_name, std::string readable_name, bool exported_to_csa, Signature signature, std::optional< Statement * > body, bool is_user_defined)
 
static ExternMacroCreateExternMacro (std::string name, std::string external_assembler_name, Signature signature)
 
static MacroDeclareMacro (const std::string &name, bool accessible_from_csa, std::optional< std::string > external_assembler_name, const Signature &signature, std::optional< Statement * > body, std::optional< std::string > op={}, bool is_user_defined=true)
 
static MethodCreateMethod (AggregateType *class_type, const std::string &name, Signature signature, Statement *body)
 
static IntrinsicCreateIntrinsic (const std::string &name, const Signature &signature)
 
static IntrinsicDeclareIntrinsic (const std::string &name, const Signature &signature)
 
static BuiltinCreateBuiltin (std::string external_name, std::string readable_name, Builtin::Kind kind, Builtin::Flags flags, Signature signature, std::optional< std::string > use_counter_name, std::optional< Statement * > body)
 
static RuntimeFunctionDeclareRuntimeFunction (const std::string &name, const Signature &signature)
 
static ExternConstantDeclareExternConstant (Identifier *name, const Type *type, std::string value)
 
static NamespaceConstantDeclareNamespaceConstant (Identifier *name, const Type *type, Expression *body)
 
static GenericCallableDeclareGenericCallable (const std::string &name, GenericCallableDeclaration *ast_node)
 
static GenericTypeDeclareGenericType (const std::string &name, GenericTypeDeclaration *ast_node)
 
template<class T >
static TDeclare (const std::string &name, T *d)
 
template<class T >
static TDeclare (const std::string &name, std::unique_ptr< T > d)
 
static MacroDeclareOperator (const std::string &name, Macro *m)
 
static std::string GetGeneratedCallableName (const std::string &name, const TypeVector &specialized_types)
 

Detailed Description

Definition at line 44 of file declarations.h.

Member Function Documentation

◆ CreateBuiltin()

Builtin * v8::internal::torque::Declarations::CreateBuiltin ( std::string external_name,
std::string readable_name,
Builtin::Kind kind,
Builtin::Flags flags,
Signature signature,
std::optional< std::string > use_counter_name,
std::optional< Statement * > body )
static

Definition at line 255 of file declarations.cc.

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

◆ CreateExternMacro()

ExternMacro * v8::internal::torque::Declarations::CreateExternMacro ( std::string name,
std::string external_assembler_name,
Signature signature )
static

Definition at line 190 of file declarations.cc.

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

◆ CreateIntrinsic()

Intrinsic * v8::internal::torque::Declarations::CreateIntrinsic ( const std::string & name,
const Signature & signature )
static

Definition at line 241 of file declarations.cc.

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

◆ CreateMethod()

Method * v8::internal::torque::Declarations::CreateMethod ( AggregateType * class_type,
const std::string & name,
Signature signature,
Statement * body )
static

Definition at line 230 of file declarations.cc.

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

◆ CreateTorqueMacro()

TorqueMacro * v8::internal::torque::Declarations::CreateTorqueMacro ( std::string external_name,
std::string readable_name,
bool exported_to_csa,
Signature signature,
std::optional< Statement * > body,
bool is_user_defined )
static

Definition at line 181 of file declarations.cc.

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

◆ Declare() [1/2]

template<class T >
static T * v8::internal::torque::Declarations::Declare ( const std::string & name,
std::unique_ptr< T > d )
inlinestatic

Definition at line 151 of file declarations.h.

Here is the call graph for this function:

◆ Declare() [2/2]

template<class T >
static T * v8::internal::torque::Declarations::Declare ( const std::string & name,
T * d )
inlinestatic

Definition at line 146 of file declarations.h.

Here is the caller graph for this function:

◆ DeclareExternConstant()

ExternConstant * v8::internal::torque::Declarations::DeclareExternConstant ( Identifier * name,
const Type * type,
std::string value )
static

Definition at line 272 of file declarations.cc.

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

◆ DeclareGenericCallable()

GenericCallable * v8::internal::torque::Declarations::DeclareGenericCallable ( const std::string & name,
GenericCallableDeclaration * ast_node )
static

Definition at line 292 of file declarations.cc.

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

◆ DeclareGenericType()

GenericType * v8::internal::torque::Declarations::DeclareGenericType ( const std::string & name,
GenericTypeDeclaration * ast_node )
static

Definition at line 298 of file declarations.cc.

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

◆ DeclareIntrinsic()

Intrinsic * v8::internal::torque::Declarations::DeclareIntrinsic ( const std::string & name,
const Signature & signature )
static

Definition at line 248 of file declarations.cc.

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

◆ DeclareMacro()

Macro * v8::internal::torque::Declarations::DeclareMacro ( const std::string & name,
bool accessible_from_csa,
std::optional< std::string > external_assembler_name,
const Signature & signature,
std::optional< Statement * > body,
std::optional< std::string > op = {},
bool is_user_defined = true )
static

Definition at line 198 of file declarations.cc.

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

◆ DeclareNamespace()

Namespace * v8::internal::torque::Declarations::DeclareNamespace ( const std::string & name)
static

Definition at line 162 of file declarations.cc.

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

◆ DeclareNamespaceConstant()

NamespaceConstant * v8::internal::torque::Declarations::DeclareNamespaceConstant ( Identifier * name,
const Type * type,
Expression * body )
static

Definition at line 280 of file declarations.cc.

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

◆ DeclareOperator()

Macro * v8::internal::torque::Declarations::DeclareOperator ( const std::string & name,
Macro * m )
static

Definition at line 313 of file declarations.cc.

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

◆ DeclareRuntimeFunction()

RuntimeFunction * v8::internal::torque::Declarations::DeclareRuntimeFunction ( const std::string & name,
const Signature & signature )
static

Definition at line 265 of file declarations.cc.

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

◆ DeclareType()

TypeAlias * v8::internal::torque::Declarations::DeclareType ( const Identifier * name,
const Type * type )
static

Definition at line 166 of file declarations.cc.

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

◆ FindSomeInternalBuiltinWithType()

Builtin * v8::internal::torque::Declarations::FindSomeInternalBuiltinWithType ( const BuiltinPointerType * type)
static

Definition at line 93 of file declarations.cc.

Here is the call graph for this function:

◆ GetGeneratedCallableName()

std::string v8::internal::torque::Declarations::GetGeneratedCallableName ( const std::string & name,
const TypeVector & specialized_types )
static

Definition at line 304 of file declarations.cc.

Here is the caller graph for this function:

◆ Lookup()

static std::vector< Declarable * > v8::internal::torque::Declarations::Lookup ( const QualifiedName & name)
inlinestatic

Definition at line 59 of file declarations.h.

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

◆ LookupGeneric()

std::vector< GenericCallable * > v8::internal::torque::Declarations::LookupGeneric ( const std::string & name)
static

Definition at line 131 of file declarations.cc.

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

◆ LookupGlobalScope()

std::vector< Declarable * > v8::internal::torque::Declarations::LookupGlobalScope ( const QualifiedName & name)
static

Definition at line 49 of file declarations.cc.

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

◆ LookupGlobalType()

const Type * v8::internal::torque::Declarations::LookupGlobalType ( const QualifiedName & name)
static

Definition at line 87 of file declarations.cc.

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

◆ LookupGlobalUniqueGenericType()

GenericType * v8::internal::torque::Declarations::LookupGlobalUniqueGenericType ( const std::string & name)
static

Definition at line 148 of file declarations.cc.

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

◆ LookupType() [1/2]

const Type * v8::internal::torque::Declarations::LookupType ( const Identifier * identifier)
static

Definition at line 71 of file declarations.cc.

Here is the call graph for this function:

◆ LookupType() [2/2]

const Type * v8::internal::torque::Declarations::LookupType ( const QualifiedName & name)
static

Definition at line 67 of file declarations.cc.

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

◆ LookupTypeAlias()

const TypeAlias * v8::internal::torque::Declarations::LookupTypeAlias ( const QualifiedName & name)
static

Definition at line 61 of file declarations.cc.

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

◆ LookupUniqueGeneric()

GenericCallable * v8::internal::torque::Declarations::LookupUniqueGeneric ( const QualifiedName & name)
static

Definition at line 138 of file declarations.cc.

Here is the call graph for this function:

◆ LookupUniqueGenericType()

GenericType * v8::internal::torque::Declarations::LookupUniqueGenericType ( const QualifiedName & name)
static

Definition at line 143 of file declarations.cc.

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

◆ LookupValue()

Value * v8::internal::torque::Declarations::LookupValue ( const QualifiedName & name)
static

Definition at line 108 of file declarations.cc.

Here is the call graph for this function:

◆ PredeclareTypeAlias()

TypeAlias * v8::internal::torque::Declarations::PredeclareTypeAlias ( const Identifier * name,
TypeDeclaration * type,
bool redeclaration )
static

Definition at line 172 of file declarations.cc.

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

◆ TryLookup() [1/2]

static std::vector< Declarable * > v8::internal::torque::Declarations::TryLookup ( const QualifiedName & name)
inlinestatic

Definition at line 46 of file declarations.h.

Here is the caller graph for this function:

◆ TryLookup() [2/2]

template<class T >
static std::vector< T * > v8::internal::torque::Declarations::TryLookup ( const QualifiedName & name)
inlinestatic

Definition at line 55 of file declarations.h.

Here is the call graph for this function:

◆ TryLookupBuiltin()

std::optional< Builtin * > v8::internal::torque::Declarations::TryLookupBuiltin ( const QualifiedName & name)
static

Definition at line 124 of file declarations.cc.

Here is the call graph for this function:

◆ TryLookupGenericType()

std::optional< GenericType * > v8::internal::torque::Declarations::TryLookupGenericType ( const QualifiedName & name)
static

Definition at line 155 of file declarations.cc.

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

◆ TryLookupMacro()

Macro * v8::internal::torque::Declarations::TryLookupMacro ( const std::string & name,
const TypeVector & types )
static

Definition at line 112 of file declarations.cc.

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

◆ TryLookupShallow()

static std::vector< Declarable * > v8::internal::torque::Declarations::TryLookupShallow ( const QualifiedName & name)
inlinestatic

Definition at line 50 of file declarations.h.

Here is the caller graph for this function:

◆ TryLookupType()

std::optional< const Type * > v8::internal::torque::Declarations::TryLookupType ( const QualifiedName & name)
static

Definition at line 80 of file declarations.cc.

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

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