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

#include <refs-map.h>

Inheritance diagram for v8::internal::compiler::RefsMap:
Collaboration diagram for v8::internal::compiler::RefsMap:

Public Member Functions

 RefsMap (uint32_t capacity, AddressMatcher match, Zone *zone)
 
 RefsMap (const RefsMap *other, Zone *zone)
 
bool IsEmpty () const
 
EntryLookup (const Address &key) const
 
EntryLookupOrInsert (const Address &key)
 
ObjectDataRemove (const Address &key)
 
- Public Member Functions inherited from v8::base::TemplateHashMapImpl< Address, ObjectData *, AddressMatcher, ZoneAllocationPolicy >
 TemplateHashMapImpl (uint32_t capacity=kDefaultHashMapCapacity, AddressMatcher match=AddressMatcher(), ZoneAllocationPolicy allocator=ZoneAllocationPolicy())
 
 TemplateHashMapImpl (const TemplateHashMapImpl &)=delete
 
 TemplateHashMapImpl (const TemplateHashMapImpl *original, ZoneAllocationPolicy allocator=ZoneAllocationPolicy())
 
 TemplateHashMapImpl (TemplateHashMapImpl &&other) V8_NOEXCEPT=default
 
TemplateHashMapImploperator= (const TemplateHashMapImpl &)=delete
 
TemplateHashMapImploperator= (TemplateHashMapImpl &&other) V8_NOEXCEPT=default
 
 ~TemplateHashMapImpl ()
 
EntryLookup (const Address &key, uint32_t hash) const
 
EntryLookupOrInsert (const Address &key, uint32_t hash)
 
EntryLookupOrInsert (const Address &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 Address &key, uint32_t hash)
 
ObjectData * Remove (const Address &key, uint32_t hash)
 
void Clear ()
 
void Invalidate ()
 
uint32_t occupancy () const
 
uint32_t capacity () const
 
EntryStart () const
 
EntryNext (Entry *entry) const
 
ZoneAllocationPolicy allocator () const
 
- Public Member Functions inherited from v8::internal::ZoneObject
void * operator new (size_t, Zone *)=delete
 
void * operator new (size_t size, void *ptr)
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)=delete
 

Static Private Member Functions

static uint32_t Hash (Address addr)
 

Additional Inherited Members

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

Detailed Description

Definition at line 31 of file refs-map.h.

Constructor & Destructor Documentation

◆ RefsMap() [1/2]

v8::internal::compiler::RefsMap::RefsMap ( uint32_t capacity,
AddressMatcher match,
Zone * zone )

Definition at line 15 of file refs-map.cc.

◆ RefsMap() [2/2]

v8::internal::compiler::RefsMap::RefsMap ( const RefsMap * other,
Zone * zone )

Definition at line 18 of file refs-map.cc.

Member Function Documentation

◆ Hash()

uint32_t v8::internal::compiler::RefsMap::Hash ( Address addr)
staticprivate

Definition at line 34 of file refs-map.cc.

Here is the caller graph for this function:

◆ IsEmpty()

bool v8::internal::compiler::RefsMap::IsEmpty ( ) const
inline

Definition at line 39 of file refs-map.h.

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

◆ Lookup()

RefsMap::Entry * v8::internal::compiler::RefsMap::Lookup ( const Address & key) const

Definition at line 21 of file refs-map.cc.

Here is the call graph for this function:

◆ LookupOrInsert()

RefsMap::Entry * v8::internal::compiler::RefsMap::LookupOrInsert ( const Address & key)

Definition at line 25 of file refs-map.cc.

Here is the call graph for this function:

◆ Remove()

ObjectData * v8::internal::compiler::RefsMap::Remove ( const Address & key)

Definition at line 30 of file refs-map.cc.

Here is the call graph for this function:

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