V8 Project
v8::internal::NumberDictionaryShape Class Reference

#include <objects.h>

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

Static Public Member Functions

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

Static Public Attributes

static const int kEntrySize = 3
 
static const bool kIsEnumerable = false
 
- Static Public Attributes inherited from v8::internal::BaseShape< uint32_t >
static const bool UsesSeed
 

Detailed Description

Definition at line 3640 of file objects.h.

Member Function Documentation

◆ AsHandle()

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

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

6853  {
6854  return isolate->factory()->NewNumberFromUint(key);
6855 }

References v8::internal::Isolate::factory().

Referenced by v8::internal::SeededNumberDictionary::Set(), and v8::internal::UnseededNumberDictionary::Set().

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

◆ IsMatch()

bool v8::internal::NumberDictionaryShape::IsMatch ( uint32_t  key,
Object other 
)
inlinestatic

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

6822  {
6823  DCHECK(other->IsNumber());
6824  return key == static_cast<uint32_t>(other->Number());
6825 }
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK, and v8::internal::Object::Number().

+ Here is the call graph for this function:

Member Data Documentation

◆ kEntrySize

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

Definition at line 3644 of file objects.h.

◆ kIsEnumerable

const bool v8::internal::NumberDictionaryShape::kIsEnumerable = false
static

Definition at line 3645 of file objects.h.


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