v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <stdlib.h>
#include "v8.h"
#include "factory.h"
#include "macro-assembler.h"
#include "cctest.h"
#include "code-stubs.h"
#include "objects.h"
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) | |
#define __ masm-> |
Definition at line 49 of file test-hashing.cc.
Referenced by generate().
typedef uint32_t(* HASH_FUNCTION)() |
Definition at line 45 of file test-hashing.cc.
void check | ( | i::Vector< const char > | string | ) |
Definition at line 155 of file test-hashing.cc.
References CALL_GENERATED_CODE, Code::cast(), CHECK, v8::internal::code(), Code::ComputeFlags(), Code::entry(), FACTORY, generate(), Assembler::GetCode(), HEAP, and String::kEmptyHashField.
Referenced by RegExpParser::Advance(), check_twochars(), StubCache::ComputeCallConstant(), Analysis::EnsureAnalyzed(), TypeFeedbackOracle::GetCallCheckType(), TEST(), and MarkCompactMarkingVisitor::VisitUnmarkedObjects().
void check | ( | uint32_t | key | ) |
Definition at line 184 of file test-hashing.cc.
References CALL_GENERATED_CODE, Code::cast(), CHECK, v8::internal::code(), Code::ComputeFlags(), v8::internal::ComputeIntegerHash(), Code::entry(), generate(), Assembler::GetCode(), and HEAP.
void check_twochars | ( | char | a, |
char | b | ||
) |
void generate | ( | MacroAssembler * | masm, |
i::Vector< const char > | string | ||
) |
Definition at line 52 of file test-hashing.cc.
References __, ASSERT, v8::internal::eax, v8::internal::ebx, v8::internal::ecx, StringHelper::GenerateHashAddCharacter(), StringHelper::GenerateHashGetHash(), StringHelper::GenerateHashInit(), v8::internal::ip, v8::internal::kRootRegister, v8::internal::lr, v8::internal::pc, v8::internal::r0, v8::internal::rax, v8::internal::rbx, and v8::internal::rcx.
Referenced by check().
void generate | ( | MacroAssembler * | masm, |
uint32_t | key | ||
) |
Definition at line 120 of file test-hashing.cc.
References __, v8::internal::eax, v8::internal::ebx, v8::internal::ip, v8::internal::kRootRegister, v8::internal::lr, v8::internal::pc, v8::internal::r0, v8::internal::rax, and v8::internal::rbx.
TEST | ( | StringHash | ) |
Definition at line 225 of file test-hashing.cc.
References check(), check_twochars(), Handle< T >::IsEmpty(), String::kMaxAsciiCharCode, and Context::New().
TEST | ( | NumberHash | ) |
Definition at line 243 of file test-hashing.cc.
References check(), Handle< T >::IsEmpty(), and Context::New().