v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::VariableMap Class Reference

#include <scopes.h>

Inheritance diagram for v8::internal::VariableMap:
Collaboration diagram for v8::internal::VariableMap:

Public Member Functions

 VariableMap (Zone *zone)
 
 VariableMap (const VariableMap &other, Zone *zone)
 
 VariableMap (VariableMap &&other) V8_NOEXCEPT
 
VariableMapoperator= (VariableMap &&other) V8_NOEXCEPT
 
VariableDeclare (Zone *zone, Scope *scope, const AstRawString *name, VariableMode mode, VariableKind kind, InitializationFlag initialization_flag, MaybeAssignedFlag maybe_assigned_flag, IsStaticFlag is_static_flag, bool *was_added)
 
V8_EXPORT_PRIVATE VariableLookup (const AstRawString *name)
 
void Remove (Variable *var)
 
void Add (Variable *var)
 
Zonezone () const
 
- Public Member Functions inherited from v8::base::PointerTemplateHashMapImpl< AllocationPolicy >
 PointerTemplateHashMapImpl (uint32_t capacity=Base::kDefaultHashMapCapacity, AllocationPolicy allocator=AllocationPolicy())
 
 PointerTemplateHashMapImpl (const PointerTemplateHashMapImpl &other, AllocationPolicy allocator=AllocationPolicy())
 
 PointerTemplateHashMapImpl (PointerTemplateHashMapImpl &&other) V8_NOEXCEPT
 
PointerTemplateHashMapImploperator= (PointerTemplateHashMapImpl &&other) V8_NOEXCEPT
 
- Public Member Functions inherited from v8::base::TemplateHashMapImpl< void *, void *, KeyEqualityMatcher< void * >, AllocationPolicy >
 TemplateHashMapImpl (uint32_t capacity=kDefaultHashMapCapacity, KeyEqualityMatcher< void * > match=KeyEqualityMatcher< void * >(), AllocationPolicy allocator=AllocationPolicy())
 
 TemplateHashMapImpl (const TemplateHashMapImpl &)=delete
 
 TemplateHashMapImpl (const TemplateHashMapImpl *original, AllocationPolicy allocator=AllocationPolicy())
 
 TemplateHashMapImpl (TemplateHashMapImpl &&other) V8_NOEXCEPT=default
 
TemplateHashMapImploperator= (const TemplateHashMapImpl &)=delete
 
TemplateHashMapImploperator= (TemplateHashMapImpl &&other) V8_NOEXCEPT=default
 
 ~TemplateHashMapImpl ()
 
EntryLookup (const void *&key, uint32_t hash) const
 
EntryLookupOrInsert (const void *&key, uint32_t hash)
 
EntryLookupOrInsert (const void *&key, uint32_t hash, const Func &value_func)
 
EntryLookupOrInsert (const LookupKey &lookup_key, uint32_t hash, const KeyFunc &key_func, const ValueFunc &value_func)
 
EntryInsertNew (const void *&key, uint32_t hash)
 
void * Remove (const void *&key, uint32_t hash)
 
void Clear ()
 
void Invalidate ()
 
uint32_t occupancy () const
 
uint32_t capacity () const
 
EntryStart () const
 
EntryNext (Entry *entry) const
 
AllocationPolicy allocator () const
 

Additional Inherited Members

- Public Types inherited from v8::base::TemplateHashMapImpl< void *, void *, KeyEqualityMatcher< void * >, AllocationPolicy >
using Entry
 
- Static Public Attributes inherited from v8::base::TemplateHashMapImpl< void *, void *, KeyEqualityMatcher< void * >, AllocationPolicy >
static const uint32_t kDefaultHashMapCapacity
 
- Protected Member Functions inherited from v8::base::TemplateHashMapImpl< void *, void *, KeyEqualityMatcher< void * >, AllocationPolicy >
void Initialize (uint32_t capacity)
 

Detailed Description

Definition at line 51 of file scopes.h.

Constructor & Destructor Documentation

◆ VariableMap() [1/3]

v8::internal::VariableMap::VariableMap ( Zone * zone)
explicit

Definition at line 40 of file scopes.cc.

◆ VariableMap() [2/3]

v8::internal::VariableMap::VariableMap ( const VariableMap & other,
Zone * zone )

Definition at line 43 of file scopes.cc.

◆ VariableMap() [3/3]

v8::internal::VariableMap::VariableMap ( VariableMap && other)
inline

Definition at line 56 of file scopes.h.

Member Function Documentation

◆ Add()

void v8::internal::VariableMap::Add ( Variable * var)

Definition at line 75 of file scopes.cc.

Here is the call graph for this function:

◆ Declare()

Variable * v8::internal::VariableMap::Declare ( Zone * zone,
Scope * scope,
const AstRawString * name,
VariableMode mode,
VariableKind kind,
InitializationFlag initialization_flag,
MaybeAssignedFlag maybe_assigned_flag,
IsStaticFlag is_static_flag,
bool * was_added )

Definition at line 46 of file scopes.cc.

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

◆ Lookup()

Variable * v8::internal::VariableMap::Lookup ( const AstRawString * name)

Definition at line 84 of file scopes.cc.

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

◆ operator=()

VariableMap & v8::internal::VariableMap::operator= ( VariableMap && other)
inline

Definition at line 59 of file scopes.h.

◆ Remove()

void v8::internal::VariableMap::Remove ( Variable * var)

Definition at line 70 of file scopes.cc.

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

◆ zone()

Zone * v8::internal::VariableMap::zone ( ) const
inline

Definition at line 74 of file scopes.h.

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

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