V8 Project
v8::internal::DependentCode::GroupStartIndexes Class Reference

#include <objects.h>

+ Collaboration diagram for v8::internal::DependentCode::GroupStartIndexes:

Public Member Functions

 GroupStartIndexes (DependentCode *entries)
 
void Recompute (DependentCode *entries)
 
int at (int i)
 
int number_of_entries ()
 

Private Attributes

int start_indexes_ [kGroupCount+1]
 

Detailed Description

Definition at line 5538 of file objects.h.

Constructor & Destructor Documentation

◆ GroupStartIndexes()

v8::internal::DependentCode::GroupStartIndexes::GroupStartIndexes ( DependentCode entries)
explicit

Definition at line 11383 of file objects.cc.

11383  {
11384  Recompute(entries);
11385 }
void Recompute(DependentCode *entries)
Definition: objects.cc:11388

References Recompute().

+ Here is the call graph for this function:

Member Function Documentation

◆ at()

◆ number_of_entries()

int v8::internal::DependentCode::GroupStartIndexes::number_of_entries ( )
inline

Definition at line 5543 of file objects.h.

5543 { return start_indexes_[kGroupCount]; }
static const int kGroupCount
Definition: objects.h:5534

Referenced by v8::internal::MarkCompactCollector::ClearDependentCode(), v8::internal::MarkCompactCollector::ClearNonLiveDependentCode(), v8::internal::DependentCode::Insert(), v8::internal::DependentCode::MarkCodeForDeoptimization(), and v8::internal::DependentCode::RemoveCompilationInfo().

+ Here is the caller graph for this function:

◆ Recompute()

void v8::internal::DependentCode::GroupStartIndexes::Recompute ( DependentCode entries)

Definition at line 11388 of file objects.cc.

11388  {
11389  start_indexes_[0] = 0;
11390  for (int g = 1; g <= kGroupCount; g++) {
11391  int count = entries->number_of_entries(static_cast<DependencyGroup>(g - 1));
11392  start_indexes_[g] = start_indexes_[g - 1] + count;
11393  }
11394 }

References v8::internal::DependentCode::kGroupCount, and v8::internal::DependentCode::number_of_entries().

Referenced by GroupStartIndexes(), and v8::internal::DependentCode::Insert().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ start_indexes_

int v8::internal::DependentCode::GroupStartIndexes::start_indexes_[kGroupCount+1]
private

Definition at line 5545 of file objects.h.


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