V8 Project
v8::internal::DeclaredAccessorDescriptorIterator Class Reference

#include <objects.h>

+ Collaboration diagram for v8::internal::DeclaredAccessorDescriptorIterator:

Public Member Functions

 DeclaredAccessorDescriptorIterator (DeclaredAccessorDescriptor *descriptor)
 
const DeclaredAccessorDescriptorDataNext ()
 
bool Complete () const
 

Private Member Functions

 DISALLOW_IMPLICIT_CONSTRUCTORS (DeclaredAccessorDescriptorIterator)
 

Private Attributes

uint8_t * array_
 
const int length_
 
int offset_
 

Detailed Description

Definition at line 10208 of file objects.h.

Constructor & Destructor Documentation

◆ DeclaredAccessorDescriptorIterator()

v8::internal::DeclaredAccessorDescriptorIterator::DeclaredAccessorDescriptorIterator ( DeclaredAccessorDescriptor descriptor)
explicit

Definition at line 15815 of file objects.cc.

15817  : array_(descriptor->serialized_data()->GetDataStartAddress()),
15818  length_(descriptor->serialized_data()->length()),
15819  offset_(0) {
15820 }

Member Function Documentation

◆ Complete()

bool v8::internal::DeclaredAccessorDescriptorIterator::Complete ( ) const
inline

Definition at line 10213 of file objects.h.

10213 { return length_ == offset_; }

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

+ Here is the caller graph for this function:

◆ DISALLOW_IMPLICIT_CONSTRUCTORS()

v8::internal::DeclaredAccessorDescriptorIterator::DISALLOW_IMPLICIT_CONSTRUCTORS ( DeclaredAccessorDescriptorIterator  )
private

◆ Next()

const DeclaredAccessorDescriptorData * v8::internal::DeclaredAccessorDescriptorIterator::Next ( )

Definition at line 15824 of file objects.cc.

15824  {
15825  DCHECK(offset_ < length_);
15826  uint8_t* ptr = &array_[offset_];
15827  DCHECK(reinterpret_cast<uintptr_t>(ptr) % sizeof(uintptr_t) == 0);
15828  const DeclaredAccessorDescriptorData* data =
15829  reinterpret_cast<const DeclaredAccessorDescriptorData*>(ptr);
15830  offset_ += sizeof(*data);
15831  DCHECK(offset_ <= length_);
15832  return data;
15833 }
#define DCHECK(condition)
Definition: logging.h:205

References array_, DCHECK, length_, and offset_.

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

+ Here is the caller graph for this function:

Member Data Documentation

◆ array_

uint8_t* v8::internal::DeclaredAccessorDescriptorIterator::array_
private

Definition at line 10215 of file objects.h.

Referenced by Next().

◆ length_

const int v8::internal::DeclaredAccessorDescriptorIterator::length_
private

Definition at line 10216 of file objects.h.

Referenced by Next().

◆ offset_

int v8::internal::DeclaredAccessorDescriptorIterator::offset_
private

Definition at line 10217 of file objects.h.

Referenced by Next().


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