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
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 uint8_t > string)
 
void generate (MacroAssembler *masm, uint32_t key)
 
void check (i::Vector< const uint8_t > string)
 
void check (i::Vector< const char > s)
 
void check (uint32_t key)
 
void check_twochars (uint8_t a, uint8_t b)
 
 TEST (StringHash)
 
 TEST (NumberHash)
 

Macro Definition Documentation

#define __   masm->

Definition at line 47 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 ( i::Vector< const char >  s)

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

References check().

void check_twochars ( uint8_t  a,
uint8_t  b 
)

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

References check().

Referenced by TEST().

TEST ( StringHash  )
TEST ( NumberHash  )

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

References check(), CcTest::isolate(), and Context::New().