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

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

Issue 816453005: [turbofan] Cleanup use of virtual, OVERRIDE, FINAL. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 }; 59 };
60 60
61 61
62 template <typename T> 62 template <typename T>
63 class MachineOperatorReducerTestWithParam 63 class MachineOperatorReducerTestWithParam
64 : public MachineOperatorReducerTest, 64 : public MachineOperatorReducerTest,
65 public ::testing::WithParamInterface<T> { 65 public ::testing::WithParamInterface<T> {
66 public: 66 public:
67 explicit MachineOperatorReducerTestWithParam(int num_parameters = 2) 67 explicit MachineOperatorReducerTestWithParam(int num_parameters = 2)
68 : MachineOperatorReducerTest(num_parameters) {} 68 : MachineOperatorReducerTest(num_parameters) {}
69 virtual ~MachineOperatorReducerTestWithParam() {} 69 ~MachineOperatorReducerTestWithParam() OVERRIDE {}
70 }; 70 };
71 71
72 72
73 namespace { 73 namespace {
74 74
75 const float kFloat32Values[] = { 75 const float kFloat32Values[] = {
76 -std::numeric_limits<float>::infinity(), -2.70497e+38f, -1.4698e+37f, 76 -std::numeric_limits<float>::infinity(), -2.70497e+38f, -1.4698e+37f,
77 -1.22813e+35f, -1.20555e+35f, -1.34584e+34f, 77 -1.22813e+35f, -1.20555e+35f, -1.34584e+34f,
78 -1.0079e+32f, -6.49364e+26f, -3.06077e+25f, 78 -1.0079e+32f, -6.49364e+26f, -3.06077e+25f,
79 -1.46821e+25f, -1.17658e+23f, -1.9617e+22f, 79 -1.46821e+25f, -1.17658e+23f, -1.9617e+22f,
(...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 Reduction r = Reduce(node); 1370 Reduction r = Reduce(node);
1371 ASSERT_TRUE(r.Changed()); 1371 ASSERT_TRUE(r.Changed());
1372 EXPECT_THAT(r.replacement(), 1372 EXPECT_THAT(r.replacement(),
1373 IsStore(rep, base, index, value, effect, control)); 1373 IsStore(rep, base, index, value, effect, control));
1374 } 1374 }
1375 } 1375 }
1376 1376
1377 } // namespace compiler 1377 } // namespace compiler
1378 } // namespace internal 1378 } // namespace internal
1379 } // namespace v8 1379 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698