v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Utf8StringKey Class Reference

#include <objects-inl.h>

Inheritance diagram for Utf8StringKey:
Collaboration diagram for Utf8StringKey:

Public Member Functions

 Utf8StringKey (Vector< const char > string, uint32_t seed)
 
virtual bool IsMatch (Object *string)
 
virtual uint32_t Hash ()
 
virtual uint32_t HashForObject (Object *other)
 
virtual MaybeObject * AsObject (Heap *heap)
 
- Public Member Functions inherited from HashTableKey
virtual ~HashTableKey ()
 

Data Fields

Vector< const char > string_
 
uint32_t hash_field_
 
int chars_
 
uint32_t seed_
 

Detailed Description

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

Constructor & Destructor Documentation

Utf8StringKey ( Vector< const char >  string,
uint32_t  seed 
)
inlineexplicit

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

Member Function Documentation

virtual MaybeObject* AsObject ( Heap heap)
inlinevirtual
virtual uint32_t HashForObject ( Object other)
inlinevirtual

Implements HashTableKey.

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

References String::cast(), and Name::Hash().

virtual bool IsMatch ( Object string)
inlinevirtual

Implements HashTableKey.

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

References String::cast(), String::IsUtf8EqualTo(), and Utf8StringKey::string_.

Field Documentation

int chars_

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

Referenced by Utf8StringKey::AsObject(), and Utf8StringKey::Hash().

uint32_t hash_field_

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

Referenced by Utf8StringKey::AsObject(), and Utf8StringKey::Hash().

uint32_t seed_

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

Referenced by Utf8StringKey::Hash().

Vector<const char> string_

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