34 using namespace v8::internal;
36 static bool DefaultMatchFun(
void* a,
void* b) {
50 HashMap::Entry* p = map_.Lookup(reinterpret_cast<void*>(x), hash_(x),
true);
52 CHECK_EQ(reinterpret_cast<void*>(x), p->key);
58 map_.Remove(reinterpret_cast<void*>(x), hash_(x));
63 map_.Lookup(reinterpret_cast<void*>(x), hash_(x),
false);
65 CHECK_EQ(reinterpret_cast<void*>(x), p->key);
76 for (HashMap::Entry* p = map_.Start(); p !=
NULL; p = map_.Next(p)) {
79 CHECK_EQ(map_.occupancy(),
static_cast<double>(count));
89 static uint32_t Hash(uint32_t key) {
return 23; }
90 static uint32_t CollisionHash(uint32_t key) {
return key & 0x3; }
128 const int start = 453;
129 const int factor = 13;
130 const int offset = 7;
131 const uint32_t n = size;
134 for (uint32_t i = 0; i < n; i++) {
137 x = x * factor + offset;
143 for (uint32_t i = 0; i < n; i++) {
145 x = x * factor + offset;
151 for (uint32_t i = 0; i < n; i++) {
156 x = x * factor + offset;
160 for (uint32_t j = 0; j < n; j++) {
166 y = y * factor + offset;
#define CHECK_EQ(expected, value)
#define CHECK_NE(unexpected, value)
void TestSet(IntKeyHash hash, int size)
activate correct semantics for inheriting readonliness enable harmony semantics for typeof enable harmony enable harmony proxies enable all harmony harmony_scoping harmony_proxies harmony_scoping tracks arrays with only smi values automatically unbox arrays of doubles use crankshaft use hydrogen range analysis use hydrogen global value numbering use function inlining maximum number of AST nodes considered for a single inlining loop invariant code motion print statistics for hydrogen trace generated IR for specified phases trace register allocator trace range analysis trace representation types environment for every instruction put a break point before deoptimizing polymorphic inlining perform array bounds checks elimination trace on stack replacement optimize closures functions with arguments object optimize functions containing for in loops profiler considers IC stability primitive functions trigger their own optimization re try self optimization if it failed insert an interrupt check at function exit execution budget before interrupt is triggered call count before self optimization self_optimization count_based_interrupts weighted_back_edges trace_opt emit comments in code disassembly enable use of SSE3 instructions if available enable use of CMOV instruction if available enable use of SAHF instruction if enable use of VFP3 instructions if available this implies enabling ARMv7 enable use of ARMv7 instructions if enable use of MIPS FPU instructions if NULL
uint32_t occupancy() const
uint32_t(* IntKeyHash)(uint32_t key)