V8: include/v8-fast-api-calls.h File Reference (original) (raw)
Include dependency graph for v8-fast-api-calls.h:
Go to the source code of this file.
| Macros | |
|---|---|
| #define | SPECIALIZE_GET_TYPE_INFO_HELPER_FOR(T, Enum) |
| #define | DEFINE_TYPE_INFO_TRAITS(CType, Enum) |
| #define | PRIMITIVE_C_TYPES(V) |
| #define | ALL_C_TYPES(V) |
| #define | STATIC_ASSERT_IMPLIES(COND, ASSERTION, MSG) static_assert(((COND) == 0) | |
Macro Definition Documentation
◆ ALL_C_TYPES
Value:
V(void, kVoid) \
V(AnyCType, kAny)
Definition: v8-local-handle.h:366
#define PRIMITIVE_C_TYPES(V)
Definition: v8-fast-api-calls.h:544
◆ DEFINE_TYPE_INFO_TRAITS
| #define DEFINE_TYPE_INFO_TRAITS | ( | | CType, | | ---------------------------------- | - | | ------ | | | Enum | | | | | ) | | | |
Value:
template <> \
struct CTypeInfoTraitsCTypeInfo::Type::Enum { \
using ctype = CType; \
};
◆ PRIMITIVE_C_TYPES
| #define PRIMITIVE_C_TYPES | ( | | V | ) | | --------------------------- | - | | ------------------------------------------------------------ | - |
Value:
V(bool, kBool) \
V(uint8_t, kUint8) \
V(int32_t, kInt32) \
V(uint32_t, kUint32) \
V(int64_t, kInt64) \
V(uint64_t, kUint64) \
V(float, kFloat32) \
V(double, kFloat64) \
V(void*, kPointer)
◆ SPECIALIZE_GET_TYPE_INFO_HELPER_FOR
| #define SPECIALIZE_GET_TYPE_INFO_HELPER_FOR | ( | | T, | | ------------------------------------------------ | - | | -- | | | Enum | | | | | ) | | | |
Value:
template <> \
struct TypeInfoHelper { \
static constexpr CTypeInfo::Flags Flags() { \
return CTypeInfo::Flags::kNone; \
} \
\
static constexpr CTypeInfo::Type Type() { return CTypeInfo::Type::Enum; } \
};
◆ STATIC_ASSERT_IMPLIES
| #define STATIC_ASSERT_IMPLIES | ( | | COND, | | ------------------------------- | -------------------------------------------------- | | ----- | | | ASSERTION, | | | | | | MSG | | | | | ) | static_assert(((COND) == 0) || (ASSERTION), MSG) | | |