V8 Project
v8::internal::OneByteStringKey Class Reference

#include <objects-inl.h>

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

Public Member Functions

 OneByteStringKey (Vector< const uint8_t > str, uint32_t seed)
 
virtual bool IsMatch (Object *string) OVERRIDE
 
virtual Handle< ObjectAsHandle (Isolate *isolate) OVERRIDE
 
- Public Member Functions inherited from v8::internal::SequentialStringKey< uint8_t >
 SequentialStringKey (Vector< const uint8_t > string, uint32_t seed)
 
virtual uint32_t Hash () OVERRIDE
 
virtual uint32_t HashForObject (Object *other) OVERRIDE
 
- Public Member Functions inherited from v8::internal::HashTableKey
virtual ~HashTableKey ()
 

Additional Inherited Members

- Public Attributes inherited from v8::internal::SequentialStringKey< uint8_t >
Vector< const uint8_t > string_
 
uint32_t hash_field_
 
uint32_t seed_
 

Detailed Description

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

Constructor & Destructor Documentation

◆ OneByteStringKey()

v8::internal::OneByteStringKey::OneByteStringKey ( Vector< const uint8_t >  str,
uint32_t  seed 
)
inline

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

528  : SequentialStringKey<uint8_t>(str, seed) { }

Member Function Documentation

◆ AsHandle()

Handle< Object > v8::internal::OneByteStringKey::AsHandle ( Isolate isolate)
virtual

Implements v8::internal::HashTableKey.

Definition at line 13677 of file objects.cc.

13677  {
13678  if (hash_field_ == 0) Hash();
13679  return isolate->factory()->NewOneByteInternalizedString(string_, hash_field_);
13680 }

References v8::internal::Isolate::factory(), and v8::internal::Hash().

+ Here is the call graph for this function:

◆ IsMatch()

virtual bool v8::internal::OneByteStringKey::IsMatch ( Object string)
inlinevirtual

Implements v8::internal::HashTableKey.

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

530  {
531  return String::cast(string)->IsOneByteEqualTo(string_);
532  }

References v8::internal::SequentialStringKey< uint8_t >::string_.


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