#include "src/compiler/node.h"
#include "src/compiler/operator.h"
#include "test/unittests/test-utils.h"
#include "testing/gmock/include/gmock/gmock.h"
Contains;
ElementsAre;
ElementsAreArray;
UnorderedElementsAre;
namespace v8 {
namespace internal {
namespace compiler {
namespace node_unittest {
class NodeTest : public TestWithZone { … };
const IrOpcode::Value kOpcode0 = …;
const IrOpcode::Value kOpcode1 = …;
const IrOpcode::Value kOpcode2 = …;
const Operator kOp0(kOpcode0, Operator::kNoProperties, "Op0", 0, 0, 0, 1, 0, 0);
const Operator kOp1(kOpcode1, Operator::kNoProperties, "Op1", 1, 0, 0, 1, 0, 0);
const Operator kOp2(kOpcode2, Operator::kNoProperties, "Op2", 2, 0, 0, 1, 0, 0);
TEST_F(NodeTest, New) { … }
TEST_F(NodeTest, NewWithInputs) { … }
TEST_F(NodeTest, InputIteratorEmpty) { … }
TEST_F(NodeTest, InputIteratorOne) { … }
TEST_F(NodeTest, InputIteratorTwo) { … }
TEST_F(NodeTest, UseIteratorEmpty) { … }
TEST_F(NodeTest, UseIteratorOne) { … }
TEST_F(NodeTest, UseIteratorTwo) { … }
TEST_F(NodeTest, OwnedBy) { … }
TEST_F(NodeTest, ReplaceUsesNone) { … }
TEST_F(NodeTest, AppendInput) { … }
TEST_F(NodeTest, TrimThenAppend) { … }
TEST_F(NodeTest, BigNodes) { … }
}
}
}
}