v8  3.11.10(node0.8.26)
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 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 272 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 267 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< int, 0, 4 >::decode(), and BitField< int, 0, 4 >::update().

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

Definition at line 253 of file utils.h.

Referenced by BitField< int, 0, 4 >::is_valid().


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