![]() |
v8
3.25.30(node0.11.13)
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 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) | |
| #define __ masm-> |
Definition at line 47 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 uint8_t > | string | ) |
Definition at line 187 of file test-hashing.cc.
References CALL_GENERATED_CODE, CHECK, v8::internal::code(), Code::ComputeFlags(), Isolate::factory(), generate(), Assembler::GetCode(), Isolate::heap(), CcTest::i_isolate(), Name::kEmptyHashField, Factory::NewCode(), Factory::NewStringFromOneByte(), and v8::internal::STUB.
Referenced by HGraphBuilder::BuildConstantMapCheck(), check(), check_twochars(), BASE_EMBEDDED< Visitor >::CollectInductionVariableData(), Analysis::EnsureAnalyzed(), MarkCompactMarkingVisitor::INLINE(), Instruction::InstructionAtOffset(), V8_FINAL< kOperandKind, kNumCachedOperands >::New(), JSObjectWalkVisitor< ContextObject >::StructureWalk(), TEST(), BoundsCheckBbData::UpdateLowerOffsets(), and BoundsCheckBbData::UpdateUpperOffsets().
| void check | ( | i::Vector< const char > | s | ) |
Definition at line 219 of file test-hashing.cc.
References check().
| void check | ( | uint32_t | key | ) |
Definition at line 224 of file test-hashing.cc.
References CALL_GENERATED_CODE, CHECK, v8::internal::code(), Code::ComputeFlags(), v8::internal::ComputeIntegerHash(), Isolate::factory(), generate(), Assembler::GetCode(), Heap::HashSeed(), Isolate::heap(), CcTest::i_isolate(), Factory::NewCode(), and v8::internal::STUB.
| void check_twochars | ( | uint8_t | a, |
| uint8_t | b | ||
| ) |
| void generate | ( | MacroAssembler * | masm, |
| i::Vector< const uint8_t > | string | ||
| ) |
Definition at line 50 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 138 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 266 of file test-hashing.cc.
References check(), check_twochars(), CcTest::isolate(), String::kMaxOneByteCharCode, and Context::New().
| TEST | ( | NumberHash | ) |
Definition at line 287 of file test-hashing.cc.
References check(), CcTest::isolate(), and Context::New().