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

#include <declarable.h>

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

Public Member Functions

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
 
virtual bool ShouldBeInlined (OutputType output_type) const
 
bool ShouldGenerateExternalCode (OutputType output_type) const
 
virtual std::string CCName () const
 
virtual std::string CCDebugName () 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)
 

Static Public Member Functions

static std::string PrefixNameForCCOutput (const std::string &name)
 
static std::string PrefixNameForCCDebugOutput (const std::string &name)
 

Protected Member Functions

 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 Attributes

std::string external_name_
 
std::string readable_name_
 
Signature signature_
 
size_t returns_
 
std::optional< Statement * > body_
 

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
}
 

Detailed Description

Definition at line 301 of file declarable.h.

Constructor & Destructor Documentation

◆ Callable()

v8::internal::torque::Callable::Callable ( Declarable::Kind kind,
std::string external_name,
std::string readable_name,
Signature signature,
std::optional< Statement * > body )
inlineprotected

Definition at line 352 of file declarable.h.

Here is the call graph for this function:

Member Function Documentation

◆ body()

std::optional< Statement * > v8::internal::torque::Callable::body ( ) const
inline

Definition at line 316 of file declarable.h.

Here is the caller graph for this function:

◆ CCDebugName()

virtual std::string v8::internal::torque::Callable::CCDebugName ( ) const
inlinevirtual

Reimplemented in v8::internal::torque::ExternMacro, and v8::internal::torque::TorqueMacro.

Definition at line 347 of file declarable.h.

Here is the call graph for this function:

◆ CCName()

virtual std::string v8::internal::torque::Callable::CCName ( ) const
inlinevirtual

Reimplemented in v8::internal::torque::ExternMacro, and v8::internal::torque::TorqueMacro.

Definition at line 342 of file declarable.h.

Here is the call graph for this function:

◆ ExternalName()

const std::string & v8::internal::torque::Callable::ExternalName ( ) const
inline

Definition at line 304 of file declarable.h.

Here is the caller graph for this function:

◆ HasReturns()

bool v8::internal::torque::Callable::HasReturns ( ) const
inline

Definition at line 315 of file declarable.h.

◆ HasReturnValue()

bool v8::internal::torque::Callable::HasReturnValue ( ) const
inline

Definition at line 311 of file declarable.h.

Here is the caller graph for this function:

◆ IncrementReturns()

void v8::internal::torque::Callable::IncrementReturns ( )
inline

Definition at line 314 of file declarable.h.

Here is the caller graph for this function:

◆ IsExternal()

bool v8::internal::torque::Callable::IsExternal ( ) const
inline

Definition at line 317 of file declarable.h.

Here is the caller graph for this function:

◆ IsTransitioning()

bool v8::internal::torque::Callable::IsTransitioning ( ) const
inline

Definition at line 307 of file declarable.h.

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

◆ parameter_names()

const NameVector & v8::internal::torque::Callable::parameter_names ( ) const
inline

Definition at line 308 of file declarable.h.

◆ PrefixNameForCCDebugOutput()

static std::string v8::internal::torque::Callable::PrefixNameForCCDebugOutput ( const std::string & name)
inlinestatic

Definition at line 334 of file declarable.h.

Here is the caller graph for this function:

◆ PrefixNameForCCOutput()

static std::string v8::internal::torque::Callable::PrefixNameForCCOutput ( const std::string & name)
inlinestatic

Definition at line 327 of file declarable.h.

Here is the caller graph for this function:

◆ ReadableName()

const std::string & v8::internal::torque::Callable::ReadableName ( ) const
inline

Definition at line 305 of file declarable.h.

Here is the caller graph for this function:

◆ ShouldBeInlined()

virtual bool v8::internal::torque::Callable::ShouldBeInlined ( OutputType output_type) const
inlinevirtual

Reimplemented in v8::internal::torque::Macro, and v8::internal::torque::Method.

Definition at line 318 of file declarable.h.

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

◆ ShouldGenerateExternalCode()

bool v8::internal::torque::Callable::ShouldGenerateExternalCode ( OutputType output_type) const
inline

Definition at line 323 of file declarable.h.

Here is the call graph for this function:

◆ signature()

const Signature & v8::internal::torque::Callable::signature ( ) const
inline

Definition at line 306 of file declarable.h.

Here is the caller graph for this function:

Member Data Documentation

◆ body_

std::optional<Statement*> v8::internal::torque::Callable::body_
private

Definition at line 370 of file declarable.h.

◆ external_name_

std::string v8::internal::torque::Callable::external_name_
private

Definition at line 366 of file declarable.h.

◆ readable_name_

std::string v8::internal::torque::Callable::readable_name_
private

Definition at line 367 of file declarable.h.

◆ returns_

size_t v8::internal::torque::Callable::returns_
private

Definition at line 369 of file declarable.h.

◆ signature_

Signature v8::internal::torque::Callable::signature_
private

Definition at line 368 of file declarable.h.


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