v8/test/compiler-unittests/common-operator-unittest.h
bmeurer@chromium.org d32fa64d33 Refactor ChangeLowering class to avoid template specialization.
Also refactor the unit tests and add support to easily
match DAGs using CaptureEq() matcher.

TEST=compiler-unittests
BUG=v8:3489
LOG=n
R=jarin@chromium.org

Review URL: https://codereview.chromium.org/480863002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23140 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-08-18 06:54:07 +00:00

32 lines
804 B
C++

// Copyright 2014 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.
#ifndef V8_COMPILER_UNITTESTS_COMMON_OPERATOR_UNITTEST_H_
#define V8_COMPILER_UNITTESTS_COMMON_OPERATOR_UNITTEST_H_
#include "src/compiler/common-operator.h"
#include "test/compiler-unittests/compiler-unittests.h"
namespace v8 {
namespace internal {
namespace compiler {
class CommonOperatorTest : public CompilerTest {
public:
CommonOperatorTest();
virtual ~CommonOperatorTest();
protected:
CommonOperatorBuilder* common() { return &common_; }
private:
CommonOperatorBuilder common_;
};
} // namespace compiler
} // namespace internal
} // namespace v8
#endif // V8_COMPILER_UNITTESTS_COMMON_OPERATOR_UNITTEST_H_