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

#include <declarable.h>

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

Public Member Functions

std::optional< Statement * > CallableBody ()
 
TypeArgumentInference InferSpecializationTypes (const TypeVector &explicit_specialization_types, const std::vector< std::optional< const Type * > > &arguments)
 
- Public Member Functions inherited from v8::internal::torque::GenericDeclarable< Callable *, GenericCallableDeclaration * >
void AddSpecialization (const TypeVector &type_arguments, Callable *specialization)
 
std::optional< Callable * > GetSpecialization (const TypeVector &type_arguments) const
 
iterator begin () const
 
iterator end () const
 
const std::string & name () const
 
auto declaration () const
 
const GenericParametersgeneric_parameters () const
 
const std::vector< TypeConstraint > & Constraints ()
 
- 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)
 

Private Member Functions

 GenericCallable (const std::string &name, GenericCallableDeclaration *generic_declaration)
 

Friends

class Declarations
 

Additional Inherited Members

- Public Types inherited from v8::internal::torque::GenericDeclarable< Callable *, GenericCallableDeclaration * >
using iterator
 
- Public Types inherited from v8::internal::torque::Declarable
enum  Kind {
  kNamespace , kTorqueMacro , kExternMacro , kMethod ,
  kBuiltin , kRuntimeFunction , kIntrinsic , kGenericCallable ,
  kGenericType , kTypeAlias , kExternConstant , kNamespaceConstant
}
 
- Protected Member Functions inherited from v8::internal::torque::GenericDeclarable< Callable *, GenericCallableDeclaration * >
 GenericDeclarable (Declarable::Kind kind, const std::string &name, GenericCallableDeclaration *generic_declaration)
 
- Protected Member Functions inherited from v8::internal::torque::Declarable
 Declarable (Kind kind)
 

Detailed Description

Definition at line 637 of file declarable.h.

Constructor & Destructor Documentation

◆ GenericCallable()

v8::internal::torque::GenericCallable::GenericCallable ( const std::string & name,
GenericCallableDeclaration * generic_declaration )
inlineprivate

Definition at line 650 of file declarable.h.

Member Function Documentation

◆ CallableBody()

std::optional< Statement * > v8::internal::torque::GenericCallable::CallableBody ( )

Definition at line 163 of file declarable.cc.

Here is the call graph for this function:

◆ InferSpecializationTypes()

TypeArgumentInference v8::internal::torque::GenericCallable::InferSpecializationTypes ( const TypeVector & explicit_specialization_types,
const std::vector< std::optional< const Type * > > & arguments )

Definition at line 145 of file declarable.cc.

Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ Declarations

friend class Declarations
friend

Definition at line 649 of file declarable.h.


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