| Index: test/unittests/compiler/js-typed-lowering-unittest.cc
|
| diff --git a/test/unittests/compiler/js-typed-lowering-unittest.cc b/test/unittests/compiler/js-typed-lowering-unittest.cc
|
| index 2c03d885c6b6c50657e7f09eaa9aa15692ad4a5f..d0c465fd34c4f04eab48e4eb65a1919593c46901 100644
|
| --- a/test/unittests/compiler/js-typed-lowering-unittest.cc
|
| +++ b/test/unittests/compiler/js-typed-lowering-unittest.cc
|
| @@ -197,6 +197,23 @@ TEST_F(JSTypedLoweringTest, JSToBooleanWithSelect) {
|
|
|
|
|
| // -----------------------------------------------------------------------------
|
| +// JSToNumber
|
| +
|
| +
|
| +TEST_F(JSTypedLoweringTest, JSToNumberWithPlainPrimitive) {
|
| + Node* const input = Parameter(Type::PlainPrimitive(), 0);
|
| + Node* const context = Parameter(Type::Any(), 1);
|
| + Node* const effect = graph()->start();
|
| + Node* const control = graph()->start();
|
| + Reduction r = Reduce(graph()->NewNode(javascript()->ToNumber(), input,
|
| + context, effect, control));
|
| + ASSERT_TRUE(r.Changed());
|
| + EXPECT_THAT(r.replacement(), IsToNumber(input, IsNumberConstant(0),
|
| + graph()->start(), control));
|
| +}
|
| +
|
| +
|
| +// -----------------------------------------------------------------------------
|
| // JSStrictEqual
|
|
|
|
|
|
|