v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RegExpKey Class Reference
Inheritance diagram for RegExpKey:
Collaboration diagram for RegExpKey:

Public Member Functions

 RegExpKey (String *string, JSRegExp::Flags flags)
 
bool IsMatch (Object *obj)
 
uint32_t Hash ()
 
ObjectAsObject ()
 
uint32_t HashForObject (Object *obj)
 
- Public Member Functions inherited from HashTableKey
virtual ~HashTableKey ()
 

Static Public Member Functions

static uint32_t RegExpHash (String *string, Smi *flags)
 

Data Fields

Stringstring_
 
Smiflags_
 

Detailed Description

Definition at line 11045 of file objects.cc.

Constructor & Destructor Documentation

RegExpKey ( String string,
JSRegExp::Flags  flags 
)
inline

Definition at line 11047 of file objects.cc.

Member Function Documentation

Object* AsObject ( )
inlinevirtual

Implements HashTableKey.

Definition at line 11063 of file objects.cc.

References v8::internal::NULL, and UNREACHABLE.

uint32_t Hash ( )
inlinevirtual

Implements HashTableKey.

Definition at line 11061 of file objects.cc.

References RegExpKey::flags_, RegExpKey::RegExpHash(), and RegExpKey::string_.

Referenced by CompilationCacheTable::PutRegExp().

uint32_t HashForObject ( Object obj)
inlinevirtual
static uint32_t RegExpHash ( String string,
Smi flags 
)
inlinestatic

Definition at line 11076 of file objects.cc.

References Smi::value().

Referenced by RegExpKey::Hash(), and RegExpKey::HashForObject().

Field Documentation

Smi* flags_

Definition at line 11081 of file objects.cc.

Referenced by RegExpKey::Hash(), and RegExpKey::IsMatch().

String* string_

Definition at line 11080 of file objects.cc.

Referenced by RegExpKey::Hash(), and RegExpKey::IsMatch().


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