#include "src/compiler/constant-folding-reducer.h"
#include "src/compiler/compilation-dependencies.h"
#include "src/compiler/js-graph.h"
#include "src/compiler/js-operator.h"
#include "src/compiler/machine-operator.h"
#include "src/execution/isolate-inl.h"
#include "test/unittests/compiler/graph-unittest.h"
#include "test/unittests/compiler/node-test-utils.h"
#include "testing/gmock-support.h"
namespace v8 {
namespace internal {
namespace compiler {
namespace constant_folding_reducer_unittest {
IsNaN;
namespace {
const double kFloat64Values[] = …;
const double kIntegerValues[] = …;
}
class ConstantFoldingReducerTest : public TypedGraphTest { … };
TEST_F(ConstantFoldingReducerTest, ParameterWithMinusZero) { … }
TEST_F(ConstantFoldingReducerTest, ParameterWithNull) { … }
TEST_F(ConstantFoldingReducerTest, ParameterWithNaN) { … }
TEST_F(ConstantFoldingReducerTest, ParameterWithPlainNumber) { … }
TEST_F(ConstantFoldingReducerTest, ParameterWithUndefined) { … }
TEST_F(ConstantFoldingReducerTest, ToBooleanWithFalsish) { … }
TEST_F(ConstantFoldingReducerTest, ToBooleanWithTruish) { … }
TEST_F(ConstantFoldingReducerTest, ToBooleanWithNonZeroPlainNumber) { … }
}
}
}
}