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

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

Issue 1453973004: [turbofan] Fix CFI failures in BytecodeGraphBuilder unit test. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_fix-operator1-1
Patch Set: Created 5 years, 1 month 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 | « no previous file | 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/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after
1453 feedback_vector_matcher_.DescribeTo(os); 1453 feedback_vector_matcher_.DescribeTo(os);
1454 *os << "), effect ("; 1454 *os << "), effect (";
1455 effect_matcher_.DescribeTo(os); 1455 effect_matcher_.DescribeTo(os);
1456 *os << "), and control ("; 1456 *os << "), and control (";
1457 control_matcher_.DescribeTo(os); 1457 control_matcher_.DescribeTo(os);
1458 *os << ")"; 1458 *os << ")";
1459 } 1459 }
1460 1460
1461 bool MatchAndExplain(Node* node, MatchResultListener* listener) const final { 1461 bool MatchAndExplain(Node* node, MatchResultListener* listener) const final {
1462 return (NodeMatcher::MatchAndExplain(node, listener) && 1462 return (NodeMatcher::MatchAndExplain(node, listener) &&
1463 PrintMatchAndExplain(OpParameter<const NamedAccess>(node).name(), 1463 PrintMatchAndExplain(OpParameter<NamedAccess>(node).name(), "Name",
1464 "Name", name_matcher_, listener) && 1464 name_matcher_, listener) &&
1465 PrintMatchAndExplain(NodeProperties::GetValueInput(node, 0), 1465 PrintMatchAndExplain(NodeProperties::GetValueInput(node, 0),
1466 "object", object_value_matcher_, listener) && 1466 "object", object_value_matcher_, listener) &&
1467 PrintMatchAndExplain(NodeProperties::GetValueInput(node, 1), 1467 PrintMatchAndExplain(NodeProperties::GetValueInput(node, 1),
1468 "feedback vector", feedback_vector_matcher_, 1468 "feedback vector", feedback_vector_matcher_,
1469 listener) && 1469 listener) &&
1470 PrintMatchAndExplain(NodeProperties::GetEffectInput(node), "effect", 1470 PrintMatchAndExplain(NodeProperties::GetEffectInput(node), "effect",
1471 effect_matcher_, listener) && 1471 effect_matcher_, listener) &&
1472 PrintMatchAndExplain(NodeProperties::GetControlInput(node), 1472 PrintMatchAndExplain(NodeProperties::GetControlInput(node),
1473 "control", control_matcher_, listener)); 1473 "control", control_matcher_, listener));
1474 } 1474 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1506 feedback_vector_matcher_.DescribeTo(os); 1506 feedback_vector_matcher_.DescribeTo(os);
1507 *os << "), effect ("; 1507 *os << "), effect (";
1508 effect_matcher_.DescribeTo(os); 1508 effect_matcher_.DescribeTo(os);
1509 *os << "), and control ("; 1509 *os << "), and control (";
1510 control_matcher_.DescribeTo(os); 1510 control_matcher_.DescribeTo(os);
1511 *os << ")"; 1511 *os << ")";
1512 } 1512 }
1513 1513
1514 bool MatchAndExplain(Node* node, MatchResultListener* listener) const final { 1514 bool MatchAndExplain(Node* node, MatchResultListener* listener) const final {
1515 return (NodeMatcher::MatchAndExplain(node, listener) && 1515 return (NodeMatcher::MatchAndExplain(node, listener) &&
1516 PrintMatchAndExplain(OpParameter<LoadGlobalParameters>(node).name(),
1517 "name", name_matcher_, listener) &&
1516 PrintMatchAndExplain( 1518 PrintMatchAndExplain(
1517 OpParameter<const LoadGlobalParameters>(node).name(), "name", 1519 OpParameter<LoadGlobalParameters>(node).typeof_mode(),
1518 name_matcher_, listener) &&
1519 PrintMatchAndExplain(
1520 OpParameter<const LoadGlobalParameters>(node).typeof_mode(),
1521 "typeof mode", typeof_mode_matcher_, listener) && 1520 "typeof mode", typeof_mode_matcher_, listener) &&
1522 PrintMatchAndExplain(NodeProperties::GetValueInput(node, 0), 1521 PrintMatchAndExplain(NodeProperties::GetValueInput(node, 0),
1523 "feedback vector", feedback_vector_matcher_, 1522 "feedback vector", feedback_vector_matcher_,
1524 listener) && 1523 listener) &&
1525 PrintMatchAndExplain(NodeProperties::GetEffectInput(node), "effect", 1524 PrintMatchAndExplain(NodeProperties::GetEffectInput(node), "effect",
1526 effect_matcher_, listener) && 1525 effect_matcher_, listener) &&
1527 PrintMatchAndExplain(NodeProperties::GetControlInput(node), 1526 PrintMatchAndExplain(NodeProperties::GetControlInput(node),
1528 "control", control_matcher_, listener)); 1527 "control", control_matcher_, listener));
1529 } 1528 }
1530 1529
(...skipping 29 matching lines...) Expand all
1560 *os << "), feedback vector ("; 1559 *os << "), feedback vector (";
1561 feedback_vector_matcher_.DescribeTo(os); 1560 feedback_vector_matcher_.DescribeTo(os);
1562 *os << "), effect ("; 1561 *os << "), effect (";
1563 effect_matcher_.DescribeTo(os); 1562 effect_matcher_.DescribeTo(os);
1564 *os << "), and control ("; 1563 *os << "), and control (";
1565 control_matcher_.DescribeTo(os); 1564 control_matcher_.DescribeTo(os);
1566 *os << ")"; 1565 *os << ")";
1567 } 1566 }
1568 1567
1569 bool MatchAndExplain(Node* node, MatchResultListener* listener) const final { 1568 bool MatchAndExplain(Node* node, MatchResultListener* listener) const final {
1570 return (NodeMatcher::MatchAndExplain(node, listener) && 1569 return (
1571 PrintMatchAndExplain( 1570 NodeMatcher::MatchAndExplain(node, listener) &&
1572 OpParameter<const StoreGlobalParameters>(node).name(), "name", 1571 PrintMatchAndExplain(OpParameter<StoreGlobalParameters>(node).name(),
1573 name_matcher_, listener) && 1572 "name", name_matcher_, listener) &&
1574 PrintMatchAndExplain(NodeProperties::GetValueInput(node, 0), 1573 PrintMatchAndExplain(NodeProperties::GetValueInput(node, 0), "value",
1575 "value", value_matcher_, listener) && 1574 value_matcher_, listener) &&
1576 PrintMatchAndExplain(NodeProperties::GetValueInput(node, 1), 1575 PrintMatchAndExplain(NodeProperties::GetValueInput(node, 1),
1577 "feedback vector", feedback_vector_matcher_, 1576 "feedback vector", feedback_vector_matcher_,
1578 listener) && 1577 listener) &&
1579 PrintMatchAndExplain(NodeProperties::GetEffectInput(node), "effect", 1578 PrintMatchAndExplain(NodeProperties::GetEffectInput(node), "effect",
1580 effect_matcher_, listener) && 1579 effect_matcher_, listener) &&
1581 PrintMatchAndExplain(NodeProperties::GetControlInput(node), 1580 PrintMatchAndExplain(NodeProperties::GetControlInput(node), "control",
1582 "control", control_matcher_, listener)); 1581 control_matcher_, listener));
1583 } 1582 }
1584 1583
1585 private: 1584 private:
1586 const Matcher<Handle<Name>> name_matcher_; 1585 const Matcher<Handle<Name>> name_matcher_;
1587 const Matcher<Node*> value_matcher_; 1586 const Matcher<Node*> value_matcher_;
1588 const Matcher<Node*> feedback_vector_matcher_; 1587 const Matcher<Node*> feedback_vector_matcher_;
1589 const Matcher<Node*> effect_matcher_; 1588 const Matcher<Node*> effect_matcher_;
1590 const Matcher<Node*> control_matcher_; 1589 const Matcher<Node*> control_matcher_;
1591 }; 1590 };
1592 1591
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
2333 IS_UNOP_MATCHER(Float64ExtractHighWord32) 2332 IS_UNOP_MATCHER(Float64ExtractHighWord32)
2334 IS_UNOP_MATCHER(NumberToInt32) 2333 IS_UNOP_MATCHER(NumberToInt32)
2335 IS_UNOP_MATCHER(NumberToUint32) 2334 IS_UNOP_MATCHER(NumberToUint32)
2336 IS_UNOP_MATCHER(ObjectIsSmi) 2335 IS_UNOP_MATCHER(ObjectIsSmi)
2337 IS_UNOP_MATCHER(Word32Clz) 2336 IS_UNOP_MATCHER(Word32Clz)
2338 #undef IS_UNOP_MATCHER 2337 #undef IS_UNOP_MATCHER
2339 2338
2340 } // namespace compiler 2339 } // namespace compiler
2341 } // namespace internal 2340 } // namespace internal
2342 } // namespace v8 2341 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698