V8 Project
v8::internal::BitVector::BASE_EMBEDDED Class Reference

#include <data-flow.h>

+ Collaboration diagram for v8::internal::BitVector::BASE_EMBEDDED:

Public Member Functions

 Iterator (BitVector *target)
 
 ~Iterator ()
 
bool Done () const
 
void Advance ()
 
int Current () const
 

Private Member Functions

uint32_t SkipZeroBytes (uint32_t val)
 
uint32_t SkipZeroBits (uint32_t val)
 

Private Attributes

BitVectortarget_
 
int current_index_
 
uint32_t current_value_
 
int current_
 

Friends

class BitVector
 

Detailed Description

Definition at line 21 of file data-flow.h.

Constructor & Destructor Documentation

◆ ~Iterator()

v8::internal::BitVector::BASE_EMBEDDED::~Iterator ( )
inline

Definition at line 31 of file data-flow.h.

31 { }

Member Function Documentation

◆ Advance()

void v8::internal::BitVector::BASE_EMBEDDED::Advance ( )

◆ Current()

int v8::internal::BitVector::BASE_EMBEDDED::Current ( ) const
inline

Definition at line 36 of file data-flow.h.

36  {
37  DCHECK(!Done());
38  return current_;
39  }
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK.

◆ Done()

bool v8::internal::BitVector::BASE_EMBEDDED::Done ( ) const
inline

◆ Iterator()

v8::internal::BitVector::BASE_EMBEDDED::Iterator ( BitVector target)
inlineexplicit

Definition at line 23 of file data-flow.h.

24  : target_(target),
25  current_index_(0),
26  current_value_(target->data_[0]),
27  current_(-1) {
28  DCHECK(target->data_length_ > 0);
29  Advance();
30  }

References v8::internal::BitVector::data_length_, and DCHECK.

◆ SkipZeroBits()

uint32_t v8::internal::BitVector::BASE_EMBEDDED::SkipZeroBits ( uint32_t  val)
inlineprivate

Definition at line 49 of file data-flow.h.

49  {
50  while ((val & 0x1) == 0) {
51  val >>= 1;
52  current_++;
53  }
54  return val;
55  }

◆ SkipZeroBytes()

uint32_t v8::internal::BitVector::BASE_EMBEDDED::SkipZeroBytes ( uint32_t  val)
inlineprivate

Definition at line 42 of file data-flow.h.

42  {
43  while ((val & 0xFF) == 0) {
44  val >>= 8;
45  current_ += 8;
46  }
47  return val;
48  }

Friends And Related Function Documentation

◆ BitVector

friend class BitVector
friend

Definition at line 62 of file data-flow.h.

Member Data Documentation

◆ current_

int v8::internal::BitVector::BASE_EMBEDDED::current_
private

Definition at line 60 of file data-flow.h.

◆ current_index_

int v8::internal::BitVector::BASE_EMBEDDED::current_index_
private

Definition at line 58 of file data-flow.h.

◆ current_value_

uint32_t v8::internal::BitVector::BASE_EMBEDDED::current_value_
private

Definition at line 59 of file data-flow.h.

◆ target_

BitVector* v8::internal::BitVector::BASE_EMBEDDED::target_
private

Definition at line 57 of file data-flow.h.


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