V8 Project
v8::internal::compiler::StaticParameterTraits< ContextAccess > Struct Reference

#include <js-operator.h>

+ Collaboration diagram for v8::internal::compiler::StaticParameterTraits< ContextAccess >:

Static Public Member Functions

static OStreamPrintTo (OStream &os, ContextAccess val)
 
static int HashCode (ContextAccess val)
 
static bool Equals (ContextAccess a, ContextAccess b)
 

Detailed Description

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

Member Function Documentation

◆ Equals()

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

210  {
211  return a.immutable() == b.immutable() && a.depth() == b.depth() &&
212  a.index() == b.index();
213  }

References v8::internal::compiler::ContextAccess::depth(), v8::internal::compiler::ContextAccess::immutable(), and v8::internal::compiler::ContextAccess::index().

+ Here is the call graph for this function:

◆ HashCode()

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

207  {
208  return (val.depth() << 16) | (val.index() & 0xffff);
209  }

References v8::internal::compiler::ContextAccess::depth(), and v8::internal::compiler::ContextAccess::index().

+ Here is the call graph for this function:

◆ PrintTo()

static OStream& v8::internal::compiler::StaticParameterTraits< ContextAccess >::PrintTo ( OStream os,
ContextAccess  val 
)
inlinestatic

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

203  { // NOLINT
204  return os << val.depth() << "," << val.index()
205  << (val.immutable() ? ",imm" : "");
206  }

References v8::internal::compiler::ContextAccess::depth(), v8::internal::compiler::ContextAccess::immutable(), and v8::internal::compiler::ContextAccess::index().

+ Here is the call graph for this function:

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