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

Side by Side Diff: test/unittests/compiler/node-matchers-unittest.cc

Issue 1371083003: [presubmit] Enable readability/namespace linter checking. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 years, 2 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
« no previous file with comments | « test/cctest/types-fuzz.h ('k') | test/unittests/compiler/register-allocator-unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/compiler/common-operator.h" 5 #include "src/compiler/common-operator.h"
6 #include "src/compiler/graph.h" 6 #include "src/compiler/graph.h"
7 #include "src/compiler/machine-operator.h" 7 #include "src/compiler/machine-operator.h"
8 #include "src/compiler/node.h" 8 #include "src/compiler/node.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
(...skipping 20 matching lines...) Expand all
31 31
32 template <class Matcher> 32 template <class Matcher>
33 void CheckBaseWithIndexAndDisplacement(Matcher* matcher, Node* index, int scale, 33 void CheckBaseWithIndexAndDisplacement(Matcher* matcher, Node* index, int scale,
34 Node* base, Node* displacement) { 34 Node* base, Node* displacement) {
35 EXPECT_TRUE(matcher->matches()); 35 EXPECT_TRUE(matcher->matches());
36 EXPECT_EQ(index, matcher->index()); 36 EXPECT_EQ(index, matcher->index());
37 EXPECT_EQ(scale, matcher->scale()); 37 EXPECT_EQ(scale, matcher->scale());
38 EXPECT_EQ(base, matcher->base()); 38 EXPECT_EQ(base, matcher->base());
39 EXPECT_EQ(displacement, matcher->displacement()); 39 EXPECT_EQ(displacement, matcher->displacement());
40 } 40 }
41 }; 41
42 } // namespace
42 43
43 44
44 TEST_F(NodeMatcherTest, ScaledWithOffset32Matcher) { 45 TEST_F(NodeMatcherTest, ScaledWithOffset32Matcher) {
45 graph()->SetStart(graph()->NewNode(common()->Start(0))); 46 graph()->SetStart(graph()->NewNode(common()->Start(0)));
46 47
47 const Operator* d0_op = common()->Int32Constant(0); 48 const Operator* d0_op = common()->Int32Constant(0);
48 Node* d0 = graph()->NewNode(d0_op); 49 Node* d0 = graph()->NewNode(d0_op);
49 USE(d0); 50 USE(d0);
50 const Operator* d1_op = common()->Int32Constant(1); 51 const Operator* d1_op = common()->Int32Constant(1);
51 Node* d1 = graph()->NewNode(d1_op); 52 Node* d1 = graph()->NewNode(d1_op);
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 Node* merge = graph()->NewNode(common()->Merge(2), if_true, if_false); 943 Node* merge = graph()->NewNode(common()->Merge(2), if_true, if_false);
943 DiamondMatcher matcher(merge); 944 DiamondMatcher matcher(merge);
944 EXPECT_FALSE(matcher.Matched()); 945 EXPECT_FALSE(matcher.Matched());
945 } 946 }
946 } 947 }
947 948
948 949
949 } // namespace compiler 950 } // namespace compiler
950 } // namespace internal 951 } // namespace internal
951 } // namespace v8 952 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/types-fuzz.h ('k') | test/unittests/compiler/register-allocator-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698