#include <optional>
#include "src/codegen/code-stub-assembler-inl.h"
#include "src/codegen/cpu-features.h"
#include "src/objects/objects-inl.h"
#include "src/objects/swiss-name-dictionary-inl.h"
#include "test/cctest/compiler/function-tester.h"
#include "test/cctest/test-swiss-name-dictionary-infra.h"
#include "test/cctest/test-swiss-name-dictionary-shared-tests.h"
#include "test/common/code-assembler-tester.h"
namespace v8 {
namespace internal {
namespace test_swiss_hash_table {
#include "src/codegen/define-code-stub-assembler-macros.inc"
#if V8_TARGET_ARCH_64_BIT || V8_TARGET_ARCH_IA32
class CSATestRunner { … };
CSATestRunner::CSATestRunner(Isolate* isolate, int initial_capacity,
KeyCache& keys)
: … { … }
void CSATestRunner::Add(Handle<Name> key, Handle<Object> value,
PropertyDetails details) { … }
void CSATestRunner::Allocate(Handle<Smi> capacity) { … }
InternalIndex CSATestRunner::FindEntry(Handle<Name> key) { … }
Handle<FixedArray> CSATestRunner::GetData(InternalIndex entry) { … }
void CSATestRunner::CheckCounts(std::optional<int> capacity,
std::optional<int> elements,
std::optional<int> deleted) { … }
void CSATestRunner::CheckEnumerationOrder(
const std::vector<std::string>& expected_keys) { … }
void CSATestRunner::Put(InternalIndex entry, Handle<Object> new_value,
PropertyDetails new_details) { … }
void CSATestRunner::Delete(InternalIndex entry) { … }
void CSATestRunner::RehashInplace() { … }
void CSATestRunner::Shrink() { … }
void CSATestRunner::CheckCopy() { … }
void CSATestRunner::VerifyHeap() { … }
void CSATestRunner::PrintTable() { … }
Handle<Code> CSATestRunner::create_find_entry(Isolate* isolate) { … }
Handle<Code> CSATestRunner::create_get_data(Isolate* isolate) { … }
Handle<Code> CSATestRunner::create_put(Isolate* isolate) { … }
Handle<Code> CSATestRunner::create_delete(Isolate* isolate) { … }
Handle<Code> CSATestRunner::create_add(Isolate* isolate) { … }
Handle<Code> CSATestRunner::create_allocate(Isolate* isolate) { … }
Handle<Code> CSATestRunner::create_get_counts(Isolate* isolate) { … }
Handle<Code> CSATestRunner::create_copy(Isolate* isolate) { … }
void CSATestRunner::CheckAgainstReference() { … }
const char kCSATestFileName[] = …;
SharedSwissTableTests<CSATestRunner, kCSATestFileName> execute_shared_tests_csa;
#endif
#include "src/codegen/undef-code-stub-assembler-macros.inc"
}
}
}