v8 12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
CTypeInfo Class Reference

#include <v8-fast-api-calls.h>

Public Types

enum class  Type : uint8_t {
  kVoid , kBool , kUint8 , kInt32 ,
  kUint32 , kInt64 , kUint64 , kFloat32 ,
  kFloat64 , kPointer , kV8Value , kSeqOneByteString ,
  kApiObject , kAny
}
 
enum class  SequenceType : uint8_t { kScalar , kIsSequence , kIsTypedArray , kIsArrayBuffer }
 
enum class  Flags : uint8_t {
  kNone = 0 , kAllowSharedBit = 1 << 0 , kEnforceRangeBit = 1 << 1 , kClampBit = 1 << 2 ,
  kIsRestrictedBit = 1 << 3
}
 
typedef uint32_t Identifier
 

Public Member Functions

constexpr CTypeInfo (Type type, SequenceType sequence_type=SequenceType::kScalar, Flags flags=Flags::kNone)
 
constexpr CTypeInfo (Identifier identifier)
 
constexpr Identifier GetId () const
 
constexpr Type GetType () const
 
constexpr SequenceType GetSequenceType () const
 
constexpr Flags GetFlags () const
 

Static Public Member Functions

static constexpr bool IsIntegralType (Type type)
 
static constexpr bool IsFloatingPointType (Type type)
 
static constexpr bool IsPrimitive (Type type)
 

Static Public Attributes

static constexpr Type kCallbackOptionsType = Type(255)
 

Detailed Description

Definition at line 238 of file v8-fast-api-calls.h.

Member Typedef Documentation

◆ Identifier

typedef uint32_t Identifier

Definition at line 292 of file v8-fast-api-calls.h.

Member Enumeration Documentation

◆ Flags

enum class Flags : uint8_t
strong
Enumerator
kNone 
kAllowSharedBit 
kEnforceRangeBit 
kClampBit 
kIsRestrictedBit 

Definition at line 279 of file v8-fast-api-calls.h.

◆ SequenceType

enum class SequenceType : uint8_t
strong
Enumerator
kScalar 
kIsSequence 
kIsTypedArray 
kIsArrayBuffer 

Definition at line 271 of file v8-fast-api-calls.h.

◆ Type

enum class Type : uint8_t
strong
Enumerator
kVoid 
kBool 
kUint8 
kInt32 
kUint32 
kInt64 
kUint64 
kFloat32 
kFloat64 
kPointer 
kV8Value 
kSeqOneByteString 
kApiObject 
kAny 

Definition at line 240 of file v8-fast-api-calls.h.

Constructor & Destructor Documentation

◆ CTypeInfo() [1/2]

constexpr CTypeInfo ( Type  type,
SequenceType  sequence_type = SequenceType::kScalar,
Flags  flags = Flags::kNone 
)
inlineexplicitconstexpr

Definition at line 287 of file v8-fast-api-calls.h.

◆ CTypeInfo() [2/2]

constexpr CTypeInfo ( Identifier  identifier)
inlineexplicitconstexpr

Definition at line 293 of file v8-fast-api-calls.h.

Member Function Documentation

◆ GetFlags()

constexpr Flags GetFlags ( ) const
inlineconstexpr

Definition at line 305 of file v8-fast-api-calls.h.

◆ GetId()

constexpr Identifier GetId ( ) const
inlineconstexpr

Definition at line 297 of file v8-fast-api-calls.h.

◆ GetSequenceType()

constexpr SequenceType GetSequenceType ( ) const
inlineconstexpr

Definition at line 304 of file v8-fast-api-calls.h.

Referenced by CFunction::GetOverloadResolution().

◆ GetType()

constexpr Type GetType ( ) const
inlineconstexpr

Definition at line 303 of file v8-fast-api-calls.h.

◆ IsFloatingPointType()

static constexpr bool IsFloatingPointType ( Type  type)
inlinestaticconstexpr

Definition at line 313 of file v8-fast-api-calls.h.

References CTypeInfo::kFloat32, and CTypeInfo::kFloat64.

Referenced by CTypeInfo::IsPrimitive().

◆ IsIntegralType()

static constexpr bool IsIntegralType ( Type  type)
inlinestaticconstexpr

◆ IsPrimitive()

static constexpr bool IsPrimitive ( Type  type)
inlinestaticconstexpr

Field Documentation

◆ kCallbackOptionsType

constexpr Type kCallbackOptionsType = Type(255)
staticconstexpr

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