Lines Matching defs:node
19 #include "src/compiler/node-matchers.h"
20 #include "src/compiler/node-properties.h"
124 // Iterate over all uses of the start node.
251 Node* node, FrameState outer_frame_state, int parameter_count,
267 node->InputAt(JSCallOrConstructNode::ReceiverOrNewTargetIndex()));
269 params.push_back(node->InputAt(JSCallOrConstructNode::ArgumentIndex(i)));
278 node->InputAt(JSCallOrConstructNode::TargetIndex()), outer_frame_state)};
291 // Determines whether the call target of the given call {node} is statically
295 Node* node) {
296 DCHECK(IrOpcode::IsInlineeOpcode(node->opcode()));
297 Node* target = node->InputAt(JSCallOrConstructNode::TargetIndex());
349 FeedbackCellRef JSInliner::DetermineCallContext(Node* node,
351 DCHECK(IrOpcode::IsInlineeOpcode(node->opcode()));
352 Node* target = node->InputAt(JSCallOrConstructNode::TargetIndex());
372 *context_out = NodeProperties::GetContextInput(match.node());
377 Node* effect = NodeProperties::GetEffectInput(node);
378 Node* control = NodeProperties::GetControlInput(node);
381 match.node(), effect, control);
382 NodeProperties::ReplaceEffectInput(node, effect);
392 Reduction JSInliner::ReduceJSWasmCall(Node* node) {
402 JSWasmCallNode n(node);
433 NodeProperties::IsExceptionalCall(node, &exception_target);
446 // Every possibly throwing node should get {IfSuccess} and {IfException}
456 Node* context = NodeProperties::GetContextInput(node);
457 Node* frame_state = NodeProperties::GetFrameStateInput(node);
460 return InlineJSWasmCall(node, new_target, context, frame_state, start, end,
465 Reduction JSInliner::ReduceJSCall(Node* node) {
466 DCHECK(IrOpcode::IsInlineeOpcode(node->opcode()));
468 DCHECK_NE(node->opcode(), IrOpcode::kJSWasmCall);
470 JSCallAccessor call(node);
473 base::Optional<SharedFunctionInfoRef> shared_info(DetermineCallTarget(node));
494 if (node->opcode() == IrOpcode::kJSConstruct &&
503 if (node->opcode() == IrOpcode::kJSCall &&
527 NodeProperties::IsExceptionalCall(node, &exception_target);
552 FeedbackCellRef feedback_cell = DetermineCallContext(node, &context);
566 source_positions_->GetSourcePosition(node));
604 // Every possibly throwing node should get {IfSuccess} and {IfException}
618 if (node->opcode() == IrOpcode::kJSConstruct) {
620 JSConstructNode n(node);
627 // Note that the context has to be the callers context (input to call node).
633 Node* caller_context = NodeProperties::GetContextInput(node);
638 node, frame_state, n.ArgumentCount(),
645 NodeProperties::ReplaceControlInput(node, create);
646 NodeProperties::ReplaceEffectInput(node, create);
647 // Placeholder to hold {node}'s value dependencies while {node} is
650 NodeProperties::ReplaceUses(node, dummy, node, node, node);
655 Node* check = graph()->NewNode(simplified()->ObjectIsReceiver(), node);
658 check, node, create);
663 NodeProperties::FindSuccessfulControlProjection(node);
665 graph()->NewNode(simplified()->ObjectIsReceiver(), node);
675 caller_context, NodeProperties::GetFrameStateInput(node), node,
689 node->ReplaceInput(JSCallNode::ReceiverIndex(), receiver);
693 node, frame_state, n.ArgumentCount(),
698 // Insert a JSConvertReceiver node for sloppy callees. Note that the context
699 // passed into this node has to be the callees context (loaded above).
700 if (node->opcode() == IrOpcode::kJSCall &&
702 Effect effect{NodeProperties::GetEffectInput(node)};
704 CallParameters const& p = CallParametersOf(node->op());
710 NodeProperties::ReplaceValueInput(node, receiver,
712 NodeProperties::ReplaceEffectInput(node, effect);
724 node, frame_state, call.argument_count(), BytecodeOffset::None(),
728 return InlineCall(node, new_target, context, frame_state, start, end,