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

Side by Side Diff: test/unittests/compiler/js-intrinsic-lowering-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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/compiler/access-builder.h" 5 #include "src/compiler/access-builder.h"
6 #include "src/compiler/diamond.h" 6 #include "src/compiler/diamond.h"
7 #include "src/compiler/js-graph.h" 7 #include "src/compiler/js-graph.h"
8 #include "src/compiler/js-intrinsic-lowering.h" 8 #include "src/compiler/js-intrinsic-lowering.h"
9 #include "src/compiler/js-operator.h" 9 #include "src/compiler/js-operator.h"
10 #include "test/unittests/compiler/graph-unittest.h" 10 #include "test/unittests/compiler/graph-unittest.h"
11 #include "test/unittests/compiler/node-test-utils.h" 11 #include "test/unittests/compiler/node-test-utils.h"
12 #include "testing/gmock-support.h" 12 #include "testing/gmock-support.h"
13 13
14 14
15 using testing::_; 15 using testing::_;
16 using testing::AllOf; 16 using testing::AllOf;
17 using testing::BitEq; 17 using testing::BitEq;
18 using testing::Capture; 18 using testing::Capture;
19 using testing::CaptureEq; 19 using testing::CaptureEq;
20 20
21 21
22 namespace v8 { 22 namespace v8 {
23 namespace internal { 23 namespace internal {
24 namespace compiler { 24 namespace compiler {
25 25
26 class JSIntrinsicLoweringTest : public GraphTest { 26 class JSIntrinsicLoweringTest : public GraphTest {
27 public: 27 public:
28 JSIntrinsicLoweringTest() : GraphTest(3), javascript_(zone()) {} 28 JSIntrinsicLoweringTest() : GraphTest(3), javascript_(zone()) {}
29 ~JSIntrinsicLoweringTest() OVERRIDE {} 29 ~JSIntrinsicLoweringTest() override {}
30 30
31 protected: 31 protected:
32 Reduction Reduce(Node* node, MachineOperatorBuilder::Flags flags = 32 Reduction Reduce(Node* node, MachineOperatorBuilder::Flags flags =
33 MachineOperatorBuilder::kNoFlags) { 33 MachineOperatorBuilder::kNoFlags) {
34 MachineOperatorBuilder machine(zone(), kMachPtr, flags); 34 MachineOperatorBuilder machine(zone(), kMachPtr, flags);
35 JSGraph jsgraph(isolate(), graph(), common(), javascript(), &machine); 35 JSGraph jsgraph(isolate(), graph(), common(), javascript(), &machine);
36 JSIntrinsicLowering reducer(&jsgraph); 36 JSIntrinsicLowering reducer(&jsgraph);
37 return reducer.Reduce(node); 37 return reducer.Reduce(node);
38 } 38 }
39 39
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 CaptureEq(&if_false0)))))), 401 CaptureEq(&if_false0)))))),
402 IsMerge( 402 IsMerge(
403 IsIfTrue(AllOf(CaptureEq(&branch0), 403 IsIfTrue(AllOf(CaptureEq(&branch0),
404 IsBranch(IsObjectIsSmi(input), control))), 404 IsBranch(IsObjectIsSmi(input), control))),
405 AllOf(CaptureEq(&if_false0), IsIfFalse(CaptureEq(&branch0)))))); 405 AllOf(CaptureEq(&if_false0), IsIfFalse(CaptureEq(&branch0))))));
406 } 406 }
407 407
408 } // namespace compiler 408 } // namespace compiler
409 } // namespace internal 409 } // namespace internal
410 } // namespace v8 410 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/compiler/instruction-selector-unittest.h ('k') | test/unittests/compiler/js-typed-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698