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

Side by Side Diff: test/cctest/compiler/test-control-reducer.cc

Issue 883613006: [turbofan] Cleanup the NodeProperties. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/v8.h" 5 #include "src/v8.h"
6 #include "test/cctest/cctest.h" 6 #include "test/cctest/cctest.h"
7 7
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/compiler/common-operator.h" 9 #include "src/compiler/common-operator.h"
10 #include "src/compiler/control-reducer.h" 10 #include "src/compiler/control-reducer.h"
11 #include "src/compiler/graph-inl.h" 11 #include "src/compiler/graph-inl.h"
12 #include "src/compiler/js-graph.h" 12 #include "src/compiler/js-graph.h"
13 #include "src/compiler/node-properties-inl.h" 13 #include "src/compiler/node-properties.h"
14 14
15 using namespace v8::internal; 15 using namespace v8::internal;
16 using namespace v8::internal::compiler; 16 using namespace v8::internal::compiler;
17 17
18 static const size_t kNumLeafs = 4; 18 static const size_t kNumLeafs = 4;
19 19
20 enum Decision { kFalse, kUnknown, kTrue }; 20 enum Decision { kFalse, kUnknown, kTrue };
21 21
22 // TODO(titzer): convert this whole file into unit tests. 22 // TODO(titzer): convert this whole file into unit tests.
23 23
(...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after
1506 1506
1507 Node* ret = R.Return(d1.phi, R.start, d1.merge); 1507 Node* ret = R.Return(d1.phi, R.start, d1.merge);
1508 1508
1509 R.ReduceGraph(); // d1 gets folded true. 1509 R.ReduceGraph(); // d1 gets folded true.
1510 1510
1511 CheckInputs(ret, y2, R.start, R.start); 1511 CheckInputs(ret, y2, R.start, R.start);
1512 CheckDeadDiamond(d1); 1512 CheckDeadDiamond(d1);
1513 CheckDeadDiamond(d2); 1513 CheckDeadDiamond(d2);
1514 CheckDeadDiamond(d3); 1514 CheckDeadDiamond(d3);
1515 } 1515 }
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-changes-lowering.cc ('k') | test/cctest/compiler/test-js-constant-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698