V8 Project
v8::internal::EffectsBase< Var, kNoVar > Class Template Reference

#include <effects.h>

+ Inheritance diagram for v8::internal::EffectsBase< Var, kNoVar >:
+ Collaboration diagram for v8::internal::EffectsBase< Var, kNoVar >:

Classes

struct  SplayTreeConfig
 

Public Member Functions

 EffectsBase (Zone *zone)
 
bool IsEmpty ()
 

Protected Types

typedef ZoneSplayTree< SplayTreeConfigMapping
 
typedef Mapping::Locator Locator
 

Protected Member Functions

Zonezone ()
 
bool Contains (Var var)
 
bool Find (Var var, Locator *locator)
 
bool Insert (Var var, Locator *locator)
 
template<class Callback >
void ForEach (Callback *callback)
 

Private Attributes

Mappingmap_
 

Friends

class NestedEffectsBase< Var, kNoVar >
 
class EffectsMixin< Var, NestedEffectsBase< Var, kNoVar >, Effects< Var, kNoVar > >
 

Detailed Description

template<class Var, Var kNoVar>
class v8::internal::EffectsBase< Var, kNoVar >

Definition at line 174 of file effects.h.

Member Typedef Documentation

◆ Locator

template<class Var , Var kNoVar>
typedef Mapping::Locator v8::internal::EffectsBase< Var, kNoVar >::Locator
protected

Definition at line 194 of file effects.h.

◆ Mapping

template<class Var , Var kNoVar>
typedef ZoneSplayTree<SplayTreeConfig> v8::internal::EffectsBase< Var, kNoVar >::Mapping
protected

Definition at line 193 of file effects.h.

Constructor & Destructor Documentation

◆ EffectsBase()

template<class Var , Var kNoVar>
v8::internal::EffectsBase< Var, kNoVar >::EffectsBase ( Zone zone)
inlineexplicit

Definition at line 176 of file effects.h.

176 : map_(new(zone) Mapping(zone)) {}
ZoneSplayTree< SplayTreeConfig > Mapping
Definition: effects.h:193

Member Function Documentation

◆ Contains()

template<class Var , Var kNoVar>
bool v8::internal::EffectsBase< Var, kNoVar >::Contains ( Var  var)
inlineprotected

Definition at line 196 of file effects.h.

197  {
198  DCHECK(var != kNoVar);
199  return map_->Contains(var);
bool Contains(const Key &key)
#define DCHECK(condition)
Definition: logging.h:205

References v8::internal::SplayTree< Config, AllocationPolicy >::Contains(), DCHECK, and v8::internal::EffectsBase< Var, kNoVar >::map_.

Referenced by v8::internal::EffectsMixin< Var, Base, Effects >::AltWeakener< Self >::Call().

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

◆ Find()

template<class Var , Var kNoVar>
bool v8::internal::EffectsBase< Var, kNoVar >::Find ( Var  var,
Locator locator 
)
inlineprotected

Definition at line 200 of file effects.h.

201  {
202  DCHECK(var != kNoVar);
203  return map_->Find(var, locator);
bool Find(const Key &key, Locator *locator)

◆ ForEach()

template<class Var , Var kNoVar>
template<class Callback >
void v8::internal::EffectsBase< Var, kNoVar >::ForEach ( Callback *  callback)
inlineprotected

Definition at line 210 of file effects.h.

211  {
212  return map_->ForEach(callback);
void ForEach(Callback *callback)

References v8::internal::SplayTree< Config, AllocationPolicy >::ForEach(), and v8::internal::EffectsBase< Var, kNoVar >::map_.

Referenced by v8::internal::EffectsMixin< Var, Base, Effects >::Alt(), and v8::internal::EffectsMixin< Var, Base, Effects >::Seq().

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

◆ Insert()

template<class Var , Var kNoVar>
bool v8::internal::EffectsBase< Var, kNoVar >::Insert ( Var  var,
Locator locator 
)
inlineprotected

Definition at line 204 of file effects.h.

205  {
206  DCHECK(var != kNoVar);
207  return map_->Insert(var, locator);
bool Insert(const Key &key, Locator *locator)

◆ IsEmpty()

template<class Var , Var kNoVar>
bool v8::internal::EffectsBase< Var, kNoVar >::IsEmpty ( )
inline

Definition at line 178 of file effects.h.

178 { return map_->is_empty(); }

◆ zone()

template<class Var , Var kNoVar>
Zone* v8::internal::EffectsBase< Var, kNoVar >::zone ( )
inlineprotected

Definition at line 184 of file effects.h.

185 { return map_->allocator().zone(); }
AllocationPolicy allocator()
Definition: splay-tree.h:54

References v8::internal::SplayTree< Config, AllocationPolicy >::allocator(), v8::internal::EffectsBase< Var, kNoVar >::map_, and v8::internal::ZoneAllocationPolicy::zone().

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ EffectsMixin< Var, NestedEffectsBase< Var, kNoVar >, Effects< Var, kNoVar > >

template<class Var , Var kNoVar>
friend class EffectsMixin< Var, NestedEffectsBase< Var, kNoVar >, Effects< Var, kNoVar > >
friend

Definition at line 178 of file effects.h.

◆ NestedEffectsBase< Var, kNoVar >

template<class Var , Var kNoVar>
friend class NestedEffectsBase< Var, kNoVar >
friend

Definition at line 178 of file effects.h.

Member Data Documentation

◆ map_


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