Lines Matching refs:node
9 #include "src/compiler/node-matchers.h"
24 Reduction SimplifiedOperatorReducer::Reduce(Node* node) {
25 switch (node->opcode()) {
27 HeapObjectMatcher m(node->InputAt(0));
35 Int32Matcher m(node->InputAt(0));
42 HeapObjectMatcher m(node->InputAt(0));
48 Float64Matcher m(node->InputAt(0));
53 Int32Matcher m(node->InputAt(0));
58 NumberMatcher m(node->InputAt(0));
60 if (m.IsChangeFloat64ToTagged()) return Replace(m.node()->InputAt(0));
62 return Change(node, machine()->ChangeInt32ToFloat64(), m.InputAt(0));
65 return Change(node, machine()->ChangeUint32ToFloat64(), m.InputAt(0));
70 NumberMatcher m(node->InputAt(0));
73 return Change(node, machine()->ChangeFloat64ToInt32(), m.InputAt(0));
79 NumberMatcher m(node->InputAt(0));
82 return Change(node, machine()->ChangeFloat64ToUint32(), m.InputAt(0));
88 Uint32Matcher m(node->InputAt(0));
93 return ReduceReferenceEqual(node);
101 Reduction SimplifiedOperatorReducer::ReduceReferenceEqual(Node* node) {
102 DCHECK_EQ(IrOpcode::kReferenceEqual, node->opcode());
103 Node* const left = NodeProperties::GetValueInput(node, 0);
104 Node* const right = NodeProperties::GetValueInput(node, 1);
118 Reduction SimplifiedOperatorReducer::Change(Node* node, const Operator* op,
119 Node* a) {
120 DCHECK_EQ(node->InputCount(), OperatorProperties::GetTotalInputCount(op));
121 DCHECK_LE(1, node->InputCount());
122 node->ReplaceInput(0, a);
123 NodeProperties::ChangeOp(node, op);
124 return Changed(node);