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

#include <declarable.h>

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

Public Member Functions

bool IsExportedToCSA () const
 
std::string CCName () const override
 
std::string CCDebugName () const override
 
- Public Member Functions inherited from v8::internal::torque::Macro
bool ShouldBeInlined (OutputType output_type) const override
 
void SetUsed ()
 
bool IsUsed () const
 
- Public Member Functions inherited from v8::internal::torque::Callable
const std::string & ExternalName () const
 
const std::string & ReadableName () const
 
const Signaturesignature () const
 
bool IsTransitioning () const
 
const NameVectorparameter_names () const
 
bool HasReturnValue () const
 
void IncrementReturns ()
 
bool HasReturns () const
 
std::optional< Statement * > body () const
 
bool IsExternal () const
 
bool ShouldGenerateExternalCode (OutputType output_type) const
 
- Public Member Functions inherited from v8::internal::torque::Scope
 Scope (Declarable::Kind kind)
 
std::vector< Declarable * > LookupShallow (const QualifiedName &name)
 
std::vector< Declarable * > Lookup (const QualifiedName &name)
 
template<class T >
TAddDeclarable (const std::string &name, T *declarable)
 
const SpecializationRequesterGetSpecializationRequester () const
 
void SetSpecializationRequester (const SpecializationRequester &requester)
 
- Public Member Functions inherited from v8::internal::torque::Declarable
virtual ~Declarable ()=default
 
Kind kind () const
 
bool IsNamespace () const
 
bool IsMacro () const
 
bool IsTorqueMacro () const
 
bool IsMethod () const
 
bool IsExternMacro () const
 
bool IsIntrinsic () const
 
bool IsBuiltin () const
 
bool IsRuntimeFunction () const
 
bool IsGenericCallable () const
 
bool IsGenericType () const
 
bool IsTypeAlias () const
 
bool IsExternConstant () const
 
bool IsNamespaceConstant () const
 
bool IsValue () const
 
bool IsScope () const
 
bool IsCallable () const
 
virtual const char * type_name () const
 
ScopeParentScope () const
 
SourcePosition Position () const
 
void SetPosition (const SourcePosition &position)
 
SourcePosition IdentifierPosition () const
 
void SetIdentifierPosition (const SourcePosition &position)
 
bool IsUserDefined () const
 
void SetIsUserDefined (bool is_user_defined)
 

Protected Member Functions

 TorqueMacro (Declarable::Kind kind, std::string external_name, std::string readable_name, const Signature &signature, std::optional< Statement * > body, bool is_user_defined, bool exported_to_csa)
 
- Protected Member Functions inherited from v8::internal::torque::Macro
 Macro (Declarable::Kind kind, std::string external_name, std::string readable_name, const Signature &signature, std::optional< Statement * > body)
 
- Protected Member Functions inherited from v8::internal::torque::Callable
 Callable (Declarable::Kind kind, std::string external_name, std::string readable_name, Signature signature, std::optional< Statement * > body)
 
- Protected Member Functions inherited from v8::internal::torque::Declarable
 Declarable (Kind kind)
 

Private Member Functions

 TorqueMacro (std::string external_name, std::string readable_name, const Signature &signature, std::optional< Statement * > body, bool is_user_defined, bool exported_to_csa)
 

Private Attributes

bool exported_to_csa_ = false
 

Friends

class Declarations
 

Additional Inherited Members

- Public Types inherited from v8::internal::torque::Declarable
enum  Kind {
  kNamespace , kTorqueMacro , kExternMacro , kMethod ,
  kBuiltin , kRuntimeFunction , kIntrinsic , kGenericCallable ,
  kGenericType , kTypeAlias , kExternConstant , kNamespaceConstant
}
 
- Static Public Member Functions inherited from v8::internal::torque::Callable
static std::string PrefixNameForCCOutput (const std::string &name)
 
static std::string PrefixNameForCCDebugOutput (const std::string &name)
 

Detailed Description

Definition at line 436 of file declarable.h.

Constructor & Destructor Documentation

◆ TorqueMacro() [1/2]

v8::internal::torque::TorqueMacro::TorqueMacro ( Declarable::Kind kind,
std::string external_name,
std::string readable_name,
const Signature & signature,
std::optional< Statement * > body,
bool is_user_defined,
bool exported_to_csa )
inlineprotected

Definition at line 454 of file declarable.h.

Here is the call graph for this function:

◆ TorqueMacro() [2/2]

v8::internal::torque::TorqueMacro::TorqueMacro ( std::string external_name,
std::string readable_name,
const Signature & signature,
std::optional< Statement * > body,
bool is_user_defined,
bool exported_to_csa )
inlineprivate

Definition at line 466 of file declarable.h.

Member Function Documentation

◆ CCDebugName()

std::string v8::internal::torque::TorqueMacro::CCDebugName ( ) const
inlineoverridevirtual

Reimplemented from v8::internal::torque::Callable.

Definition at line 446 of file declarable.h.

Here is the call graph for this function:

◆ CCName()

std::string v8::internal::torque::TorqueMacro::CCName ( ) const
inlineoverridevirtual

Reimplemented from v8::internal::torque::Callable.

Definition at line 440 of file declarable.h.

Here is the call graph for this function:

◆ IsExportedToCSA()

bool v8::internal::torque::TorqueMacro::IsExportedToCSA ( ) const
inline

Definition at line 439 of file declarable.h.

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ Declarations

friend class Declarations
friend

Definition at line 465 of file declarable.h.

Member Data Documentation

◆ exported_to_csa_

bool v8::internal::torque::TorqueMacro::exported_to_csa_ = false
private

Definition at line 473 of file declarable.h.


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