V8 Project
v8::internal::NameDictionaryShape Class Reference

#include <objects.h>

+ Inheritance diagram for v8::internal::NameDictionaryShape:
+ Collaboration diagram for v8::internal::NameDictionaryShape:

Static Public Member Functions

static bool IsMatch (Handle< Name > key, Object *other)
 
static uint32_t Hash (Handle< Name > key)
 
static uint32_t HashForObject (Handle< Name > key, Object *object)
 
static Handle< ObjectAsHandle (Isolate *isolate, Handle< Name > key)
 
- Static Public Member Functions inherited from v8::internal::BaseShape< Handle< Name > >
static uint32_t Hash (Handle< Name > key)
 
static uint32_t SeededHash (Handle< Name > key, uint32_t seed)
 
static uint32_t HashForObject (Handle< Name > key, Object *object)
 
static uint32_t SeededHashForObject (Handle< Name > key, uint32_t seed, Object *object)
 

Static Public Attributes

static const int kPrefixSize = 2
 
static const int kEntrySize = 3
 
static const bool kIsEnumerable = true
 
- Static Public Attributes inherited from v8::internal::BaseShape< Handle< Name > >
static const bool UsesSeed
 

Detailed Description

Definition at line 3608 of file objects.h.

Member Function Documentation

◆ AsHandle()

Handle< Object > v8::internal::NameDictionaryShape::AsHandle ( Isolate isolate,
Handle< Name key 
)
inlinestatic

Definition at line 6876 of file objects-inl.h.

6877  {
6878  DCHECK(key->IsUniqueName());
6879  return key;
6880 }
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK.

◆ Hash()

uint32_t v8::internal::NameDictionaryShape::Hash ( Handle< Name key)
inlinestatic

Definition at line 6866 of file objects-inl.h.

6866  {
6867  return key->Hash();
6868 }

◆ HashForObject()

uint32_t v8::internal::NameDictionaryShape::HashForObject ( Handle< Name key,
Object object 
)
inlinestatic

Definition at line 6871 of file objects-inl.h.

6871  {
6872  return Name::cast(other)->Hash();
6873 }

◆ IsMatch()

bool v8::internal::NameDictionaryShape::IsMatch ( Handle< Name key,
Object other 
)
inlinestatic

Definition at line 6858 of file objects-inl.h.

6858  {
6859  // We know that all entries in a hash table had their hash keys created.
6860  // Use that knowledge to have fast failure.
6861  if (key->Hash() != Name::cast(other)->Hash()) return false;
6862  return key->Equals(Name::cast(other));
6863 }

Member Data Documentation

◆ kEntrySize

const int v8::internal::NameDictionaryShape::kEntrySize = 3
static

Definition at line 3615 of file objects.h.

◆ kIsEnumerable

const bool v8::internal::NameDictionaryShape::kIsEnumerable = true
static

Definition at line 3616 of file objects.h.

◆ kPrefixSize

const int v8::internal::NameDictionaryShape::kPrefixSize = 2
static

Definition at line 3614 of file objects.h.


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