Lines Matching refs:Node
12 #include "src/compiler/node-properties.h"
40 Reduction JSGlobalObjectSpecialization::Reduce(Node* node) {
41 switch (node->opcode()) {
43 return ReduceJSLoadGlobal(node);
45 return ReduceJSStoreGlobal(node);
53 Reduction JSGlobalObjectSpecialization::ReduceJSLoadGlobal(Node* node) {
54 DCHECK_EQ(IrOpcode::kJSLoadGlobal, node->opcode());
55 Handle<Name> name = LoadGlobalParametersOf(node->op()).name();
56 Node* effect = NodeProperties::GetEffectInput(node);
57 Node* control = NodeProperties::GetControlInput(node);
59 // Retrieve the global object from the given {node}.
61 if (!GetGlobalObject(node).ToHandle(&global_object)) return NoChange();
67 Node* context = jsgraph()->HeapConstant(result.context);
68 Node* value = effect = graph()->NewNode(
71 ReplaceWithValue(node, value, effect);
86 Node* value = jsgraph()->Constant(property_cell_value);
87 ReplaceWithValue(node, value);
110 Node* value = jsgraph()->Constant(property_cell_value);
111 ReplaceWithValue(node, value);
133 Node* value = effect = graph()->NewNode(
137 ReplaceWithValue(node, value, effect, control);
142 Reduction JSGlobalObjectSpecialization::ReduceJSStoreGlobal(Node* node) {
143 DCHECK_EQ(IrOpcode::kJSStoreGlobal, node->opcode());
144 Handle<Name> name = StoreGlobalParametersOf(node->op()).name();
145 Node* value = NodeProperties::GetValueInput(node, 0);
146 Node* frame_state = NodeProperties::GetFrameStateInput(node, 1);
147 Node* effect = NodeProperties::GetEffectInput(node);
148 Node* control = NodeProperties::GetControlInput(node);
150 // Retrieve the global object from the given {node}.
152 if (!GetGlobalObject(node).ToHandle(&global_object)) return NoChange();
159 Node* context = jsgraph()->HeapConstant(result.context);
162 ReplaceWithValue(node, value, effect, control);
185 Node* check =
188 Node* branch =
190 Node* if_false = graph()->NewNode(common()->IfFalse(), branch);
191 Node* deoptimize =
204 Node* check = graph()->NewNode(simplified()->ObjectIsSmi(), value);
208 Node* branch = graph()->NewNode(common()->Branch(BranchHint::kFalse),
210 Node* if_true = graph()->NewNode(common()->IfTrue(), branch);
211 Node* deoptimize =
219 Node* value_map = effect =
229 Node* branch =
231 Node* if_false = graph()->NewNode(common()->IfFalse(), branch);
232 Node* deoptimize =
261 ReplaceWithValue(node, value, effect, control);
267 Node* node) {
268 Node* const context = NodeProperties::GetContextInput(node);