v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BitField< T, shift, size > Class Template Reference

#include <utils.h>

Collaboration diagram for BitField< T, shift, size >:

Static Public Member Functions

static bool is_valid (T value)
 
static uint32_t encode (T value)
 
static uint32_t update (uint32_t previous, T value)
 
static T decode (uint32_t value)
 

Static Public Attributes

static const uint32_t kMask = ((1U << shift) << size) - (1U << shift)
 
static const uint32_t kShift = shift
 
static const T kMax = static_cast<T>((1U << size) - 1)
 

Detailed Description

template<class T, int shift, int size>
class v8::internal::BitField< T, shift, size >

Definition at line 245 of file utils.h.

Member Function Documentation

static T decode ( uint32_t  value)
inlinestatic

Definition at line 273 of file utils.h.

Referenced by v8::internal::RUNTIME_FUNCTION().

static uint32_t encode ( T  value)
inlinestatic
static bool is_valid ( T  value)
inlinestatic
static uint32_t update ( uint32_t  previous,
T  value 
)
inlinestatic

Definition at line 268 of file utils.h.

Field Documentation

const uint32_t kMask = ((1U << shift) << size) - (1U << shift)
static

Definition at line 250 of file utils.h.

Referenced by BitField< Kind, 7, 4 >::decode(), and BitField< Kind, 7, 4 >::update().

const T kMax = static_cast<T>((1U << size) - 1)
static

Definition at line 254 of file utils.h.

Referenced by BitField< Kind, 7, 4 >::is_valid().

const uint32_t kShift = shift
static

Definition at line 251 of file utils.h.


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