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

#include <types.h>

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

Public Member Functions

std::string ToExplicitString () const override
 
std::string GetGeneratedTypeNameImpl () const override
 
std::string GetGeneratedTNodeTypeNameImpl () const override
 
const TypeVectorparameter_types () const
 
const Typereturn_type () const
 
bool operator== (const BuiltinPointerType &other) const
 
size_t function_pointer_type_id () const
 
std::vector< TypeCheckerGetTypeCheckers () const override
 
bool HasContextParameter () const
 
- Public Member Functions inherited from v8::internal::torque::Type
Typeoperator= (const Type &other)=delete
 
virtual bool IsSubtypeOf (const Type *supertype) const
 
std::string ToString () const
 
virtual std::string SimpleName () const
 
std::string GetHandleTypeName (HandleKind kind, const std::string &type_name) const
 
std::string TagglifiedCppTypeName () const
 
std::string HandlifiedCppTypeName (HandleKind kind) const
 
const Typeparent () const
 
bool IsVoid () const
 
bool IsNever () const
 
bool IsBool () const
 
bool IsConstexprBool () const
 
bool IsVoidOrNever () const
 
bool IsFloat32 () const
 
bool IsFloat64 () const
 
std::string GetGeneratedTypeName () const
 
std::string GetGeneratedTNodeTypeName () const
 
virtual bool IsConstexpr () const
 
virtual bool IsTransient () const
 
virtual const TypeNonConstexprVersion () const
 
virtual std::string GetConstexprGeneratedTypeName () const
 
std::optional< const ClassType * > ClassSupertype () const
 
std::optional< const StructType * > StructSupertype () const
 
std::optional< const AggregateType * > AggregateSupertype () const
 
virtual std::string GetRuntimeType () const
 
virtual std::string GetDebugType () const
 
void AddAlias (std::string alias) const
 
size_t id () const
 
const MaybeSpecializationKeyGetSpecializedFrom () const
 
virtual void SetConstexprVersion (const Type *type) const
 
virtual const TypeConstexprVersion () const
 
virtual size_t AlignmentLog2 () const
 
- Public Member Functions inherited from v8::internal::torque::TypeBase
virtual ~TypeBase ()=default
 
bool IsTopType () const
 
bool IsAbstractType () const
 
bool IsBuiltinPointerType () const
 
bool IsUnionType () const
 
bool IsBitFieldStructType () const
 
bool IsStructType () const
 
bool IsClassType () const
 
bool IsAggregateType () const
 

Private Member Functions

 BuiltinPointerType (const Type *parent, TypeVector parameter_types, const Type *return_type, size_t function_pointer_type_id)
 
std::string SimpleNameImpl () const override
 

Private Attributes

const TypeVector parameter_types_
 
const Type *const return_type_
 
const size_t function_pointer_type_id_
 

Friends

class TypeOracle
 
size_t hash_value (const BuiltinPointerType &p)
 

Additional Inherited Members

- Public Types inherited from v8::internal::torque::Type
enum class  HandleKind { kIndirect , kDirect }
 
- Public Types inherited from v8::internal::torque::TypeBase
enum class  Kind {
  kTopType , kAbstractType , kBuiltinPointerType , kUnionType ,
  kBitFieldStructType , kStructType , kClassType
}
 
- Static Public Member Functions inherited from v8::internal::torque::Type
static const TypeCommonSupertype (const Type *a, const Type *b)
 
static std::optional< const Type * > MatchUnaryGeneric (const Type *type, GenericType *generic)
 
static std::string ComputeName (const std::string &basename, MaybeSpecializationKey specialized_from)
 
- Protected Member Functions inherited from v8::internal::torque::Type
 Type (TypeBase::Kind kind, const Type *parent, MaybeSpecializationKey specialized_from=std::nullopt)
 
 Type (const Type &other) V8_NOEXCEPT
 
void set_parent (const Type *t)
 
int Depth () const
 
- Protected Member Functions inherited from v8::internal::torque::TypeBase
 TypeBase (Kind kind)
 
Kind kind () const
 

Detailed Description

Definition at line 334 of file types.h.

Constructor & Destructor Documentation

◆ BuiltinPointerType()

v8::internal::torque::BuiltinPointerType::BuiltinPointerType ( const Type * parent,
TypeVector parameter_types,
const Type * return_type,
size_t function_pointer_type_id )
inlineprivate

Definition at line 369 of file types.h.

Member Function Documentation

◆ function_pointer_type_id()

size_t v8::internal::torque::BuiltinPointerType::function_pointer_type_id ( ) const
inline

Definition at line 359 of file types.h.

◆ GetGeneratedTNodeTypeNameImpl()

std::string v8::internal::torque::BuiltinPointerType::GetGeneratedTNodeTypeNameImpl ( ) const
inlineoverridevirtual

Implements v8::internal::torque::Type.

Definition at line 341 of file types.h.

◆ GetGeneratedTypeNameImpl()

std::string v8::internal::torque::BuiltinPointerType::GetGeneratedTypeNameImpl ( ) const
inlineoverridevirtual

Implements v8::internal::torque::Type.

Definition at line 338 of file types.h.

◆ GetTypeCheckers()

std::vector< TypeChecker > v8::internal::torque::BuiltinPointerType::GetTypeCheckers ( ) const
inlineoverridevirtual

Reimplemented from v8::internal::torque::Type.

Definition at line 361 of file types.h.

◆ HasContextParameter()

bool v8::internal::torque::BuiltinPointerType::HasContextParameter ( ) const

Definition at line 1165 of file types.cc.

Here is the call graph for this function:

◆ operator==()

bool v8::internal::torque::BuiltinPointerType::operator== ( const BuiltinPointerType & other) const
inline

Definition at line 355 of file types.h.

◆ parameter_types()

const TypeVector & v8::internal::torque::BuiltinPointerType::parameter_types ( ) const
inline

Definition at line 345 of file types.h.

Here is the caller graph for this function:

◆ return_type()

const Type * v8::internal::torque::BuiltinPointerType::return_type ( ) const
inline

Definition at line 346 of file types.h.

◆ SimpleNameImpl()

std::string v8::internal::torque::BuiltinPointerType::SimpleNameImpl ( ) const
overrideprivatevirtual

Implements v8::internal::torque::Type.

Definition at line 246 of file types.cc.

◆ ToExplicitString()

std::string v8::internal::torque::BuiltinPointerType::ToExplicitString ( ) const
overridevirtual

Implements v8::internal::torque::Type.

Definition at line 238 of file types.cc.

Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ hash_value

size_t hash_value ( const BuiltinPointerType & p)
friend

Definition at line 348 of file types.h.

◆ TypeOracle

friend class TypeOracle
friend

Definition at line 368 of file types.h.

Member Data Documentation

◆ function_pointer_type_id_

const size_t v8::internal::torque::BuiltinPointerType::function_pointer_type_id_
private

Definition at line 379 of file types.h.

◆ parameter_types_

const TypeVector v8::internal::torque::BuiltinPointerType::parameter_types_
private

Definition at line 377 of file types.h.

◆ return_type_

const Type* const v8::internal::torque::BuiltinPointerType::return_type_
private

Definition at line 378 of file types.h.


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