Lines Matching refs:node

16 #include "src/compiler/node-properties.h"
232 // An iterator over a node's sparse inputs.
245 // Get the current sparse input's real node value. Only valid if the
254 // Get the current sparse input, returning either a real input node if
261 // True if the current sparse input is a real input node.
289 // Returns an iterator over the sparse inputs of {node}.
290 InputIterator IterateOverInputs(Node* node);
294 // The sparse input mask has a bitmask specifying if the node's inputs are
300 // * The inputs to the node are the real values, in the order of the 1s from
307 // So, for N 1s in the bitmask, there are N - 1 inputs into the node.
463 // A dummy value node temporarily used as input when the actual value doesn't
581 explicit constexpr CommonNodeWrapperBase(Node* node) : NodeWrapper(node) {}
583 // Valid iff this node has exactly one effect input.
585 DCHECK_EQ(node()->op()->EffectInputCount(), 1);
586 return Effect{NodeProperties::GetEffectInput(node())};
589 // Valid iff this node has exactly one control input.
591 DCHECK_EQ(node()->op()->ControlInputCount(), 1);
592 return Control{NodeProperties::GetControlInput(node())};
600 NodeProperties::GetValueInput(node(), TheIndex)); \
604 // convention for historical reasons (it was originally a very basic typed node
609 explicit constexpr FrameState(Node* node) : CommonNodeWrapperBase(node) {
610 DCHECK_EQ(node->opcode(), IrOpcode::kFrameState);
614 return FrameStateInfoOf(node()->op());
627 Node* n = node()->InputAt(kFrameStateParametersInput);
633 Node* n = node()->InputAt(kFrameStateLocalsInput);
640 Node* stack() const { return node()->InputAt(kFrameStateStackInput); }
641 Node* context() const { return node()->InputAt(kFrameStateContextInput); }
642 Node* function() const { return node()->InputAt(kFrameStateFunctionInput); }
645 // the start node. Could also be dead.
647 Node* result = node()->InputAt(kFrameStateOuterStateInput);
657 explicit constexpr StartNode(Node* node) : CommonNodeWrapperBase(node) {
658 DCHECK_EQ(IrOpcode::kStart, node->opcode());
667 // receiver) and returns the number of value outputs of the start node.
675 // Checking related linkage methods here since they rely on Start node
685 DCHECK_GE(node()->op()->ValueOutputCount(),
687 return node()->op()->ValueOutputCount() - kExtraOutputCount;
691 DCHECK_GE(node()->op()->ValueOutputCount(),
693 return node()->op()->ValueOutputCount() - kExtraOutputCount -
698 // they return the index assigned to the Parameter node.
721 // CSA/Torque graphs; Start node layout appears to be different there.
724 return node()->op()->ValueOutputCount() - 2;
737 node()->op()->ValueOutputCount() - 3);
738 return node()->op()->ValueOutputCount() - 3;
745 node()->op()->ValueOutputCount() - 2);
746 return node()->op()->ValueOutputCount() - 2;
753 node()->op()->ValueOutputCount() - 1);
754 return node()->op()->ValueOutputCount() - 1;