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

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

Issue 971223002: [turbofan] Fix ControlFlowOptimizer to also handle non-control nodes in the control chain. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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 "src/assembler.h" 7 #include "src/assembler.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 #include "src/compiler/simplified-operator.h" 9 #include "src/compiler/simplified-operator.h"
10 #include "src/unique.h" 10 #include "src/unique.h"
(...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after
1296 return MakeMatcher(new IsControl1Matcher(IrOpcode::kIfTrue, control_matcher)); 1296 return MakeMatcher(new IsControl1Matcher(IrOpcode::kIfTrue, control_matcher));
1297 } 1297 }
1298 1298
1299 1299
1300 Matcher<Node*> IsIfFalse(const Matcher<Node*>& control_matcher) { 1300 Matcher<Node*> IsIfFalse(const Matcher<Node*>& control_matcher) {
1301 return MakeMatcher( 1301 return MakeMatcher(
1302 new IsControl1Matcher(IrOpcode::kIfFalse, control_matcher)); 1302 new IsControl1Matcher(IrOpcode::kIfFalse, control_matcher));
1303 } 1303 }
1304 1304
1305 1305
1306 Matcher<Node*> IsIfSuccess(const Matcher<Node*>& control_matcher) {
1307 return MakeMatcher(
1308 new IsControl1Matcher(IrOpcode::kIfSuccess, control_matcher));
1309 }
1310
1311
1306 Matcher<Node*> IsSwitch(const Matcher<Node*>& value_matcher, 1312 Matcher<Node*> IsSwitch(const Matcher<Node*>& value_matcher,
1307 const Matcher<Node*>& control_matcher) { 1313 const Matcher<Node*>& control_matcher) {
1308 return MakeMatcher(new IsSwitchMatcher(value_matcher, control_matcher)); 1314 return MakeMatcher(new IsSwitchMatcher(value_matcher, control_matcher));
1309 } 1315 }
1310 1316
1311 1317
1312 Matcher<Node*> IsIfValue(const Matcher<int32_t>& value_matcher, 1318 Matcher<Node*> IsIfValue(const Matcher<int32_t>& value_matcher,
1313 const Matcher<Node*>& control_matcher) { 1319 const Matcher<Node*>& control_matcher) {
1314 return MakeMatcher(new IsIfValueMatcher(value_matcher, control_matcher)); 1320 return MakeMatcher(new IsIfValueMatcher(value_matcher, control_matcher));
1315 } 1321 }
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
1610 IS_UNOP_MATCHER(Float64RoundTiesAway) 1616 IS_UNOP_MATCHER(Float64RoundTiesAway)
1611 IS_UNOP_MATCHER(NumberToInt32) 1617 IS_UNOP_MATCHER(NumberToInt32)
1612 IS_UNOP_MATCHER(NumberToUint32) 1618 IS_UNOP_MATCHER(NumberToUint32)
1613 IS_UNOP_MATCHER(ObjectIsSmi) 1619 IS_UNOP_MATCHER(ObjectIsSmi)
1614 IS_UNOP_MATCHER(ObjectIsNonNegativeSmi) 1620 IS_UNOP_MATCHER(ObjectIsNonNegativeSmi)
1615 #undef IS_UNOP_MATCHER 1621 #undef IS_UNOP_MATCHER
1616 1622
1617 } // namespace compiler 1623 } // namespace compiler
1618 } // namespace internal 1624 } // namespace internal
1619 } // namespace v8 1625 } // 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