#include "src/compiler/load-elimination.h"
#include "src/compiler/access-builder.h"
#include "src/compiler/js-graph.h"
#include "src/compiler/node.h"
#include "src/compiler/simplified-operator.h"
#include "test/unittests/compiler/graph-reducer-unittest.h"
#include "test/unittests/compiler/graph-unittest.h"
#include "test/unittests/compiler/node-test-utils.h"
_;
StrictMock;
namespace v8 {
namespace internal {
namespace compiler {
class LoadEliminationTest : public TypedGraphTest { … };
TEST_F(LoadEliminationTest, LoadElementAndLoadElement) { … }
TEST_F(LoadEliminationTest, StoreElementAndLoadElement) { … }
TEST_F(LoadEliminationTest, StoreElementAndStoreFieldAndLoadElement) { … }
TEST_F(LoadEliminationTest, LoadFieldAndLoadField) { … }
TEST_F(LoadEliminationTest, StoreFieldAndLoadField) { … }
TEST_F(LoadEliminationTest, StoreFieldAndKillFields) { … }
TEST_F(LoadEliminationTest, StoreFieldAndStoreElementAndLoadField) { … }
TEST_F(LoadEliminationTest, LoadElementOnTrueBranchOfDiamond) { … }
TEST_F(LoadEliminationTest, LoadElementOnFalseBranchOfDiamond) { … }
TEST_F(LoadEliminationTest, LoadFieldOnFalseBranchOfDiamond) { … }
TEST_F(LoadEliminationTest, LoadFieldOnTrueBranchOfDiamond) { … }
TEST_F(LoadEliminationTest, LoadFieldWithTypeMismatch) { … }
TEST_F(LoadEliminationTest, LoadElementWithTypeMismatch) { … }
TEST_F(LoadEliminationTest, AliasAnalysisForFinishRegion) { … }
}
}
}