V8 Project
v8::internal::compiler::ContextAccess Class Reference

#include <js-operator.h>

+ Collaboration diagram for v8::internal::compiler::ContextAccess:

Public Member Functions

 ContextAccess (int depth, int index, bool immutable)
 
int depth () const
 
int index () const
 
bool immutable () const
 

Private Attributes

const bool immutable_
 
const uint16_t depth_
 
const uint32_t index_
 

Detailed Description

Definition at line 21 of file js-operator.h.

Constructor & Destructor Documentation

◆ ContextAccess()

v8::internal::compiler::ContextAccess::ContextAccess ( int  depth,
int  index,
bool  immutable 
)
inline

Definition at line 23 of file js-operator.h.

25  DCHECK(0 <= depth && depth <= kMaxUInt16);
26  DCHECK(0 <= index && static_cast<uint32_t>(index) <= kMaxUInt32);
27  }
#define DCHECK(condition)
Definition: logging.h:205
const int kMaxUInt16
Definition: globals.h:117
const uint32_t kMaxUInt32
Definition: globals.h:120

References DCHECK, depth(), index(), v8::internal::kMaxUInt16, and v8::internal::kMaxUInt32.

+ Here is the call graph for this function:

Member Function Documentation

◆ depth()

int v8::internal::compiler::ContextAccess::depth ( ) const
inline

◆ immutable()

bool v8::internal::compiler::ContextAccess::immutable ( ) const
inline

Definition at line 30 of file js-operator.h.

30 { return immutable_; }

References immutable_.

Referenced by v8::internal::compiler::StaticParameterTraits< ContextAccess >::Equals(), v8::internal::compiler::StaticParameterTraits< ContextAccess >::PrintTo(), and v8::internal::compiler::JSContextSpecializer::ReduceJSLoadContext().

+ Here is the caller graph for this function:

◆ index()

int v8::internal::compiler::ContextAccess::index ( ) const
inline

Member Data Documentation

◆ depth_

const uint16_t v8::internal::compiler::ContextAccess::depth_
private

Definition at line 36 of file js-operator.h.

Referenced by depth().

◆ immutable_

const bool v8::internal::compiler::ContextAccess::immutable_
private

Definition at line 35 of file js-operator.h.

Referenced by immutable().

◆ index_

const uint32_t v8::internal::compiler::ContextAccess::index_
private

Definition at line 37 of file js-operator.h.

Referenced by index().


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