chromium/v8/test/unittests/objects/elements-kind-unittest.cc

// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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;

//
// Helper functions.
//

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) {}

}  // namespace

//
// Tests
//

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) {}

}  // namespace internal
}  // namespace v8