chromium/v8/test/unittests/compiler/regalloc/live-range-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 "src/compiler/backend/register-allocator.h"
#include "test/unittests/test-utils.h"

// TODO(mtrofin): would we want to centralize this definition?
#ifdef DEBUG
#define V8_ASSERT_DEBUG_DEATH(statement, regex)
#define DISABLE_IN_RELEASE(Name)

#else
#define V8_ASSERT_DEBUG_DEATH
#define DISABLE_IN_RELEASE
#endif  // DEBUG

namespace v8 {
namespace internal {
namespace compiler {

// Utility offering shorthand syntax for building up a range by providing its ID
// and pairs (start, end) specifying intervals. Circumvents current incomplete
// support for C++ features such as instantiation lists, on OS X and Android.
class TestRangeBuilder {};

class LiveRangeUnitTest : public TestWithZone {};

TEST_F(LiveRangeUnitTest, InvalidConstruction) {}

TEST_F(LiveRangeUnitTest, SplitInvalidStart) {}

TEST_F(LiveRangeUnitTest, DISABLE_IN_RELEASE(InvalidSplitEnd)) {}

TEST_F(LiveRangeUnitTest, DISABLE_IN_RELEASE(SplitInvalidPreStart)) {}

TEST_F(LiveRangeUnitTest, DISABLE_IN_RELEASE(SplitInvalidPostEnd)) {}

TEST_F(LiveRangeUnitTest, SplitSingleIntervalNoUsePositions) {}

TEST_F(LiveRangeUnitTest, SplitManyIntervalNoUsePositionsBetween) {}

TEST_F(LiveRangeUnitTest, SplitManyIntervalNoUsePositionsFront) {}

TEST_F(LiveRangeUnitTest, SplitManyIntervalNoUsePositionsAfter) {}

TEST_F(LiveRangeUnitTest, SplitSingleIntervalUsePositions) {}

TEST_F(LiveRangeUnitTest, SplitSingleIntervalUsePositionsAtPos) {}

TEST_F(LiveRangeUnitTest, SplitManyIntervalUsePositionsBetween) {}

TEST_F(LiveRangeUnitTest, SplitManyIntervalUsePositionsAtInterval) {}

TEST_F(LiveRangeUnitTest, SplitManyIntervalUsePositionsFront) {}

TEST_F(LiveRangeUnitTest, SplitManyIntervalUsePositionsAfter) {}

class DoubleEndedSplitVectorTest : public TestWithZone {};

TEST_F(DoubleEndedSplitVectorTest, PushFront) {}

TEST_F(DoubleEndedSplitVectorTest, PopFront) {}

TEST_F(DoubleEndedSplitVectorTest, Insert) {}

TEST_F(DoubleEndedSplitVectorTest, InsertFront) {}

TEST_F(DoubleEndedSplitVectorTest, SplitAtBegin) {}

TEST_F(DoubleEndedSplitVectorTest, SplitAtEnd) {}

TEST_F(DoubleEndedSplitVectorTest, SplitAtMiddle) {}

TEST_F(DoubleEndedSplitVectorTest, AppendCheap) {}

TEST_F(DoubleEndedSplitVectorTest, AppendGeneralCase) {}

}  // namespace compiler
}  // namespace internal
}  // namespace v8