#include "src/compiler/graph-trimmer.h"
#include "test/unittests/compiler/graph-unittest.h"
#include "testing/gmock-support.h"
ElementsAre;
UnorderedElementsAre;
namespace v8 {
namespace internal {
namespace compiler {
class GraphTrimmerTest : public GraphTest { … };
namespace {
const Operator kDead0(IrOpcode::kDead, Operator::kNoProperties, "Dead0", 0, 0,
1, 0, 0, 0);
const Operator kLive0(IrOpcode::kDead, Operator::kNoProperties, "Live0", 0, 0,
1, 0, 0, 1);
}
TEST_F(GraphTrimmerTest, Empty) { … }
TEST_F(GraphTrimmerTest, DeadUseOfStart) { … }
TEST_F(GraphTrimmerTest, DeadAndLiveUsesOfStart) { … }
TEST_F(GraphTrimmerTest, Roots) { … }
}
}
}