#include "src/compiler/typed-optimization.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"
IsNaN;
namespace v8 {
namespace internal {
namespace compiler {
namespace typed_optimization_unittest {
class TypedOptimizationTest : public TypedGraphTest { … };
TEST_F(TypedOptimizationTest, ToBooleanWithBoolean) { … }
TEST_F(TypedOptimizationTest, ToBooleanWithOrderedNumber) { … }
TEST_F(TypedOptimizationTest, ToBooleanWithNumber) { … }
TEST_F(TypedOptimizationTest, ToBooleanWithDetectableReceiverOrNull) { … }
TEST_F(TypedOptimizationTest, ToBooleanWithReceiverOrNullOrUndefined) { … }
TEST_F(TypedOptimizationTest, ToBooleanWithString) { … }
TEST_F(TypedOptimizationTest, ToBooleanWithAny) { … }
TEST_F(TypedOptimizationTest, ReferenceEqualWithBooleanTrueConstant) { … }
TEST_F(TypedOptimizationTest, ReferenceEqualWithBooleanFalseConstant) { … }
}
}
}
}