#include <cctype>
#include "src/codegen/tick-counter.h"
#include "src/compiler/compilation-dependencies.h"
#include "src/compiler/feedback-source.h"
#include "src/compiler/js-call-reducer.h"
#include "src/compiler/js-graph.h"
#include "src/compiler/simplified-operator.h"
#include "src/execution/isolate.h"
#include "src/execution/protectors.h"
#include "src/heap/factory.h"
#include "src/objects/feedback-vector.h"
#include "test/unittests/compiler/graph-unittest.h"
#include "test/unittests/compiler/node-test-utils.h"
namespace v8 {
namespace internal {
namespace compiler {
class JSCallReducerTest : public TypedGraphTest { … };
TEST_F(JSCallReducerTest, PromiseConstructorNoArgs) { … }
TEST_F(JSCallReducerTest, PromiseConstructorSubclass) { … }
TEST_F(JSCallReducerTest, PromiseConstructorBasic) { … }
TEST_F(JSCallReducerTest, PromiseConstructorWithHook) { … }
namespace {
const char* kMathUnaries[] = …;
}
TEST_F(JSCallReducerTest, MathUnaryWithNumber) { … }
namespace {
const char* kMathBinaries[] = …;
}
TEST_F(JSCallReducerTest, MathBinaryWithNumber) { … }
TEST_F(JSCallReducerTest, MathClz32WithUnsigned32) { … }
TEST_F(JSCallReducerTest, MathClz32WithUnsigned32NoArg) { … }
TEST_F(JSCallReducerTest, MathImulWithUnsigned32) { … }
TEST_F(JSCallReducerTest, MathMinWithNoArguments) { … }
TEST_F(JSCallReducerTest, MathMinWithNumber) { … }
TEST_F(JSCallReducerTest, MathMinWithTwoArguments) { … }
TEST_F(JSCallReducerTest, MathMaxWithNoArguments) { … }
TEST_F(JSCallReducerTest, MathMaxWithNumber) { … }
TEST_F(JSCallReducerTest, MathMaxWithTwoArguments) { … }
TEST_F(JSCallReducerTest, StringFromSingleCharCodeWithNumber) { … }
TEST_F(JSCallReducerTest, StringFromSingleCharCodeWithPlainPrimitive) { … }
TEST_F(JSCallReducerTest, NumberIsFinite) { … }
TEST_F(JSCallReducerTest, NumberIsIntegerWithNumber) { … }
TEST_F(JSCallReducerTest, NumberIsNaNWithNumber) { … }
TEST_F(JSCallReducerTest, NumberIsSafeIntegerWithIntegral32) { … }
TEST_F(JSCallReducerTest, GlobalIsFiniteWithNumber) { … }
TEST_F(JSCallReducerTest, GlobalIsNaN) { … }
TEST_F(JSCallReducerTest, NumberParseInt) { … }
}
}
}