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

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

Issue 1193833002: [turbofan] Proper dead code elimination as regular reducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Renamed DeadControl to Dead. Created 5 years, 6 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/node-test-utils.h ('k') | test/unittests/unittests.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 "test/unittests/compiler/node-test-utils.h" 5 #include "test/unittests/compiler/node-test-utils.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/compiler/js-operator.h" 10 #include "src/compiler/js-operator.h"
(...skipping 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1371 "input", input_matcher_, listener)); 1371 "input", input_matcher_, listener));
1372 } 1372 }
1373 1373
1374 private: 1374 private:
1375 const Matcher<Node*> input_matcher_; 1375 const Matcher<Node*> input_matcher_;
1376 }; 1376 };
1377 1377
1378 } // namespace 1378 } // namespace
1379 1379
1380 1380
1381 Matcher<Node*> IsDead() {
1382 return MakeMatcher(new NodeMatcher(IrOpcode::kDead));
1383 }
1384
1385
1381 Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher) { 1386 Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher) {
1382 return MakeMatcher(new IsControl1Matcher(IrOpcode::kEnd, control0_matcher)); 1387 return MakeMatcher(new IsControl1Matcher(IrOpcode::kEnd, control0_matcher));
1383 } 1388 }
1384 1389
1385 1390
1386 Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher, 1391 Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher,
1387 const Matcher<Node*>& control1_matcher) { 1392 const Matcher<Node*>& control1_matcher) {
1388 return MakeMatcher(new IsControl2Matcher(IrOpcode::kEnd, control0_matcher, 1393 return MakeMatcher(new IsControl2Matcher(IrOpcode::kEnd, control0_matcher,
1389 control1_matcher)); 1394 control1_matcher));
1390 } 1395 }
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1849 IS_UNOP_MATCHER(NumberToInt32) 1854 IS_UNOP_MATCHER(NumberToInt32)
1850 IS_UNOP_MATCHER(NumberToUint32) 1855 IS_UNOP_MATCHER(NumberToUint32)
1851 IS_UNOP_MATCHER(ObjectIsSmi) 1856 IS_UNOP_MATCHER(ObjectIsSmi)
1852 IS_UNOP_MATCHER(ObjectIsNonNegativeSmi) 1857 IS_UNOP_MATCHER(ObjectIsNonNegativeSmi)
1853 IS_UNOP_MATCHER(Word32Clz) 1858 IS_UNOP_MATCHER(Word32Clz)
1854 #undef IS_UNOP_MATCHER 1859 #undef IS_UNOP_MATCHER
1855 1860
1856 } // namespace compiler 1861 } // namespace compiler
1857 } // namespace internal 1862 } // namespace internal
1858 } // namespace v8 1863 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/compiler/node-test-utils.h ('k') | test/unittests/unittests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698