/external/v8/src/compiler/ |
D | node-properties.cc | 19 int NodeProperties::PastValueIndex(Node* node) { in PastValueIndex() 25 int NodeProperties::PastContextIndex(Node* node) { in PastContextIndex() 32 int NodeProperties::PastFrameStateIndex(Node* node) { in PastFrameStateIndex() 39 int NodeProperties::PastEffectIndex(Node* node) { in PastEffectIndex() 45 int NodeProperties::PastControlIndex(Node* node) { in PastControlIndex() 51 Node* NodeProperties::GetValueInput(Node* node, int index) { in GetValueInput() 58 Node* NodeProperties::GetContextInput(Node* node) { in GetContextInput() 65 Node* NodeProperties::GetFrameStateInput(Node* node) { in GetFrameStateInput() 72 Node* NodeProperties::GetEffectInput(Node* node, int index) { in GetEffectInput() 79 Node* NodeProperties::GetControlInput(Node* node, int index) { in GetControlInput() [all …]
|
D | js-call-reducer.cc | 33 Node* target = NodeProperties::GetValueInput(node, 0); in ReduceArrayConstructor() 49 NodeProperties::ReplaceValueInput(node, target, 0); in ReduceArrayConstructor() 50 NodeProperties::ReplaceValueInput(node, target, 1); in ReduceArrayConstructor() 54 NodeProperties::ChangeOp(node, javascript()->CreateArray(arity, site)); in ReduceArrayConstructor() 67 : NodeProperties::GetValueInput(node, 2); in ReduceNumberConstructor() 68 NodeProperties::ReplaceValueInputs(node, value); in ReduceNumberConstructor() 69 NodeProperties::ChangeOp(node, javascript()->ToNumber()); in ReduceNumberConstructor() 77 Node* target = NodeProperties::GetValueInput(node, 0); in ReduceFunctionPrototypeApply() 96 Node* arg_array = NodeProperties::GetValueInput(node, 3); in ReduceFunctionPrototypeApply() 100 if (!NodeProperties::IsValueEdge(edge)) continue; in ReduceFunctionPrototypeApply() [all …]
|
D | js-intrinsic-lowering.cc | 85 Node* const value = NodeProperties::GetValueInput(node, 0); in ReduceCreateIterResultObject() 86 Node* const done = NodeProperties::GetValueInput(node, 1); in ReduceCreateIterResultObject() 87 Node* const context = NodeProperties::GetContextInput(node); in ReduceCreateIterResultObject() 88 Node* const effect = NodeProperties::GetEffectInput(node); in ReduceCreateIterResultObject() 96 Node* const frame_state = NodeProperties::GetFrameStateInput(node); in ReduceDeoptimizeNow() 97 Node* const effect = NodeProperties::GetEffectInput(node); in ReduceDeoptimizeNow() 98 Node* const control = NodeProperties::GetControlInput(node); in ReduceDeoptimizeNow() 104 NodeProperties::MergeControlToEnd(graph(), common(), deoptimize); in ReduceDeoptimizeNow() 108 NodeProperties::ChangeOp(node, common()->Dead()); in ReduceDeoptimizeNow() 113 Node* const generator = NodeProperties::GetValueInput(node, 0); in ReduceGeneratorClose() [all …]
|
D | typed-optimization.cc | 35 if (!NodeProperties::IsConstant(node) && NodeProperties::IsTyped(node) && in Reduce() 45 Type* upper = NodeProperties::GetType(node); in Reduce() 115 Node* const input = NodeProperties::GetValueInput(node, 0); in ReduceCheckHeapObject() 116 Type* const input_type = NodeProperties::GetType(input); in ReduceCheckHeapObject() 130 Node* const object = NodeProperties::GetValueInput(node, 0); in ReduceCheckMaps() 131 Type* const object_type = NodeProperties::GetType(object); in ReduceCheckMaps() 132 Node* const effect = NodeProperties::GetEffectInput(node); in ReduceCheckMaps() 136 Node* const map = NodeProperties::GetValueInput(node, i); in ReduceCheckMaps() 137 Type* const map_type = NodeProperties::GetType(map); in ReduceCheckMaps() 151 Node* const input = NodeProperties::GetValueInput(node, 0); in ReduceCheckString() [all …]
|
D | js-typed-lowering.cc | 119 bool handles_exception = NodeProperties::IsExceptionalCall(node_); in ConvertInputsToNumber() 166 NodeProperties::RemoveNonValueInputs(node_); in ChangeToPureOperator() 168 NodeProperties::ChangeOp(node_, op); in ChangeToPureOperator() 172 Type* node_type = NodeProperties::GetType(node_); in ChangeToPureOperator() 173 NodeProperties::SetType(node_, Type::Intersect(node_type, type, zone())); in ChangeToPureOperator() 206 if (NodeProperties::IsControlEdge(edge)) { in ChangeToSpeculativeOperator() 208 user->ReplaceUses(NodeProperties::GetControlInput(node_)); in ChangeToSpeculativeOperator() 219 node_->RemoveInput(NodeProperties::FirstFrameStateIndex(node_)); in ChangeToSpeculativeOperator() 221 node_->RemoveInput(NodeProperties::FirstContextIndex(node_)); in ChangeToSpeculativeOperator() 223 NodeProperties::ChangeOp(node_, op); in ChangeToSpeculativeOperator() [all …]
|
D | tail-call-optimization.cc | 22 Node* const call = NodeProperties::GetValueInput(node, 1); in Reduce() 25 NodeProperties::GetEffectInput(node) == call && in Reduce() 26 !NodeProperties::IsExceptionalCall(call)) { in Reduce() 27 Node* const control = NodeProperties::GetControlInput(node); in Reduce() 30 DCHECK_EQ(0, Int32Matcher(NodeProperties::GetValueInput(node, 0)).Value()); in Reduce() 68 DCHECK_EQ(call, NodeProperties::GetControlInput(control, 0)); in Reduce() 70 node->ReplaceInput(0, NodeProperties::GetEffectInput(call)); in Reduce() 71 node->ReplaceInput(1, NodeProperties::GetControlInput(call)); in Reduce() 76 NodeProperties::GetValueInput(call, index)); in Reduce() 78 NodeProperties::ChangeOp( in Reduce()
|
D | load-elimination.cc | 22 if (!NodeProperties::GetType(a)->Maybe(NodeProperties::GetType(b))) { in QueryAlias() 75 Node* const value = NodeProperties::GetValueInput(node, i); in Reduce() 82 Node* const effect = NodeProperties::GetEffectInput(node, i); in Reduce() 219 !NodeProperties::GetType(index)->Maybe( in Kill() 220 NodeProperties::GetType(element.index))) { in Kill() 511 Node* const effect = NodeProperties::GetEffectInput(node); in ReduceArrayBufferWasNeutered() 523 Node* const object = NodeProperties::GetValueInput(node, 0); in ReduceCheckMaps() 524 Node* const effect = NodeProperties::GetEffectInput(node); in ReduceCheckMaps() 531 Node* map = NodeProperties::GetValueInput(node, 1 + i); in ReduceCheckMaps() 536 Node* const map0 = NodeProperties::GetValueInput(node, 1); in ReduceCheckMaps() [all …]
|
D | js-generic-lowering.cc | 97 NodeProperties::ChangeOp(node, common()->Call(desc)); in ReplaceWithStubCall() 115 NodeProperties::ChangeOp(node, common()->Call(desc)); in ReplaceWithRuntimeCall() 120 NodeProperties::ReplaceContextInput(node, jsgraph()->NoContextConstant()); in LowerJSStrictEqual() 129 NodeProperties::ReplaceContextInput(node, jsgraph()->NoContextConstant()); in LowerJSStrictNotEqual() 138 NodeProperties::ReplaceContextInput(node, jsgraph()->NoContextConstant()); in LowerJSToBoolean() 147 NodeProperties::ReplaceContextInput(node, jsgraph()->NoContextConstant()); in LowerJSTypeOf() 156 Node* closure = NodeProperties::GetValueInput(node, 2); in LowerJSLoadProperty() 157 Node* effect = NodeProperties::GetEffectInput(node); in LowerJSLoadProperty() 158 Node* control = NodeProperties::GetControlInput(node); in LowerJSLoadProperty() 180 Node* closure = NodeProperties::GetValueInput(node, 1); in LowerJSLoadNamed() [all …]
|
D | js-create-lowering.cc | 48 NodeProperties::SetType(allocation_, type); in Allocate() 83 NodeProperties::SetType(allocation_, NodeProperties::GetType(node)); in FinishAndChange() 87 NodeProperties::ChangeOp(node, common()->FinishRegion()); in FinishAndChange() 109 Node* const outer_state = NodeProperties::GetFrameStateInput(frame_state); in GetArgumentsFrameState() 234 Node* const target = NodeProperties::GetValueInput(node, 0); in ReduceJSCreate() 235 Type* const target_type = NodeProperties::GetType(target); in ReduceJSCreate() 236 Node* const new_target = NodeProperties::GetValueInput(node, 1); in ReduceJSCreate() 237 Type* const new_target_type = NodeProperties::GetType(new_target); in ReduceJSCreate() 238 Node* const effect = NodeProperties::GetEffectInput(node); in ReduceJSCreate() 287 Node* const frame_state = NodeProperties::GetFrameStateInput(node); in ReduceJSCreateArguments() [all …]
|
D | common-operator-reducer.cc | 89 NodeProperties::ChangeOp(use, common()->IfFalse()); in ReduceBranch() 92 NodeProperties::ChangeOp(use, common()->IfTrue()); in ReduceBranch() 103 NodeProperties::ChangeOp( in ReduceBranch() 130 Node* condition = NodeProperties::GetValueInput(node, 0); in ReduceDeoptimizeConditional() 131 Node* frame_state = NodeProperties::GetValueInput(node, 1); in ReduceDeoptimizeConditional() 132 Node* effect = NodeProperties::GetEffectInput(node); in ReduceDeoptimizeConditional() 133 Node* control = NodeProperties::GetControlInput(node); in ReduceDeoptimizeConditional() 139 NodeProperties::ReplaceValueInput(node, condition->InputAt(0), 0); in ReduceDeoptimizeConditional() 140 NodeProperties::ChangeOp(node, condition_is_true in ReduceDeoptimizeConditional() 154 NodeProperties::MergeControlToEnd(graph(), common(), control); in ReduceDeoptimizeConditional() [all …]
|
D | js-inlining.cc | 63 return NodeProperties::GetFrameStateInput(call_); in frame_state() 90 Node* control = NodeProperties::GetControlInput(call); in InlineCall() 91 Node* effect = NodeProperties::GetEffectInput(call); in InlineCall() 130 if (NodeProperties::IsEffectEdge(edge)) { in InlineCall() 132 } else if (NodeProperties::IsControlEdge(edge)) { in InlineCall() 134 } else if (NodeProperties::IsFrameStateEdge(edge)) { in InlineCall() 187 values.push_back(NodeProperties::GetValueInput(input, 1)); in InlineCall() 188 effects.push_back(NodeProperties::GetEffectInput(input)); in InlineCall() 189 controls.push_back(NodeProperties::GetControlInput(input)); in InlineCall() 194 NodeProperties::MergeControlToEnd(graph(), common(), input); in InlineCall() [all …]
|
D | loop-peeling.cc | 133 if (NodeProperties::IsTyped(node)) { in CopyNodes() 134 NodeProperties::SetType(copy, NodeProperties::GetType(node)); in CopyNodes() 281 NodeProperties::ChangeOp(exit, common->Merge(2)); in Peel() 286 NodeProperties::ChangeOp( in Peel() 292 NodeProperties::ChangeOp(exit, common->EffectPhi(2)); in Peel() 331 if (NodeProperties::IsControlEdge(edge)) { in EliminateLoopExit() 334 NodeProperties::ReplaceUses(marker, marker->InputAt(0)); in EliminateLoopExit() 337 NodeProperties::ReplaceUses(marker, nullptr, in EliminateLoopExit() 338 NodeProperties::GetEffectInput(marker)); in EliminateLoopExit() 343 NodeProperties::ReplaceUses(node, nullptr, nullptr, in EliminateLoopExit() [all …]
|
D | dead-code-elimination.cc | 58 NodeProperties::ChangeOp(node, common()->End(live_input_count)); in ReduceEnd() 85 if (NodeProperties::IsPhi(use)) { in ReduceLoopOrMerge() 99 if (NodeProperties::IsPhi(use)) { in ReduceLoopOrMerge() 117 if (NodeProperties::IsPhi(use)) { in ReduceLoopOrMerge() 137 Node* control = NodeProperties::GetControlInput(node, 0); in RemoveLoopExit() 148 Node* control = NodeProperties::GetControlInput(node); in ReduceNode() 154 Node* control = NodeProperties::GetControlInput(node, 0); in ReduceLoopExit() 155 Node* loop = NodeProperties::GetControlInput(node, 1); in ReduceLoopExit() 166 NodeProperties::ChangeOp(node, op); in TrimMergeOrPhi()
|
D | escape-analysis-reducer.cc | 105 Type* const replacement_type = NodeProperties::GetType(replacement); in MaybeGuard() 106 Type* const original_type = NodeProperties::GetType(original); in MaybeGuard() 108 Node* const control = NodeProperties::GetControlInput(original); in MaybeGuard() 123 if (escape_analysis()->IsVirtual(NodeProperties::GetValueInput(node, 0))) { in ReduceLoad() 143 if (escape_analysis()->IsVirtual(NodeProperties::GetValueInput(node, 0))) { in ReduceStore() 170 Node* effect = NodeProperties::GetEffectInput(node, 0); in ReduceFinishRegion() 198 Node* left = NodeProperties::GetValueInput(node, 0); in ReduceReferenceEqual() 199 Node* right = NodeProperties::GetValueInput(node, 1); in ReduceReferenceEqual() 223 Node* input = NodeProperties::GetValueInput(node, 0); in ReduceObjectIsSmi() 269 Node* input = NodeProperties::GetValueInput(node, i); in ReduceDeoptState() [all …]
|
D | verifier.cc | 44 if (NodeProperties::IsTyped(node)) { in CheckNotTyped() 52 if (typing == TYPED && !NodeProperties::GetType(node)->Is(type)) { in CheckTypeIs() 56 NodeProperties::GetType(node)->PrintTo(str); in CheckTypeIs() 63 if (typing == TYPED && !NodeProperties::GetType(node)->Maybe(type)) { in CheckTypeMaybe() 67 NodeProperties::GetType(node)->PrintTo(str); in CheckTypeMaybe() 74 Node* input = NodeProperties::GetValueInput(node, i); in CheckValueInputIs() 75 if (typing == TYPED && !NodeProperties::GetType(input)->Is(type)) { in CheckValueInputIs() 80 NodeProperties::GetType(input)->PrintTo(str); in CheckValueInputIs() 115 Node* frame_state = NodeProperties::GetFrameStateInput(node); in Check() 124 Node* value = NodeProperties::GetValueInput(node, i); in Check() [all …]
|
D | js-builtin-reducer.cc | 32 HeapObjectMatcher m(NodeProperties::GetValueInput(node_, 0)); in HasBuiltinFunctionId() 41 HeapObjectMatcher m(NodeProperties::GetValueInput(node_, 0)); in GetBuiltinFunctionId() 47 return NodeProperties::GetType(receiver())->Is(type); in ReceiverMatches() 56 NodeProperties::GetType(GetJSCallInput(0))->Is(t1); in InputsMatchOne() 62 NodeProperties::GetType(GetJSCallInput(0))->Is(t1) && in InputsMatchTwo() 63 NodeProperties::GetType(GetJSCallInput(1))->Is(t2); in InputsMatchTwo() 69 if (!NodeProperties::GetType(GetJSCallInput(i))->Is(t)) { in InputsMatchAll() 76 Node* receiver() { return NodeProperties::GetValueInput(node_, 1); } in receiver() 90 return NodeProperties::GetValueInput(node_, index + 2); in GetJSCallInput() 124 Node* receiver = NodeProperties::GetValueInput(node, 1); in GetMapWitness() [all …]
|
D | loop-variable-optimizer.cc | 49 if (limits_[NodeProperties::GetControlInput(node, i)->id()] == nullptr) { in Run() 61 if (NodeProperties::IsControlEdge(edge) && in Run() 155 << NodeProperties::GetControlInput(phi())->id() << "): " << *bound in AddUpperBound() 166 << NodeProperties::GetControlInput(phi())->id() << "): " << *bound; in AddLowerBound() 180 NodeProperties::GetControlInput(constraint->left()) == loop) { in VisitBackedge() 187 NodeProperties::GetControlInput(constraint->right()) == loop) { in VisitBackedge() 286 limits_[NodeProperties::GetControlInput(node, 0)->id()]; in TakeConditionsFromFirstControl() 302 DCHECK_EQ(IrOpcode::kLoop, NodeProperties::GetControlInput(phi)->opcode()); in TryGetInductionVariable() 330 if (NodeProperties::IsControlEdge(edge) && in DetectInductionVariables() 367 NodeProperties::ChangeOp( in ChangeToInductionVariablePhis() [all …]
|
D | simplified-lowering.cc | 161 if (NodeProperties::IsControlEdge(edge)) { in ReplaceEffectControlUses() 163 } else if (NodeProperties::IsEffectEdge(edge)) { in ReplaceEffectControlUses() 166 DCHECK(NodeProperties::IsValueEdge(edge) || in ReplaceEffectControlUses() 167 NodeProperties::IsContextEdge(edge)); in ReplaceEffectControlUses() 176 Node* control = NodeProperties::GetControlInput(node); in ChangeToPureOp() 177 Node* effect = NodeProperties::GetEffectInput(node); in ChangeToPureOp() 183 NodeProperties::ChangeOp(node, new_op); in ChangeToPureOp() 362 return type == nullptr ? NodeProperties::GetType(node) : type; in TypeOf() 457 GetInfo(node)->set_feedback_type(NodeProperties::GetType(node)); in UpdateFeedbackType() 485 if (NodeProperties::IsTyped(n)) { in PrintNodeFeedbackType() [all …]
|
D | control-flow-optimizer.cc | 56 if (NodeProperties::IsControlEdge(edge)) { in VisitNode() 75 Node* cond = NodeProperties::GetValueInput(branch, 0); in TryBuildSwitch() 112 NodeProperties::ChangeOp(if_true, common()->IfValue(value)); in TryBuildSwitch() 129 NodeProperties::ChangeOp(node, common()->Switch(values.size() + 1)); in TryBuildSwitch() 131 NodeProperties::ChangeOp(if_true, common()->IfValue(value)); in TryBuildSwitch() 134 NodeProperties::ChangeOp(if_false, common()->IfDefault()); in TryBuildSwitch()
|
D | osr.cc | 110 if (NodeProperties::IsTyped(orig)) { in PeelOuterLoopsForOsr() 111 NodeProperties::SetType(copy, NodeProperties::GetType(orig)); in PeelOuterLoopsForOsr() 149 Node* k = NodeProperties::GetControlInput(control, j); in PeelOuterLoopsForOsr() 249 NodeProperties::ChangeOp(end, common->End(end->InputCount())); in PeelOuterLoopsForOsr() 280 if (NodeProperties::GetControlInput(use) != loop) continue; in SetTypeForOsrValue() 282 type = NodeProperties::GetType(use); in SetTypeForOsrValue() 292 NodeProperties::ChangeOp(osr_guard, common->OsrGuard(guard_type)); in SetTypeForOsrValue() 351 if (NodeProperties::IsPhi(use)) { in Deconstruct() 353 NodeProperties::ChangeOp( in Deconstruct() 358 NodeProperties::ChangeOp( in Deconstruct()
|
D | branch-elimination.cc | 57 Node* control_input = NodeProperties::GetControlInput(node, 0); in ReduceBranch() 87 Node* condition = NodeProperties::GetValueInput(node, 0); in ReduceDeoptimizeConditional() 88 Node* frame_state = NodeProperties::GetValueInput(node, 1); in ReduceDeoptimizeConditional() 89 Node* effect = NodeProperties::GetEffectInput(node); in ReduceDeoptimizeConditional() 90 Node* control = NodeProperties::GetControlInput(node); in ReduceDeoptimizeConditional() 110 NodeProperties::MergeControlToEnd(graph(), common(), control); in ReduceDeoptimizeConditional() 121 Node* branch = NodeProperties::GetControlInput(node, 0); in ReduceIf() 200 node_conditions_.Get(NodeProperties::GetControlInput(node, 0)); in TakeConditionsFromFirstControl()
|
D | graph-visualizer.cc | 141 os_ << ",\"rankInputs\":[0," << NodeProperties::FirstControlIndex(node) in PrintNode() 143 os_ << ",\"rankWithInput\":[" << NodeProperties::FirstControlIndex(node) in PrintNode() 147 os_ << ",\"rankInputs\":[" << NodeProperties::FirstControlIndex(node) in PrintNode() 158 os_ << ",\"control\":" << (NodeProperties::IsControl(node) ? "true" in PrintNode() 166 if (NodeProperties::IsTyped(node)) { in PrintNode() 167 Type* type = NodeProperties::GetType(node); in PrintNode() 211 if (index < NodeProperties::FirstValueIndex(from)) { in PrintEdge() 213 } else if (index < NodeProperties::FirstContextIndex(from)) { in PrintEdge() 215 } else if (index < NodeProperties::FirstFrameStateIndex(from)) { in PrintEdge() 217 } else if (index < NodeProperties::FirstEffectIndex(from)) { in PrintEdge() [all …]
|
D | checkpoint-elimination.cc | 22 Node* effect = NodeProperties::GetEffectInput(node); in IsRedundantCheckpoint() 26 effect = NodeProperties::GetEffectInput(effect); in IsRedundantCheckpoint() 36 return Replace(NodeProperties::GetEffectInput(node)); in ReduceCheckpoint()
|
D | js-native-context-specialization.cc | 92 Node* object = NodeProperties::GetValueInput(node, 0); in ReduceJSInstanceOf() 93 Node* constructor = NodeProperties::GetValueInput(node, 1); in ReduceJSInstanceOf() 94 Node* context = NodeProperties::GetContextInput(node); in ReduceJSInstanceOf() 95 Node* effect = NodeProperties::GetEffectInput(node); in ReduceJSInstanceOf() 96 Node* control = NodeProperties::GetControlInput(node); in ReduceJSInstanceOf() 132 NodeProperties::ReplaceValueInput(node, constructor, 0); in ReduceJSInstanceOf() 133 NodeProperties::ReplaceValueInput(node, object, 1); in ReduceJSInstanceOf() 134 NodeProperties::ReplaceEffectInput(node, effect); in ReduceJSInstanceOf() 135 NodeProperties::ChangeOp(node, javascript()->OrdinaryHasInstance()); in ReduceJSInstanceOf() 157 NodeProperties::ChangeOp( in ReduceJSInstanceOf() [all …]
|
D | js-context-specialization.cc | 36 Node* const object = NodeProperties::GetValueInput(node, 0); in GetSpecializationContext() 37 return NodeProperties::GetSpecializationContext(object, context()); in GetSpecializationContext() 63 NodeProperties::ChangeOp(node, op); in ReduceJSLoadContext() 105 NodeProperties::ChangeOp(node, javascript()->StoreContext(0, access.index())); in ReduceJSStoreContext()
|