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

#include <objects.h>

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

Public Member Functions

 NumberOfEntries ()
 
 NumberOfEntries (int int64_count, int code_ptr_count, int heap_ptr_count, int int32_count)
 
 NumberOfEntries (ConstantPoolArray *array, LayoutSection section)
 
void increment (Type type)
 
int equals (const NumberOfEntries &other) const
 
bool is_empty () const
 
int count_of (Type type) const
 
int base_of (Type type) const
 
int total_count () const
 
int are_in_range (int min, int max) const
 
 Iterator (ConstantPoolArray *array, Type type)
 
 Iterator (ConstantPoolArray *array, Type type, LayoutSection section)
 
int next_index ()
 
bool is_finished ()
 

Private Member Functions

void update_section ()
 

Private Attributes

int element_counts_ [NUMBER_OF_TYPES]
 
ConstantPoolArrayarray_
 
const Type type_
 
const LayoutSection final_section_
 
LayoutSection current_section_
 
int next_index_
 

Detailed Description

Definition at line 2625 of file objects.h.

Member Function Documentation

◆ are_in_range()

int v8::internal::ConstantPoolArray::BASE_EMBEDDED::are_in_range ( int  min,
int  max 
) const
inline

◆ base_of()

int v8::internal::ConstantPoolArray::BASE_EMBEDDED::base_of ( Type  type) const
inline

◆ count_of()

int v8::internal::ConstantPoolArray::BASE_EMBEDDED::count_of ( Type  type) const
inline

◆ equals()

int v8::internal::ConstantPoolArray::BASE_EMBEDDED::equals ( const NumberOfEntries other) const
inline

◆ increment()

void v8::internal::ConstantPoolArray::BASE_EMBEDDED::increment ( Type  type)
inline

◆ is_empty()

bool v8::internal::ConstantPoolArray::BASE_EMBEDDED::is_empty ( ) const
inline

◆ is_finished()

bool v8::internal::ConstantPoolArray::BASE_EMBEDDED::is_finished ( )
inline

◆ Iterator() [1/2]

v8::internal::ConstantPoolArray::BASE_EMBEDDED::Iterator ( ConstantPoolArray array,
Type  type 
)
inline

Definition at line 2662 of file objects.h.

◆ Iterator() [2/2]

v8::internal::ConstantPoolArray::BASE_EMBEDDED::Iterator ( ConstantPoolArray array,
Type  type,
LayoutSection  section 
)
inline

Definition at line 2671 of file objects.h.

2672  : array_(array),
2673  type_(type),
2674  final_section_(section),
2675  current_section_(section),
2676  next_index_(array->first_index(type, section)) {
2677  update_section();
2678  }

◆ next_index()

int v8::internal::ConstantPoolArray::BASE_EMBEDDED::next_index ( )
inline

◆ NumberOfEntries() [1/3]

v8::internal::ConstantPoolArray::BASE_EMBEDDED::NumberOfEntries ( )
inline

Definition at line 2627 of file objects.h.

2627  {
2628  for (int i = 0; i < NUMBER_OF_TYPES; i++) {
2629  element_counts_[i] = 0;
2630  }
2631  }

◆ NumberOfEntries() [2/3]

v8::internal::ConstantPoolArray::BASE_EMBEDDED::NumberOfEntries ( ConstantPoolArray array,
LayoutSection  section 
)
inline

Definition at line 2641 of file objects.h.

2641  {
2642  element_counts_[INT64] = array->number_of_entries(INT64, section);
2643  element_counts_[CODE_PTR] = array->number_of_entries(CODE_PTR, section);
2644  element_counts_[HEAP_PTR] = array->number_of_entries(HEAP_PTR, section);
2645  element_counts_[INT32] = array->number_of_entries(INT32, section);
2646  }

References v8::internal::ConstantPoolArray::number_of_entries().

+ Here is the call graph for this function:

◆ NumberOfEntries() [3/3]

v8::internal::ConstantPoolArray::BASE_EMBEDDED::NumberOfEntries ( int  int64_count,
int  code_ptr_count,
int  heap_ptr_count,
int  int32_count 
)
inline

Definition at line 2633 of file objects.h.

2634  {
2635  element_counts_[INT64] = int64_count;
2636  element_counts_[CODE_PTR] = code_ptr_count;
2637  element_counts_[HEAP_PTR] = heap_ptr_count;
2638  element_counts_[INT32] = int32_count;
2639  }

◆ total_count()

int v8::internal::ConstantPoolArray::BASE_EMBEDDED::total_count ( ) const
inline

◆ update_section()

void v8::internal::ConstantPoolArray::BASE_EMBEDDED::update_section ( )
inlineprivate

Member Data Documentation

◆ array_

ConstantPoolArray* v8::internal::ConstantPoolArray::BASE_EMBEDDED::array_
private

Definition at line 2685 of file objects.h.

◆ current_section_

LayoutSection v8::internal::ConstantPoolArray::BASE_EMBEDDED::current_section_
private

Definition at line 2689 of file objects.h.

◆ element_counts_

int v8::internal::ConstantPoolArray::BASE_EMBEDDED::element_counts_[NUMBER_OF_TYPES]
private

Definition at line 2657 of file objects.h.

◆ final_section_

const LayoutSection v8::internal::ConstantPoolArray::BASE_EMBEDDED::final_section_
private

Definition at line 2687 of file objects.h.

◆ next_index_

int v8::internal::ConstantPoolArray::BASE_EMBEDDED::next_index_
private

Definition at line 2690 of file objects.h.

◆ type_

const Type v8::internal::ConstantPoolArray::BASE_EMBEDDED::type_
private

Definition at line 2686 of file objects.h.


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