/external/v8/src/compiler/ |
D | js-call-reducer.cc | 56 Node* target = NodeProperties::GetValueInput(node, 0); in ReduceArrayConstructor() 72 NodeProperties::ReplaceValueInput(node, target, 0); in ReduceArrayConstructor() 73 NodeProperties::ReplaceValueInput(node, target, 1); in ReduceArrayConstructor() 74 NodeProperties::RemoveFrameStateInput(node, 1); in ReduceArrayConstructor() 78 NodeProperties::ChangeOp(node, javascript()->CreateArray(arity, site)); in ReduceArrayConstructor() 91 : NodeProperties::GetValueInput(node, 2); in ReduceNumberConstructor() 92 NodeProperties::RemoveFrameStateInput(node, 1); in ReduceNumberConstructor() 93 NodeProperties::ReplaceValueInputs(node, value); in ReduceNumberConstructor() 94 NodeProperties::ChangeOp(node, javascript()->ToNumber()); in ReduceNumberConstructor() 102 Node* target = NodeProperties::GetValueInput(node, 0); in ReduceFunctionPrototypeApply() [all …]
|
D | node-properties.cc | 18 int NodeProperties::PastValueIndex(Node* node) { in PastValueIndex() 24 int NodeProperties::PastContextIndex(Node* node) { in PastContextIndex() 31 int NodeProperties::PastFrameStateIndex(Node* node) { in PastFrameStateIndex() 38 int NodeProperties::PastEffectIndex(Node* node) { in PastEffectIndex() 44 int NodeProperties::PastControlIndex(Node* node) { in PastControlIndex() 50 Node* NodeProperties::GetValueInput(Node* node, int index) { in GetValueInput() 57 Node* NodeProperties::GetContextInput(Node* node) { in GetContextInput() 64 Node* NodeProperties::GetFrameStateInput(Node* node, int index) { in GetFrameStateInput() 71 Node* NodeProperties::GetEffectInput(Node* node, int index) { in GetEffectInput() 78 Node* NodeProperties::GetControlInput(Node* node, int index) { in GetControlInput() [all …]
|
D | js-intrinsic-lowering.cc | 118 Node* const value = NodeProperties::GetValueInput(node, 0); in ReduceCreateIterResultObject() 119 Node* const done = NodeProperties::GetValueInput(node, 1); in ReduceCreateIterResultObject() 120 Node* const context = NodeProperties::GetContextInput(node); in ReduceCreateIterResultObject() 121 Node* const effect = NodeProperties::GetEffectInput(node); in ReduceCreateIterResultObject() 128 Node* high = NodeProperties::GetValueInput(node, 0); in ReduceConstructDouble() 129 Node* low = NodeProperties::GetValueInput(node, 1); in ReduceConstructDouble() 142 Node* const frame_state = NodeProperties::GetFrameStateInput(node, 0); in ReduceDeoptimizeNow() 143 Node* const effect = NodeProperties::GetEffectInput(node); in ReduceDeoptimizeNow() 144 Node* const control = NodeProperties::GetControlInput(node); in ReduceDeoptimizeNow() 150 NodeProperties::MergeControlToEnd(graph(), common(), deoptimize); in ReduceDeoptimizeNow() [all …]
|
D | js-typed-lowering.cc | 75 NodeProperties::SetType(allocation_, NodeProperties::GetType(node)); in FinishAndChange() 79 NodeProperties::ChangeOp(node, common()->FinishRegion()); in FinishAndChange() 124 bool handles_exception = NodeProperties::IsExceptionalCall(node_); in ConvertInputsToNumber() 171 NodeProperties::RemoveNonValueInputs(node_); in ChangeToPureOperator() 173 NodeProperties::ChangeOp(node_, op); in ChangeToPureOperator() 177 Type* node_type = NodeProperties::GetType(node_); in ChangeToPureOperator() 178 NodeProperties::SetType(node_, Type::Intersect(node_type, type, zone())); in ChangeToPureOperator() 198 Node* effect = NodeProperties::GetEffectInput(node_); in ChangeToStringComparisonOperator() 199 Node* control = NodeProperties::GetControlInput(node_); in ChangeToStringComparisonOperator() 204 NodeProperties::ChangeOp(node_, op); in ChangeToStringComparisonOperator() [all …]
|
D | tail-call-optimization.cc | 21 Node* const call = NodeProperties::GetValueInput(node, 0); in Reduce() 24 NodeProperties::GetEffectInput(node) == call && in Reduce() 25 !NodeProperties::IsExceptionalCall(call)) { in Reduce() 26 Node* const control = NodeProperties::GetControlInput(node); in Reduce() 64 DCHECK_EQ(call, NodeProperties::GetControlInput(control, 0)); in Reduce() 66 node->ReplaceInput(0, NodeProperties::GetEffectInput(call)); in Reduce() 67 node->ReplaceInput(1, NodeProperties::GetControlInput(call)); in Reduce() 71 NodeProperties::GetValueInput(call, index)); in Reduce() 73 NodeProperties::ChangeOp( in Reduce()
|
D | control-flow-optimizer.cc | 56 if (NodeProperties::IsControlEdge(edge)) { in VisitNode() 124 Node* cond = NodeProperties::GetValueInput(branch, 0); in TryCloneBranch() 126 Node* merge = NodeProperties::GetControlInput(branch); in TryCloneBranch() 128 NodeProperties::GetControlInput(cond) != merge) { in TryCloneBranch() 141 if (!NodeProperties::IsPhi(use)) return false; in TryCloneBranch() 149 Node* control = NodeProperties::GetControlInput(edge.from()); in TryCloneBranch() 150 if (NodeProperties::IsPhi(edge.from())) { in TryCloneBranch() 151 control = NodeProperties::GetControlInput(control, edge.index()); in TryCloneBranch() 165 Node* cond1 = NodeProperties::GetValueInput(cond, index); in TryCloneBranch() 166 Node* control1 = NodeProperties::GetControlInput(merge, index); in TryCloneBranch() [all …]
|
D | load-elimination.cc | 31 Node* object = NodeProperties::GetValueInput(node, 0); in ReduceLoadField() 32 for (Node* effect = NodeProperties::GetEffectInput(node);; in ReduceLoadField() 33 effect = NodeProperties::GetEffectInput(effect)) { in ReduceLoadField() 36 if (object == NodeProperties::GetValueInput(effect, 0) && in ReduceLoadField() 46 if (object == NodeProperties::GetValueInput(effect, 0)) { in ReduceLoadField() 47 Node* const value = NodeProperties::GetValueInput(effect, 1); in ReduceLoadField() 65 if (object == effect) object = NodeProperties::GetValueInput(effect, 0); in ReduceLoadField()
|
D | js-inlining.cc | 58 return NodeProperties::GetFrameStateInput(call_, 1); in frame_state_before() 63 return NodeProperties::GetFrameStateInput(call_, 0); in frame_state_after() 140 Node* control = NodeProperties::GetControlInput(call); in InlineCall() 141 Node* effect = NodeProperties::GetEffectInput(call); in InlineCall() 180 if (NodeProperties::IsEffectEdge(edge)) { in InlineCall() 182 } else if (NodeProperties::IsControlEdge(edge)) { in InlineCall() 184 } else if (NodeProperties::IsFrameStateEdge(edge)) { in InlineCall() 199 values.push_back(NodeProperties::GetValueInput(input, 0)); in InlineCall() 200 effects.push_back(NodeProperties::GetEffectInput(input)); in InlineCall() 201 controls.push_back(NodeProperties::GetControlInput(input)); in InlineCall() [all …]
|
D | js-generic-lowering.cc | 22 int index = NodeProperties::FirstFrameStateIndex(node) + 1; in AdjustFrameStatesForCall() 143 inputs.push_back(NodeProperties::GetValueInput(node, 0)); in ReplaceWithCompareIC() 144 inputs.push_back(NodeProperties::GetValueInput(node, 1)); in ReplaceWithCompareIC() 145 inputs.push_back(NodeProperties::GetContextInput(node)); in ReplaceWithCompareIC() 149 inputs.push_back(NodeProperties::GetFrameStateInput(node, 0)); in ReplaceWithCompareIC() 152 ? NodeProperties::GetEffectInput(node) in ReplaceWithCompareIC() 156 ? NodeProperties::GetControlInput(node) in ReplaceWithCompareIC() 202 NodeProperties::ReplaceUses(node, node, compare, compare, compare); in ReplaceWithCompareIC() 207 NodeProperties::ChangeOp(node, in ReplaceWithCompareIC() 219 NodeProperties::ChangeOp(node, common()->Call(desc)); in ReplaceWithStubCall() [all …]
|
D | verifier.cc | 55 if (NodeProperties::IsTyped(node)) { in CheckNotTyped() 63 if (typing == TYPED && !NodeProperties::GetType(node)->Is(type)) { in CheckUpperIs() 67 NodeProperties::GetType(node)->PrintTo(str); in CheckUpperIs() 74 if (typing == TYPED && !NodeProperties::GetType(node)->Maybe(type)) { in CheckUpperMaybe() 78 NodeProperties::GetType(node)->PrintTo(str); in CheckUpperMaybe() 85 Node* input = NodeProperties::GetValueInput(node, i); in CheckValueInputIs() 86 if (typing == TYPED && !NodeProperties::GetType(input)->Is(type)) { in CheckValueInputIs() 91 NodeProperties::GetType(input)->PrintTo(str); in CheckValueInputIs() 124 Node* frame_state = NodeProperties::GetFrameStateInput(node, i); in Check() 135 Node* value = NodeProperties::GetValueInput(node, i); in Check() [all …]
|
D | escape-analysis-reducer.cc | 77 if (escape_analysis()->IsVirtual(NodeProperties::GetValueInput(node, 0))) { in ReduceStore() 107 Node* effect = NodeProperties::GetEffectInput(node, 0); in ReduceFinishRegion() 128 Node* left = NodeProperties::GetValueInput(node, 0); in ReduceReferenceEqual() 129 Node* right = NodeProperties::GetValueInput(node, 1); in ReduceReferenceEqual() 157 Node* input = NodeProperties::GetValueInput(node, 0); in ReduceObjectIsSmi() 199 Node* input = NodeProperties::GetValueInput(node, i); in ReduceFrameState() 215 NodeProperties::ReplaceValueInput(node, ret, i); in ReduceFrameState() 218 Node* outer_frame_state = NodeProperties::GetFrameStateInput(node, 0); in ReduceFrameState() 232 NodeProperties::ReplaceFrameStateInput(node, 0, ret); in ReduceFrameState() 249 Node* input = NodeProperties::GetValueInput(node, i); in ReduceStateValueInputs() [all …]
|
D | simplified-lowering.cc | 450 if (NodeProperties::IsValueEdge(edge)) { in EnqueueUses() 504 if (NodeProperties::IsTyped(node)) { in SetOutput() 505 output_type = Type::Intersect(NodeProperties::GetType(node), in SetOutput() 570 DCHECK_GE(index, NodeProperties::PastValueIndex(node)); in ProcessRemainingInputs() 571 DCHECK_GE(index, NodeProperties::PastContextIndex(node)); in ProcessRemainingInputs() 572 for (int i = std::max(index, NodeProperties::FirstEffectIndex(node)); in ProcessRemainingInputs() 573 i < NodeProperties::PastEffectIndex(node); ++i) { in ProcessRemainingInputs() 576 for (int i = std::max(index, NodeProperties::FirstControlIndex(node)); in ProcessRemainingInputs() 577 i < NodeProperties::PastControlIndex(node); ++i) { in ProcessRemainingInputs() 719 NodeProperties::ChangeOp(node, lowering->common()->Select( in VisitSelect() [all …]
|
D | js-builtin-reducer.cc | 28 HeapObjectMatcher m(NodeProperties::GetValueInput(node_, 0)); in HasBuiltinFunctionId() 37 HeapObjectMatcher m(NodeProperties::GetValueInput(node_, 0)); in GetBuiltinFunctionId() 48 NodeProperties::GetType(GetJSCallInput(0))->Is(t1); in InputsMatchOne() 54 NodeProperties::GetType(GetJSCallInput(0))->Is(t1) && in InputsMatchTwo() 55 NodeProperties::GetType(GetJSCallInput(1))->Is(t2); in InputsMatchTwo() 61 if (!NodeProperties::GetType(GetJSCallInput(i))->Is(t)) { in InputsMatchAll() 81 return NodeProperties::GetValueInput(node_, index + 2); in GetJSCallInput()
|
D | change-lowering.cc | 167 Type* const value_type = NodeProperties::GetType(value); in ChangeFloat64ToTagged() 244 NodeProperties::GetType(value)->Is(Type::SignedSmall())) { in ChangeInt32ToTagged() 271 if (NodeProperties::GetType(value)->Is(Type::TaggedSigned())) { in ChangeTaggedToUI32() 279 if (NodeProperties::GetType(value)->Is(Type::TaggedPointer())) { in ChangeTaggedToUI32() 307 if (NodeProperties::IsControlEdge(edge)) continue; in CanCover() 308 if (NodeProperties::IsEffectEdge(edge)) continue; in CanCover() 309 DCHECK(NodeProperties::IsValueEdge(edge)); in CanCover() 326 Node* const object = NodeProperties::GetValueInput(value, 0); in ChangeTaggedToFloat64() 327 Node* const context = NodeProperties::GetContextInput(value); in ChangeTaggedToFloat64() 328 Node* const frame_state = NodeProperties::GetFrameStateInput(value, 0); in ChangeTaggedToFloat64() [all …]
|
D | js-global-object-specialization.cc | 56 Node* effect = NodeProperties::GetEffectInput(node); in ReduceJSLoadGlobal() 57 Node* control = NodeProperties::GetControlInput(node); in ReduceJSLoadGlobal() 145 Node* value = NodeProperties::GetValueInput(node, 0); in ReduceJSStoreGlobal() 146 Node* frame_state = NodeProperties::GetFrameStateInput(node, 1); in ReduceJSStoreGlobal() 147 Node* effect = NodeProperties::GetEffectInput(node); in ReduceJSStoreGlobal() 148 Node* control = NodeProperties::GetControlInput(node); in ReduceJSStoreGlobal() 195 NodeProperties::MergeControlToEnd(graph(), common(), deoptimize); in ReduceJSStoreGlobal() 215 NodeProperties::MergeControlToEnd(graph(), common(), deoptimize); in ReduceJSStoreGlobal() 236 NodeProperties::MergeControlToEnd(graph(), common(), deoptimize); in ReduceJSStoreGlobal() 268 Node* const context = NodeProperties::GetContextInput(node); in GetGlobalObject() [all …]
|
D | js-context-relaxation.cc | 19 Node* frame_state = NodeProperties::GetFrameStateInput(node, 0); in Reduce() 21 Node* original_context = NodeProperties::GetContextInput(node); in Reduce() 43 NodeProperties::ReplaceContextInput(node, candidate_new_context); in Reduce() 52 NodeProperties::GetContextInput(candidate_new_context); in Reduce()
|
D | dead-code-elimination.cc | 56 NodeProperties::ChangeOp(node, common()->End(live_input_count)); in ReduceEnd() 83 if (NodeProperties::IsPhi(use)) { in ReduceLoopOrMerge() 97 if (NodeProperties::IsPhi(use)) { in ReduceLoopOrMerge() 112 if (NodeProperties::IsPhi(use)) { in ReduceLoopOrMerge() 131 Node* control = NodeProperties::GetControlInput(node); in ReduceNode() 140 NodeProperties::ChangeOp(node, op); in TrimMergeOrPhi()
|
D | escape-analysis.cc | 310 Node* input1 = NodeProperties::GetValueInput(node1, i); in IsEquivalentPhi() 311 Node* input2 = NodeProperties::GetValueInput(node2, i); in IsEquivalentPhi() 326 Node* input = NodeProperties::GetValueInput(phi, static_cast<int>(i)); in IsEquivalentPhi() 391 Node* old = NodeProperties::GetValueInput(rep, n); in MergeFrom() 394 NodeProperties::ReplaceValueInput(rep, cache->fields()[n], in MergeFrom() 407 NodeProperties::ChangeOp( in MergeFrom() 568 Node* to = NodeProperties::GetValueInput(node, 0); in ProcessStoreField() 569 Node* val = NodeProperties::GetValueInput(node, 1); in ProcessStoreField() 583 Node* to = NodeProperties::GetValueInput(node, 0); in ProcessStoreElement() 584 Node* val = NodeProperties::GetValueInput(node, 2); in ProcessStoreElement() [all …]
|
D | common-operator-reducer.cc | 90 NodeProperties::ChangeOp(use, common()->IfFalse()); in ReduceBranch() 93 NodeProperties::ChangeOp(use, common()->IfTrue()); in ReduceBranch() 104 NodeProperties::ChangeOp( in ReduceBranch() 155 NodeProperties::ChangeOp(branch, common()->Dead()); in ReduceMerge() 280 NodeProperties::GetControlInput(value) == control && in ReduceReturn() 282 NodeProperties::GetControlInput(effect) == control && in ReduceReturn() 297 NodeProperties::MergeControlToEnd(graph(), common(), ret); in ReduceReturn() 367 Node* const input = NodeProperties::GetValueInput(node, 0); in ReduceGuard() 368 Type* const input_type = NodeProperties::GetTypeOrAny(input); in ReduceGuard() 379 NodeProperties::ChangeOp(node, op); in Change() [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()
|
D | graph-visualizer.cc | 110 os_ << ",\"rankInputs\":[0," << NodeProperties::FirstControlIndex(node) in PrintNode() 112 os_ << ",\"rankWithInput\":[" << NodeProperties::FirstControlIndex(node) in PrintNode() 116 os_ << ",\"rankInputs\":[" << NodeProperties::FirstControlIndex(node) in PrintNode() 127 os_ << ",\"control\":" << (NodeProperties::IsControl(node) ? "true" in PrintNode() 129 if (NodeProperties::IsTyped(node)) { in PrintNode() 130 Type* type = NodeProperties::GetType(node); in PrintNode() 173 if (index < NodeProperties::FirstValueIndex(from)) { in PrintEdge() 175 } else if (index < NodeProperties::FirstContextIndex(from)) { in PrintEdge() 177 } else if (index < NodeProperties::FirstFrameStateIndex(from)) { in PrintEdge() 179 } else if (index < NodeProperties::FirstEffectIndex(from)) { in PrintEdge() [all …]
|
/external/v8/test/unittests/compiler/ |
D | node-test-utils.cc | 96 PrintMatchAndExplain(NodeProperties::GetValueInput(node, 0), in MatchAndExplain() 98 PrintMatchAndExplain(NodeProperties::GetControlInput(node), in MatchAndExplain() 127 PrintMatchAndExplain(NodeProperties::GetValueInput(node, 0), in MatchAndExplain() 129 PrintMatchAndExplain(NodeProperties::GetControlInput(node), in MatchAndExplain() 160 PrintMatchAndExplain(NodeProperties::GetControlInput(node), in MatchAndExplain() 185 PrintMatchAndExplain(NodeProperties::GetControlInput(node), in MatchAndExplain() 214 PrintMatchAndExplain(NodeProperties::GetControlInput(node, 0), in MatchAndExplain() 216 PrintMatchAndExplain(NodeProperties::GetControlInput(node, 1), in MatchAndExplain() 250 PrintMatchAndExplain(NodeProperties::GetControlInput(node, 0), in MatchAndExplain() 252 PrintMatchAndExplain(NodeProperties::GetControlInput(node, 1), in MatchAndExplain() [all …]
|
D | escape-analysis-unittest.cc | 113 if (NodeProperties::IsControlEdge(edge)) { in EndGraph() 150 EXPECT_EQ(left, NodeProperties::GetValueInput(rep, 0)); in ExpectReplacementPhi() 151 EXPECT_EQ(right, NodeProperties::GetValueInput(rep, 1)); in ExpectReplacementPhi() 201 ASSERT_EQ(object1, NodeProperties::GetValueInput(result, 0)); in TEST_F() 223 ASSERT_EQ(allocation, NodeProperties::GetValueInput(result, 0)); in TEST_F() 251 ASSERT_EQ(finish1, NodeProperties::GetValueInput(result, 0)); in TEST_F() 282 ASSERT_EQ(replacement_phi, NodeProperties::GetValueInput(result, 0)); in TEST_F() 307 ASSERT_EQ(object1, NodeProperties::GetValueInput(result, 0)); in TEST_F() 342 ASSERT_EQ(object1, NodeProperties::GetValueInput(result, 0)); in TEST_F() 343 Node* object_state = NodeProperties::GetValueInput(state_values1, 0); in TEST_F() [all …]
|
D | node-properties-unittest.cc | 57 NodeProperties::ReplaceUses(node, r_value, r_effect, r_success, r_exception); in TEST_F() 79 EXPECT_EQ(proj0, NodeProperties::FindProjection(start, 0)); in TEST_F() 80 EXPECT_EQ(proj1, NodeProperties::FindProjection(start, 1)); in TEST_F() 81 EXPECT_THAT(NodeProperties::FindProjection(start, 2), IsNull()); in TEST_F() 82 EXPECT_THAT(NodeProperties::FindProjection(start, 1234567890), IsNull()); in TEST_F() 92 NodeProperties::CollectControlProjections(branch, result, arraysize(result)); in TEST_F() 104 NodeProperties::CollectControlProjections(call, result, arraysize(result)); in TEST_F() 117 NodeProperties::CollectControlProjections(sw, result, arraysize(result)); in TEST_F()
|
D | js-context-relaxation-unittest.cc | 91 EXPECT_EQ(outer_context, NodeProperties::GetContextInput(node)); in TEST_F() 109 EXPECT_EQ(context, NodeProperties::GetContextInput(node)); in TEST_F() 127 EXPECT_EQ(outer_context, NodeProperties::GetContextInput(node)); in TEST_F() 145 EXPECT_EQ(context, NodeProperties::GetContextInput(node)); in TEST_F() 166 EXPECT_EQ(outer_context, NodeProperties::GetContextInput(node)); in TEST_F() 188 EXPECT_EQ(outer_context, NodeProperties::GetContextInput(node)); in TEST_F() 211 EXPECT_EQ(outer_context, NodeProperties::GetContextInput(node)); in TEST_F() 236 EXPECT_EQ(nested_context, NodeProperties::GetContextInput(node)); in TEST_F() 258 EXPECT_EQ(nested_context, NodeProperties::GetContextInput(node)); in TEST_F() 280 EXPECT_EQ(context, NodeProperties::GetContextInput(node)); in TEST_F()
|