V8 Project
v8::internal::ContextSlotCache::Value Struct Reference
+ Collaboration diagram for v8::internal::ContextSlotCache::Value:

Classes

class  IndexField
 
class  InitField
 
class  MaybeAssignedField
 
class  ModeField
 

Public Member Functions

 Value (VariableMode mode, InitializationFlag init_flag, MaybeAssignedFlag maybe_assigned_flag, int index)
 
 Value (uint32_t value)
 
uint32_t raw ()
 
VariableMode mode ()
 
InitializationFlag initialization_flag ()
 
MaybeAssignedFlag maybe_assigned_flag ()
 
int index ()
 

Private Attributes

uint32_t value_
 

Detailed Description

Definition at line 60 of file scopeinfo.h.

Constructor & Destructor Documentation

◆ Value() [1/2]

v8::internal::ContextSlotCache::Value::Value ( VariableMode  mode,
InitializationFlag  init_flag,
MaybeAssignedFlag  maybe_assigned_flag,
int  index 
)
inline

Definition at line 61 of file scopeinfo.h.

62  {
64  DCHECK(InitField::is_valid(init_flag));
68  InitField::encode(init_flag) |
70  DCHECK(mode == this->mode());
71  DCHECK(init_flag == this->initialization_flag());
73  DCHECK(index == this->index());
74  }
static bool is_valid(T value)
Definition: utils.h:212
static U encode(T value)
Definition: utils.h:217
#define DCHECK(condition)
Definition: logging.h:205
MaybeAssignedFlag maybe_assigned_flag()
Definition: scopeinfo.h:86
InitializationFlag initialization_flag()
Definition: scopeinfo.h:82

References DCHECK, v8::internal::BitFieldBase< T, shift, size, U >::encode(), index(), initialization_flag(), v8::internal::BitFieldBase< T, shift, size, U >::is_valid(), maybe_assigned_flag(), mode(), and value_.

+ Here is the call graph for this function:

◆ Value() [2/2]

v8::internal::ContextSlotCache::Value::Value ( uint32_t  value)
inlineexplicit

Definition at line 76 of file scopeinfo.h.

76 : value_(value) {}

Member Function Documentation

◆ index()

int v8::internal::ContextSlotCache::Value::index ( )
inline

Definition at line 90 of file scopeinfo.h.

90 { return IndexField::decode(value_); }
static T decode(U value)
Definition: utils.h:228

References v8::internal::BitFieldBase< T, shift, size, U >::decode(), and value_.

Referenced by v8::internal::ContextSlotCache::Lookup(), and Value().

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

◆ initialization_flag()

InitializationFlag v8::internal::ContextSlotCache::Value::initialization_flag ( )
inline

Definition at line 82 of file scopeinfo.h.

82  {
83  return InitField::decode(value_);
84  }

References v8::internal::BitFieldBase< T, shift, size, U >::decode(), and value_.

Referenced by v8::internal::ContextSlotCache::Lookup(), and Value().

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

◆ maybe_assigned_flag()

MaybeAssignedFlag v8::internal::ContextSlotCache::Value::maybe_assigned_flag ( )
inline

Definition at line 86 of file scopeinfo.h.

86  {
88  }

References v8::internal::BitFieldBase< T, shift, size, U >::decode(), and value_.

Referenced by v8::internal::ContextSlotCache::Lookup(), and Value().

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

◆ mode()

VariableMode v8::internal::ContextSlotCache::Value::mode ( )
inline

Definition at line 80 of file scopeinfo.h.

80 { return ModeField::decode(value_); }

References v8::internal::BitFieldBase< T, shift, size, U >::decode(), and value_.

Referenced by v8::internal::ContextSlotCache::Lookup(), and Value().

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

◆ raw()

uint32_t v8::internal::ContextSlotCache::Value::raw ( )
inline

Definition at line 78 of file scopeinfo.h.

78 { return value_; }

References value_.

Referenced by v8::internal::ContextSlotCache::Update().

+ Here is the caller graph for this function:

Member Data Documentation

◆ value_

uint32_t v8::internal::ContextSlotCache::Value::value_
private

Definition at line 100 of file scopeinfo.h.

Referenced by index(), initialization_flag(), maybe_assigned_flag(), mode(), raw(), and Value().


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