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
test-hashing.cc File Reference
#include <stdlib.h>
#include "v8.h"
#include "factory.h"
#include "macro-assembler.h"
#include "cctest.h"
#include "code-stubs.h"
#include "objects.h"
Include dependency graph for test-hashing.cc:

Go to the source code of this file.

Macros

#define __   masm->
 

Typedefs

typedef uint32_t(* HASH_FUNCTION )()
 

Functions

void generate (MacroAssembler *masm, i::Vector< const char > string)
 
void generate (MacroAssembler *masm, uint32_t key)
 
void check (i::Vector< const char > string)
 
void check (uint32_t key)
 
void check_twochars (char a, char b)
 
 TEST (StringHash)
 
 TEST (NumberHash)
 

Macro Definition Documentation

#define __   masm->

Definition at line 49 of file test-hashing.cc.

Referenced by generate().

Typedef Documentation

typedef uint32_t(* HASH_FUNCTION)()

Definition at line 45 of file test-hashing.cc.

Function Documentation

void check_twochars ( char  a,
char  b 
)

Definition at line 214 of file test-hashing.cc.

References check().

Referenced by TEST().

TEST ( StringHash  )
TEST ( NumberHash  )

Definition at line 243 of file test-hashing.cc.

References check(), Handle< T >::IsEmpty(), and Context::New().