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

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

Issue 838783002: [turbofan] Cleanup Graph and related classes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Parameter pack causes compile errors. Created 5 years, 11 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/compiler/graph.h" 5 #include "src/compiler/graph.h"
6 #include "src/compiler/graph-reducer.h" 6 #include "src/compiler/graph-reducer.h"
7 #include "src/compiler/node.h"
7 #include "src/compiler/operator.h" 8 #include "src/compiler/operator.h"
8 #include "test/unittests/test-utils.h" 9 #include "test/unittests/test-utils.h"
9 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
10 11
11 using testing::_; 12 using testing::_;
12 using testing::DefaultValue; 13 using testing::DefaultValue;
13 using testing::Return; 14 using testing::Return;
14 using testing::Sequence; 15 using testing::Sequence;
15 using testing::StrictMock; 16 using testing::StrictMock;
16 17
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 EXPECT_CALL(r3, Reduce(node0)).InSequence(s1, s2, s3).WillOnce( 115 EXPECT_CALL(r3, Reduce(node0)).InSequence(s1, s2, s3).WillOnce(
115 Return(Reducer::Changed(node0))); 116 Return(Reducer::Changed(node0)));
116 EXPECT_CALL(r1, Reduce(node0)).InSequence(s1); 117 EXPECT_CALL(r1, Reduce(node0)).InSequence(s1);
117 EXPECT_CALL(r2, Reduce(node0)).InSequence(s2); 118 EXPECT_CALL(r2, Reduce(node0)).InSequence(s2);
118 ReduceNode(node0, &r1, &r2, &r3); 119 ReduceNode(node0, &r1, &r2, &r3);
119 } 120 }
120 121
121 } // namespace compiler 122 } // namespace compiler
122 } // namespace internal 123 } // namespace internal
123 } // namespace v8 124 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698