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

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

Issue 1215623002: [turbofan] Add support for pushing returns into merges. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use NodeProperties::GetControlInput. Created 5 years, 5 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') | no next file » | 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 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 } 1388 }
1389 1389
1390 1390
1391 Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher, 1391 Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher,
1392 const Matcher<Node*>& control1_matcher) { 1392 const Matcher<Node*>& control1_matcher) {
1393 return MakeMatcher(new IsControl2Matcher(IrOpcode::kEnd, control0_matcher, 1393 return MakeMatcher(new IsControl2Matcher(IrOpcode::kEnd, control0_matcher,
1394 control1_matcher)); 1394 control1_matcher));
1395 } 1395 }
1396 1396
1397 1397
1398 Matcher<Node*> IsEnd(const Matcher<Node*>& control0_matcher,
1399 const Matcher<Node*>& control1_matcher,
1400 const Matcher<Node*>& control2_matcher) {
1401 return MakeMatcher(new IsControl3Matcher(IrOpcode::kEnd, control0_matcher,
1402 control1_matcher, control2_matcher));
1403 }
1404
1405
1398 Matcher<Node*> IsBranch(const Matcher<Node*>& value_matcher, 1406 Matcher<Node*> IsBranch(const Matcher<Node*>& value_matcher,
1399 const Matcher<Node*>& control_matcher) { 1407 const Matcher<Node*>& control_matcher) {
1400 return MakeMatcher(new IsBranchMatcher(value_matcher, control_matcher)); 1408 return MakeMatcher(new IsBranchMatcher(value_matcher, control_matcher));
1401 } 1409 }
1402 1410
1403 1411
1404 Matcher<Node*> IsMerge(const Matcher<Node*>& control0_matcher, 1412 Matcher<Node*> IsMerge(const Matcher<Node*>& control0_matcher,
1405 const Matcher<Node*>& control1_matcher) { 1413 const Matcher<Node*>& control1_matcher) {
1406 return MakeMatcher(new IsControl2Matcher(IrOpcode::kMerge, control0_matcher, 1414 return MakeMatcher(new IsControl2Matcher(IrOpcode::kMerge, control0_matcher,
1407 control1_matcher)); 1415 control1_matcher));
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
1854 IS_UNOP_MATCHER(NumberToInt32) 1862 IS_UNOP_MATCHER(NumberToInt32)
1855 IS_UNOP_MATCHER(NumberToUint32) 1863 IS_UNOP_MATCHER(NumberToUint32)
1856 IS_UNOP_MATCHER(ObjectIsSmi) 1864 IS_UNOP_MATCHER(ObjectIsSmi)
1857 IS_UNOP_MATCHER(ObjectIsNonNegativeSmi) 1865 IS_UNOP_MATCHER(ObjectIsNonNegativeSmi)
1858 IS_UNOP_MATCHER(Word32Clz) 1866 IS_UNOP_MATCHER(Word32Clz)
1859 #undef IS_UNOP_MATCHER 1867 #undef IS_UNOP_MATCHER
1860 1868
1861 } // namespace compiler 1869 } // namespace compiler
1862 } // namespace internal 1870 } // namespace internal
1863 } // namespace v8 1871 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/compiler/node-test-utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698