Index: test/unittests/compiler/js-builtin-reducer-unittest.cc |
diff --git a/test/unittests/compiler/js-builtin-reducer-unittest.cc b/test/unittests/compiler/js-builtin-reducer-unittest.cc |
index ee9f960057cac01127b3a8500f4a40ab142759cf..c98bc6cdffdc9f95ea28a860f722883d323117b4 100644 |
--- a/test/unittests/compiler/js-builtin-reducer-unittest.cc |
+++ b/test/unittests/compiler/js-builtin-reducer-unittest.cc |
@@ -62,58 +62,6 @@ Type* const kNumberTypes[] = { |
// ----------------------------------------------------------------------------- |
-// Math.abs |
- |
- |
-TEST_F(JSBuiltinReducerTest, MathAbs) { |
- Handle<JSFunction> f = MathFunction("abs"); |
- |
- TRACED_FOREACH(Type*, t0, kNumberTypes) { |
- Node* p0 = Parameter(t0, 0); |
- Node* fun = HeapConstant(Unique<HeapObject>::CreateUninitialized(f)); |
- Node* call = |
- graph()->NewNode(javascript()->CallFunction(3, NO_CALL_FUNCTION_FLAGS), |
- fun, UndefinedConstant(), p0); |
- Reduction r = Reduce(call); |
- |
- if (t0->Is(Type::Unsigned32())) { |
- ASSERT_TRUE(r.Changed()); |
- EXPECT_THAT(r.replacement(), p0); |
- } else { |
- Capture<Node*> branch; |
- ASSERT_TRUE(r.Changed()); |
- EXPECT_THAT( |
- r.replacement(), |
- IsSelect(kMachNone, |
- IsNumberLessThan(IsNumberConstant(BitEq(0.0)), p0), p0, |
- IsNumberSubtract(IsNumberConstant(BitEq(0.0)), p0))); |
- } |
- } |
-} |
- |
- |
-// ----------------------------------------------------------------------------- |
-// Math.sqrt |
- |
- |
-TEST_F(JSBuiltinReducerTest, MathSqrt) { |
- Handle<JSFunction> f = MathFunction("sqrt"); |
- |
- TRACED_FOREACH(Type*, t0, kNumberTypes) { |
- Node* p0 = Parameter(t0, 0); |
- Node* fun = HeapConstant(Unique<HeapObject>::CreateUninitialized(f)); |
- Node* call = |
- graph()->NewNode(javascript()->CallFunction(3, NO_CALL_FUNCTION_FLAGS), |
- fun, UndefinedConstant(), p0); |
- Reduction r = Reduce(call); |
- |
- ASSERT_TRUE(r.Changed()); |
- EXPECT_THAT(r.replacement(), IsFloat64Sqrt(p0)); |
- } |
-} |
- |
- |
-// ----------------------------------------------------------------------------- |
// Math.max |