V8 Project
v8::internal::ObjectHashTableShape Class Reference

#include <objects.h>

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

Static Public Member Functions

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

Static Public Attributes

static const int kPrefixSize = 0
 
static const int kEntrySize = 2
 
- Static Public Attributes inherited from v8::internal::BaseShape< Handle< Object > >
static const bool UsesSeed
 

Detailed Description

Definition at line 3744 of file objects.h.

Member Function Documentation

◆ AsHandle()

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

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

6906  {
6907  return key;
6908 }

◆ Hash()

uint32_t v8::internal::ObjectHashTableShape::Hash ( Handle< Object key)
inlinestatic

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

6894  {
6895  return Smi::cast(key->GetHash())->value();
6896 }

◆ HashForObject()

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

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

6900  {
6901  return Smi::cast(other->GetHash())->value();
6902 }

References v8::internal::Object::GetHash().

+ Here is the call graph for this function:

◆ IsMatch()

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

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

6889  {
6890  return key->SameValue(other);
6891 }

Member Data Documentation

◆ kEntrySize

const int v8::internal::ObjectHashTableShape::kEntrySize = 2
static

Definition at line 3751 of file objects.h.

◆ kPrefixSize

const int v8::internal::ObjectHashTableShape::kPrefixSize = 0
static

Definition at line 3750 of file objects.h.


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