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

#include <types.h>

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

Public Member Functions

std::string ToExplicitString () const override
 
std::string GetGeneratedTypeNameImpl () const override
 
std::string GetGeneratedTNodeTypeNameImpl () const override
 
std::vector< TypeCheckerGetTypeCheckers () const override
 
void SetConstexprVersion (const Type *) const override
 
const TypeConstexprVersion () const override
 
void RegisterField (BitField field)
 
const std::string & name () const
 
const std::vector< BitField > & fields () const
 
const BitFieldLookupField (const std::string &name) const
 
const SourcePosition GetPosition () 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 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

 BitFieldStructType (Namespace *nspace, const Type *parent, const BitFieldStructDeclaration *decl)
 
std::string SimpleNameImpl () const override
 

Private Attributes

Namespacenamespace_
 
const BitFieldStructDeclarationdecl_
 
std::vector< BitFieldfields_
 

Friends

class TypeOracle
 

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 504 of file types.h.

Constructor & Destructor Documentation

◆ BitFieldStructType()

v8::internal::torque::BitFieldStructType::BitFieldStructType ( Namespace * nspace,
const Type * parent,
const BitFieldStructDeclaration * decl )
inlineprivate

Definition at line 535 of file types.h.

Member Function Documentation

◆ ConstexprVersion()

const Type * v8::internal::torque::BitFieldStructType::ConstexprVersion ( ) const
inlineoverridevirtual

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

Definition at line 520 of file types.h.

◆ fields()

const std::vector< BitField > & v8::internal::torque::BitFieldStructType::fields ( ) const
inline

Definition at line 527 of file types.h.

◆ GetGeneratedTNodeTypeNameImpl()

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

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

Definition at line 511 of file types.h.

◆ GetGeneratedTypeNameImpl()

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

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

Definition at line 508 of file types.h.

◆ GetPosition()

const SourcePosition v8::internal::torque::BitFieldStructType::GetPosition ( ) const
inline

Definition at line 531 of file types.h.

◆ GetTypeCheckers()

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

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

Definition at line 515 of file types.h.

◆ LookupField()

const BitField & v8::internal::torque::BitFieldStructType::LookupField ( const std::string & name) const

Definition at line 421 of file types.cc.

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

◆ name()

const std::string & v8::internal::torque::BitFieldStructType::name ( ) const
inline

Definition at line 526 of file types.h.

Here is the caller graph for this function:

◆ RegisterField()

void v8::internal::torque::BitFieldStructType::RegisterField ( BitField field)
inline

Definition at line 524 of file types.h.

◆ SetConstexprVersion()

void v8::internal::torque::BitFieldStructType::SetConstexprVersion ( const Type * ) const
inlineoverridevirtual

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

Definition at line 519 of file types.h.

◆ SimpleNameImpl()

std::string v8::internal::torque::BitFieldStructType::SimpleNameImpl ( ) const
inlineoverrideprivatevirtual

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

Definition at line 540 of file types.h.

◆ ToExplicitString()

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

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

Definition at line 417 of file types.cc.

Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ TypeOracle

friend class TypeOracle
friend

Definition at line 534 of file types.h.

Member Data Documentation

◆ decl_

const BitFieldStructDeclaration* v8::internal::torque::BitFieldStructType::decl_
private

Definition at line 543 of file types.h.

◆ fields_

std::vector<BitField> v8::internal::torque::BitFieldStructType::fields_
private

Definition at line 544 of file types.h.

◆ namespace_

Namespace* v8::internal::torque::BitFieldStructType::namespace_
private

Definition at line 542 of file types.h.


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