Home | History | Annotate | Download | only in compiler

Lines Matching refs:Node

7 #include "src/compiler/node-matchers.h"
8 #include "src/compiler/node-properties.h"
22 explicit JSCallReduction(Node* node) : node_(node) {}
24 // Determines whether the node is a JSCallFunction operation that targets a
68 Node* left() { return GetJSCallInput(0); }
69 Node* right() { return GetJSCallInput(1); }
77 Node* GetJSCallInput(int index) {
85 Node* node_;
94 Reduction JSBuiltinReducer::ReduceMathMax(Node* node) {
95 JSCallReduction r(node);
106 Node* value = r.GetJSCallInput(0);
108 Node* const input = r.GetJSCallInput(i);
121 Reduction JSBuiltinReducer::ReduceMathImul(Node* node) {
122 JSCallReduction r(node);
125 Node* value = graph()->NewNode(machine()->Int32Mul(), r.left(), r.right());
133 Reduction JSBuiltinReducer::ReduceMathFround(Node* node) {
134 JSCallReduction r(node);
137 Node* value =
145 Reduction JSBuiltinReducer::Reduce(Node* node) {
147 JSCallReduction r(node);
153 reduction = ReduceMathMax(node);
156 reduction = ReduceMathImul(node);
159 reduction = ReduceMathFround(node);
166 // produce an effect. Replaces {node} with {reduction} and relaxes effects.
167 if (reduction.Changed()) ReplaceWithValue(node, reduction.replacement());