#include <stdlib.h>
#include <utility>
#include "src/codegen/compilation-cache.h"
#include "src/execution/execution.h"
#include "src/handles/global-handles.h"
#include "src/heap/factory.h"
#include "src/ic/stub-cache.h"
#include "src/init/v8.h"
#include "src/objects/js-array-inl.h"
#include "src/objects/objects-inl.h"
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace v8 {
namespace internal {
using ElementsKindTest = TestWithContext;
namespace {
template <typename T, typename M>
bool EQUALS(Isolate* isolate, Handle<T> left, Handle<M> right) { … }
template <typename T, typename M>
bool EQUALS(Isolate* isolate, Handle<T> left, M right) { … }
template <typename T, typename M>
bool EQUALS(Isolate* isolate, T left, Handle<M> right) { … }
bool ElementsKindIsHoleyElementsKindForRead(ElementsKind kind) { … }
bool ElementsKindIsHoleyElementsKind(ElementsKind kind) { … }
bool ElementsKindIsFastPackedElementsKind(ElementsKind kind) { … }
}
TEST_F(ElementsKindTest, SystemPointerElementsKind) { … }
TEST_F(ElementsKindTest, JSObjectAddingProperties) { … }
TEST_F(ElementsKindTest, JSObjectInObjectAddingProperties) { … }
TEST_F(ElementsKindTest, JSObjectAddingElements) { … }
TEST_F(ElementsKindTest, JSArrayAddingProperties) { … }
TEST_F(ElementsKindTest, JSArrayAddingElements) { … }
TEST_F(ElementsKindTest, JSArrayAddingElementsGeneralizingiFastSmiElements) { … }
TEST_F(ElementsKindTest, JSArrayAddingElementsGeneralizingFastElements) { … }
TEST_F(ElementsKindTest, JSArrayAddingElementsGeneralizingiFastDoubleElements) { … }
TEST_F(ElementsKindTest, IsHoleyElementsKindForRead) { … }
TEST_F(ElementsKindTest, IsHoleyElementsKind) { … }
TEST_F(ElementsKindTest, IsFastPackedElementsKind) { … }
}
}