Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: test/unittests/compiler/machine-operator-reducer-unittest.cc

Issue 1088993003: Replace OVERRIDE->override and FINAL->final since we now require C++11. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/base/bits.h" 5 #include "src/base/bits.h"
6 #include "src/base/division-by-constant.h" 6 #include "src/base/division-by-constant.h"
7 #include "src/compiler/js-graph.h" 7 #include "src/compiler/js-graph.h"
8 #include "src/compiler/machine-operator-reducer.h" 8 #include "src/compiler/machine-operator-reducer.h"
9 #include "src/compiler/typer.h" 9 #include "src/compiler/typer.h"
10 #include "test/unittests/compiler/graph-unittest.h" 10 #include "test/unittests/compiler/graph-unittest.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 }; 60 };
61 61
62 62
63 template <typename T> 63 template <typename T>
64 class MachineOperatorReducerTestWithParam 64 class MachineOperatorReducerTestWithParam
65 : public MachineOperatorReducerTest, 65 : public MachineOperatorReducerTest,
66 public ::testing::WithParamInterface<T> { 66 public ::testing::WithParamInterface<T> {
67 public: 67 public:
68 explicit MachineOperatorReducerTestWithParam(int num_parameters = 2) 68 explicit MachineOperatorReducerTestWithParam(int num_parameters = 2)
69 : MachineOperatorReducerTest(num_parameters) {} 69 : MachineOperatorReducerTest(num_parameters) {}
70 ~MachineOperatorReducerTestWithParam() OVERRIDE {} 70 ~MachineOperatorReducerTestWithParam() override {}
71 }; 71 };
72 72
73 73
74 namespace { 74 namespace {
75 75
76 const float kFloat32Values[] = { 76 const float kFloat32Values[] = {
77 -std::numeric_limits<float>::infinity(), -2.70497e+38f, -1.4698e+37f, 77 -std::numeric_limits<float>::infinity(), -2.70497e+38f, -1.4698e+37f,
78 -1.22813e+35f, -1.20555e+35f, -1.34584e+34f, 78 -1.22813e+35f, -1.20555e+35f, -1.34584e+34f,
79 -1.0079e+32f, -6.49364e+26f, -3.06077e+25f, 79 -1.0079e+32f, -6.49364e+26f, -3.06077e+25f,
80 -1.46821e+25f, -1.17658e+23f, -1.9617e+22f, 80 -1.46821e+25f, -1.17658e+23f, -1.9617e+22f,
(...skipping 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1566 Reduction r = Reduce(node); 1566 Reduction r = Reduce(node);
1567 ASSERT_TRUE(r.Changed()); 1567 ASSERT_TRUE(r.Changed());
1568 EXPECT_THAT(r.replacement(), 1568 EXPECT_THAT(r.replacement(),
1569 IsStore(rep, base, index, value, effect, control)); 1569 IsStore(rep, base, index, value, effect, control));
1570 } 1570 }
1571 } 1571 }
1572 1572
1573 } // namespace compiler 1573 } // namespace compiler
1574 } // namespace internal 1574 } // namespace internal
1575 } // namespace v8 1575 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/compiler/loop-peeling-unittest.cc ('k') | test/unittests/compiler/node-matchers-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698