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

Side by Side Diff: test/unittests/compiler/value-numbering-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
« no previous file with comments | « test/unittests/compiler/graph-reducer-unittest.cc ('k') | tools/gyp/v8.gyp » ('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 <limits> 5 #include <limits>
6 6
7 #include "src/compiler/graph.h" 7 #include "src/compiler/graph.h"
8 #include "src/compiler/node.h"
9 #include "src/compiler/operator.h"
8 #include "src/compiler/value-numbering-reducer.h" 10 #include "src/compiler/value-numbering-reducer.h"
9 #include "test/unittests/test-utils.h" 11 #include "test/unittests/test-utils.h"
10 12
11 namespace v8 { 13 namespace v8 {
12 namespace internal { 14 namespace internal {
13 namespace compiler { 15 namespace compiler {
14 16
15 struct TestOperator : public Operator { 17 struct TestOperator : public Operator {
16 TestOperator(Operator::Opcode opcode, Operator::Properties properties, 18 TestOperator(Operator::Opcode opcode, Operator::Properties properties,
17 size_t value_in, size_t value_out) 19 size_t value_in, size_t value_out)
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 123
122 TEST_F(ValueNumberingReducerTest, WontReplaceNodeWithItself) { 124 TEST_F(ValueNumberingReducerTest, WontReplaceNodeWithItself) {
123 Node* n = graph()->NewNode(&kOp0); 125 Node* n = graph()->NewNode(&kOp0);
124 EXPECT_FALSE(Reduce(n).Changed()); 126 EXPECT_FALSE(Reduce(n).Changed());
125 EXPECT_FALSE(Reduce(n).Changed()); 127 EXPECT_FALSE(Reduce(n).Changed());
126 } 128 }
127 129
128 } // namespace compiler 130 } // namespace compiler
129 } // namespace internal 131 } // namespace internal
130 } // namespace v8 132 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/compiler/graph-reducer-unittest.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698