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

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

Collaboration diagram for v8::CTypeInfo:

Public Types

enum class  Type : uint8_t {
  kVoid , kBool , kUint8 , kInt32 ,
  kUint32 , kInt64 , kUint64 , kFloat32 ,
  kFloat64 , kPointer , kV8Value , kSeqOneByteString ,
  kApiObject , kAny
}
 
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, Flags flags=Flags::kNone)
 
constexpr CTypeInfo (Type type, SequenceType sequence_type, 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)
 

Private Attributes

Type type_
 
SequenceType sequence_type_
 
Flags flags_
 

Detailed Description

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

Member Typedef Documentation

◆ Identifier

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

Member Enumeration Documentation

◆ Flags

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

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

◆ Type

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

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

Constructor & Destructor Documentation

◆ CTypeInfo() [1/3]

v8::CTypeInfo::CTypeInfo ( Type type,
Flags flags = Flags::kNone )
inlineexplicitconstexpr

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

◆ CTypeInfo() [2/3]

v8::CTypeInfo::CTypeInfo ( Type type,
SequenceType sequence_type,
Flags flags = Flags::kNone )
inlineconstexpr

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

◆ CTypeInfo() [3/3]

v8::CTypeInfo::CTypeInfo ( Identifier identifier)
inlineexplicitconstexpr

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

Member Function Documentation

◆ GetFlags()

Flags v8::CTypeInfo::GetFlags ( ) const
inlineconstexpr

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

Here is the caller graph for this function:

◆ GetId()

Identifier v8::CTypeInfo::GetId ( ) const
inlineconstexpr

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

◆ GetSequenceType()

SequenceType v8::CTypeInfo::GetSequenceType ( ) const
inlineconstexpr

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

Here is the caller graph for this function:

◆ GetType()

Type v8::CTypeInfo::GetType ( ) const
inlineconstexpr

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

Here is the caller graph for this function:

◆ IsFloatingPointType()

static constexpr bool v8::CTypeInfo::IsFloatingPointType ( Type type)
inlinestaticconstexpr

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

Here is the caller graph for this function:

◆ IsIntegralType()

static constexpr bool v8::CTypeInfo::IsIntegralType ( Type type)
inlinestaticconstexpr

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

◆ IsPrimitive()

static constexpr bool v8::CTypeInfo::IsPrimitive ( Type type)
inlinestaticconstexpr

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

Member Data Documentation

◆ flags_

Flags v8::CTypeInfo::flags_
private

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

◆ kCallbackOptionsType

Type v8::CTypeInfo::kCallbackOptionsType = Type(255)
staticconstexpr

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

◆ sequence_type_

SequenceType v8::CTypeInfo::sequence_type_
private

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

◆ type_

Type v8::CTypeInfo::type_
private

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


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