#include <utility>
#include "src/objects/objects-inl.h"
#include "src/objects/ordered-hash-table-inl.h"
#include "test/cctest/cctest.h"
namespace v8 {
namespace internal {
namespace test_orderedhashtable {
static Isolate* GetIsolateFrom(LocalContext* context) { … }
void CopyHashCode(DirectHandle<JSReceiver> from, DirectHandle<JSReceiver> to) { … }
void Verify(Isolate* isolate, DirectHandle<HeapObject> obj) { … }
template <typename T>
Handle<T> Add(Isolate* isolate, Handle<T> table, Handle<String> key1,
Handle<String> value1, PropertyDetails details);
template <>
Handle<OrderedHashMap> Add(Isolate* isolate, Handle<OrderedHashMap> table,
Handle<String> key, Handle<String> value,
PropertyDetails details) { … }
template <>
Handle<OrderedHashSet> Add(Isolate* isolate, Handle<OrderedHashSet> table,
Handle<String> key, Handle<String> value,
PropertyDetails details) { … }
template <>
Handle<OrderedNameDictionary> Add(Isolate* isolate,
Handle<OrderedNameDictionary> table,
Handle<String> key, Handle<String> value,
PropertyDetails details) { … }
template <typename T>
bool HasKey(Isolate* isolate, Handle<T> table, Tagged<Object> key) { … }
template <>
bool HasKey(Isolate* isolate, Handle<OrderedNameDictionary> table,
Tagged<Object> key) { … }
template <typename T>
Handle<T> Delete(Isolate* isolate, Handle<T> table, Tagged<Object> key) { … }
template <>
Handle<OrderedNameDictionary> Delete(Isolate* isolate,
Handle<OrderedNameDictionary> table,
Tagged<Object> key) { … }
TEST(SmallOrderedHashSetInsertion) { … }
TEST(SmallOrderedHashMapInsertion) { … }
TEST(SmallOrderedHashSetDuplicateHashCode) { … }
TEST(SmallOrderedHashMapDuplicateHashCode) { … }
TEST(SmallOrderedHashSetGrow) { … }
TEST(SmallOrderedHashMapGrow) { … }
TEST(OrderedHashTableInsertion) { … }
TEST(OrderedHashMapDuplicateHashCode) { … }
TEST(OrderedHashMapDeletion) { … }
TEST(SmallOrderedHashMapDeletion) { … }
TEST(OrderedHashMapDuplicateHashCodeDeletion) { … }
TEST(SmallOrderedHashMapDuplicateHashCodeDeletion) { … }
TEST(OrderedHashSetDeletion) { … }
TEST(SmallOrderedHashSetDeletion) { … }
TEST(OrderedHashSetDuplicateHashCodeDeletion) { … }
TEST(SmallOrderedHashSetDuplicateHashCodeDeletion) { … }
TEST(OrderedHashSetHandlerInsertion) { … }
TEST(OrderedHashMapHandlerInsertion) { … }
TEST(OrderedHashSetHandlerDeletion) { … }
TEST(OrderedHashMapHandlerDeletion) { … }
TEST(OrderedNameDictionaryInsertion) { … }
TEST(OrderedNameDictionaryFindEntry) { … }
TEST(OrderedNameDictionaryValueAtAndValueAtPut) { … }
TEST(OrderedNameDictionaryDetailsAtAndDetailsAtPut) { … }
TEST(SmallOrderedNameDictionaryInsertion) { … }
TEST(SmallOrderedNameDictionaryInsertionMax) { … }
TEST(SmallOrderedNameDictionaryFindEntry) { … }
TEST(SmallOrderedNameDictionaryValueAtAndValueAtPut) { … }
TEST(SmallOrderedNameDictionaryDetailsAtAndDetailsAtPut) { … }
TEST(SmallOrderedNameDictionarySetAndMigrateHash) { … }
TEST(OrderedNameDictionarySetAndMigrateHash) { … }
TEST(OrderedNameDictionaryHandlerInsertion) { … }
TEST(OrderedNameDictionaryHandlerDeletion) { … }
TEST(OrderedNameDictionarySetEntry) { … }
TEST(SmallOrderedNameDictionarySetEntry) { … }
TEST(OrderedNameDictionaryDeleteEntry) { … }
TEST(SmallOrderedNameDictionaryDeleteEntry) { … }
template <typename T>
void TestEmptyOrderedHashTable(Isolate* isolate, Factory* factory,
Handle<T> table) { … }
TEST(ZeroSizeOrderedHashMap) { … }
TEST(ZeroSizeOrderedHashSet) { … }
TEST(ZeroSizeOrderedNameDictionary) { … }
}
}
}