Home
last modified time | relevance | path

Searched refs:NodeProperties (Results 1 – 25 of 74) sorted by relevance

123

/external/v8/src/compiler/
Dnode-properties.cc19 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, int index) { in GetFrameStateInput()
72 Node* NodeProperties::GetEffectInput(Node* node, int index) { in GetEffectInput()
79 Node* NodeProperties::GetControlInput(Node* node, int index) { in GetControlInput()
[all …]
Djs-call-reducer.cc56 Node* target = NodeProperties::GetValueInput(node, 0); in ReduceArrayConstructor()
72 NodeProperties::ReplaceValueInput(node, target, 0); in ReduceArrayConstructor()
73 NodeProperties::ReplaceValueInput(node, target, 1); in ReduceArrayConstructor()
77 NodeProperties::ChangeOp(node, javascript()->CreateArray(arity, site)); in ReduceArrayConstructor()
90 : NodeProperties::GetValueInput(node, 2); in ReduceNumberConstructor()
91 NodeProperties::ReplaceValueInputs(node, value); in ReduceNumberConstructor()
92 NodeProperties::ChangeOp(node, javascript()->ToNumber()); in ReduceNumberConstructor()
100 Node* target = NodeProperties::GetValueInput(node, 0); in ReduceFunctionPrototypeApply()
119 Node* arg_array = NodeProperties::GetValueInput(node, 3); in ReduceFunctionPrototypeApply()
123 if (!NodeProperties::IsValueEdge(edge)) continue; in ReduceFunctionPrototypeApply()
[all …]
Djs-intrinsic-lowering.cc101 Node* const value = NodeProperties::GetValueInput(node, 0); in ReduceCreateIterResultObject()
102 Node* const done = NodeProperties::GetValueInput(node, 1); in ReduceCreateIterResultObject()
103 Node* const context = NodeProperties::GetContextInput(node); in ReduceCreateIterResultObject()
104 Node* const effect = NodeProperties::GetEffectInput(node); in ReduceCreateIterResultObject()
112 Node* const frame_state = NodeProperties::GetFrameStateInput(node, 0); in ReduceDeoptimizeNow()
113 Node* const effect = NodeProperties::GetEffectInput(node); in ReduceDeoptimizeNow()
114 Node* const control = NodeProperties::GetControlInput(node); in ReduceDeoptimizeNow()
120 NodeProperties::MergeControlToEnd(graph(), common(), deoptimize); in ReduceDeoptimizeNow()
124 NodeProperties::ChangeOp(node, common()->Dead()); in ReduceDeoptimizeNow()
147 Node* const generator = NodeProperties::GetValueInput(node, 0); in ReduceGeneratorClose()
[all …]
Djs-typed-lowering.cc78 bool handles_exception = NodeProperties::IsExceptionalCall(node_); in ConvertInputsToNumber()
125 NodeProperties::RemoveNonValueInputs(node_); in ChangeToPureOperator()
127 NodeProperties::ChangeOp(node_, op); in ChangeToPureOperator()
131 Type* node_type = NodeProperties::GetType(node_); in ChangeToPureOperator()
132 NodeProperties::SetType(node_, Type::Intersect(node_type, type, zone())); in ChangeToPureOperator()
166 if (NodeProperties::IsControlEdge(edge)) { in ChangeToSpeculativeOperator()
168 user->ReplaceUses(NodeProperties::GetControlInput(node_)); in ChangeToSpeculativeOperator()
178 node_->RemoveInput(NodeProperties::FirstFrameStateIndex(node_) + 1); in ChangeToSpeculativeOperator()
179 node_->RemoveInput(NodeProperties::FirstFrameStateIndex(node_)); in ChangeToSpeculativeOperator()
180 node_->RemoveInput(NodeProperties::FirstContextIndex(node_)); in ChangeToSpeculativeOperator()
[all …]
Dtail-call-optimization.cc21 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()
Dload-elimination.cc31 Node* object = NodeProperties::GetValueInput(node, 0); in ReduceLoadField()
32 for (Node* effect = NodeProperties::GetEffectInput(node);; in ReduceLoadField()
33 effect = NodeProperties::GetEffectInput(effect)) { in ReduceLoadField()
37 if (object == NodeProperties::GetValueInput(effect, 0) && in ReduceLoadField()
47 if (object == NodeProperties::GetValueInput(effect, 0)) { in ReduceLoadField()
48 Node* const value = NodeProperties::GetValueInput(effect, 1); in ReduceLoadField()
49 Type* stored_value_type = NodeProperties::GetType(value); in ReduceLoadField()
50 Type* load_type = NodeProperties::GetType(node); in ReduceLoadField()
61 value, NodeProperties::GetControlInput(node)); in ReduceLoadField()
80 if (object == effect) object = NodeProperties::GetValueInput(effect, 0); in ReduceLoadField()
Dcontrol-flow-optimizer.cc56 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 …]
Djs-inlining.cc60 return NodeProperties::GetFrameStateInput(call_, 0); in frame_state()
80 Node* control = NodeProperties::GetControlInput(call); in InlineCall()
81 Node* effect = NodeProperties::GetEffectInput(call); in InlineCall()
120 if (NodeProperties::IsEffectEdge(edge)) { in InlineCall()
122 } else if (NodeProperties::IsControlEdge(edge)) { in InlineCall()
124 } else if (NodeProperties::IsFrameStateEdge(edge)) { in InlineCall()
139 values.push_back(NodeProperties::GetValueInput(input, 0)); in InlineCall()
140 effects.push_back(NodeProperties::GetEffectInput(input)); in InlineCall()
141 controls.push_back(NodeProperties::GetControlInput(input)); in InlineCall()
146 NodeProperties::MergeControlToEnd(jsgraph_->graph(), jsgraph_->common(), in InlineCall()
[all …]
Djs-generic-lowering.cc22 int index = NodeProperties::FirstFrameStateIndex(node) + 1; in AdjustFrameStatesForCall()
103 NodeProperties::ChangeOp(node, common()->Call(desc)); in ReplaceWithStubCall()
121 NodeProperties::ChangeOp(node, common()->Call(desc)); in ReplaceWithRuntimeCall()
154 Node* closure = NodeProperties::GetValueInput(node, 2); in LowerJSLoadProperty()
155 Node* effect = NodeProperties::GetEffectInput(node); in LowerJSLoadProperty()
156 Node* control = NodeProperties::GetControlInput(node); in LowerJSLoadProperty()
178 Node* closure = NodeProperties::GetValueInput(node, 1); in LowerJSLoadNamed()
179 Node* effect = NodeProperties::GetEffectInput(node); in LowerJSLoadNamed()
180 Node* control = NodeProperties::GetControlInput(node); in LowerJSLoadNamed()
203 Node* closure = NodeProperties::GetValueInput(node, 0); in LowerJSLoadGlobal()
[all …]
Djs-create-lowering.cc79 NodeProperties::SetType(allocation_, NodeProperties::GetType(node)); in FinishAndChange()
83 NodeProperties::ChangeOp(node, common()->FinishRegion()); in FinishAndChange()
105 Node* const outer_state = NodeProperties::GetFrameStateInput(frame_state, 0); in GetArgumentsFrameState()
228 Node* const target = NodeProperties::GetValueInput(node, 0); in ReduceJSCreate()
229 Type* const target_type = NodeProperties::GetType(target); in ReduceJSCreate()
230 Node* const new_target = NodeProperties::GetValueInput(node, 1); in ReduceJSCreate()
231 Type* const new_target_type = NodeProperties::GetType(new_target); in ReduceJSCreate()
232 Node* const effect = NodeProperties::GetEffectInput(node); in ReduceJSCreate()
282 Node* const frame_state = NodeProperties::GetFrameStateInput(node, 0); in ReduceJSCreateArguments()
307 NodeProperties::ChangeOp(node, new_op); in ReduceJSCreateArguments()
[all …]
Dverifier.cc56 if (NodeProperties::IsTyped(node)) { in CheckNotTyped()
64 if (typing == TYPED && !NodeProperties::GetType(node)->Is(type)) { in CheckUpperIs()
68 NodeProperties::GetType(node)->PrintTo(str); in CheckUpperIs()
75 if (typing == TYPED && !NodeProperties::GetType(node)->Maybe(type)) { in CheckUpperMaybe()
79 NodeProperties::GetType(node)->PrintTo(str); in CheckUpperMaybe()
86 Node* input = NodeProperties::GetValueInput(node, i); in CheckValueInputIs()
87 if (typing == TYPED && !NodeProperties::GetType(input)->Is(type)) { in CheckValueInputIs()
92 NodeProperties::GetType(input)->PrintTo(str); in CheckValueInputIs()
127 Node* frame_state = NodeProperties::GetFrameStateInput(node, i); in Check()
138 Node* value = NodeProperties::GetValueInput(node, i); in Check()
[all …]
Dcommon-operator-reducer.cc85 NodeProperties::ChangeOp(use, common()->IfFalse()); in ReduceBranch()
88 NodeProperties::ChangeOp(use, common()->IfTrue()); in ReduceBranch()
99 NodeProperties::ChangeOp( in ReduceBranch()
125 Node* condition = NodeProperties::GetValueInput(node, 0); in ReduceDeoptimizeConditional()
126 Node* frame_state = NodeProperties::GetValueInput(node, 1); in ReduceDeoptimizeConditional()
127 Node* effect = NodeProperties::GetEffectInput(node); in ReduceDeoptimizeConditional()
128 Node* control = NodeProperties::GetControlInput(node); in ReduceDeoptimizeConditional()
134 NodeProperties::ReplaceValueInput(node, condition->InputAt(0), 0); in ReduceDeoptimizeConditional()
135 NodeProperties::ChangeOp(node, condition_is_true in ReduceDeoptimizeConditional()
148 NodeProperties::MergeControlToEnd(graph(), common(), control); in ReduceDeoptimizeConditional()
[all …]
Descape-analysis-reducer.cc124 if (escape_analysis()->IsVirtual(NodeProperties::GetValueInput(node, 0))) { in ReduceStore()
151 Node* effect = NodeProperties::GetEffectInput(node, 0); in ReduceFinishRegion()
179 Node* left = NodeProperties::GetValueInput(node, 0); in ReduceReferenceEqual()
180 Node* right = NodeProperties::GetValueInput(node, 1); in ReduceReferenceEqual()
204 Node* input = NodeProperties::GetValueInput(node, 0); in ReduceObjectIsSmi()
250 Node* input = NodeProperties::GetValueInput(node, i); in ReduceDeoptState()
259 NodeProperties::ReplaceValueInput(node, ret, i); in ReduceDeoptState()
271 Node* outer_frame_state = NodeProperties::GetFrameStateInput(node, 0); in ReduceDeoptState()
280 NodeProperties::ReplaceFrameStateInput(node, 0, ret); in ReduceDeoptState()
297 Node* input = NodeProperties::GetValueInput(node, node_index); in ReduceStateValueInput()
[all …]
Ddead-code-elimination.cc56 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()
Dcheckpoint-elimination.cc22 Node* effect = NodeProperties::GetEffectInput(node); in IsRedundantCheckpoint()
26 effect = NodeProperties::GetEffectInput(effect); in IsRedundantCheckpoint()
36 return Replace(NodeProperties::GetEffectInput(node)); in Reduce()
Dgraph-visualizer.cc133 os_ << ",\"rankInputs\":[0," << NodeProperties::FirstControlIndex(node) in PrintNode()
135 os_ << ",\"rankWithInput\":[" << NodeProperties::FirstControlIndex(node) in PrintNode()
139 os_ << ",\"rankInputs\":[" << NodeProperties::FirstControlIndex(node) in PrintNode()
150 os_ << ",\"control\":" << (NodeProperties::IsControl(node) ? "true" in PrintNode()
152 if (NodeProperties::IsTyped(node)) { in PrintNode()
153 Type* type = NodeProperties::GetType(node); in PrintNode()
196 if (index < NodeProperties::FirstValueIndex(from)) { in PrintEdge()
198 } else if (index < NodeProperties::FirstContextIndex(from)) { in PrintEdge()
200 } else if (index < NodeProperties::FirstFrameStateIndex(from)) { in PrintEdge()
202 } else if (index < NodeProperties::FirstEffectIndex(from)) { in PrintEdge()
[all …]
Dbranch-elimination.cc57 Node* control_input = NodeProperties::GetControlInput(node, 0); in ReduceBranch()
86 Node* condition = NodeProperties::GetValueInput(node, 0); in ReduceDeoptimizeConditional()
87 Node* frame_state = NodeProperties::GetValueInput(node, 1); in ReduceDeoptimizeConditional()
88 Node* effect = NodeProperties::GetEffectInput(node); in ReduceDeoptimizeConditional()
89 Node* control = NodeProperties::GetControlInput(node); in ReduceDeoptimizeConditional()
109 NodeProperties::MergeControlToEnd(graph(), common(), control); in ReduceDeoptimizeConditional()
120 Node* branch = NodeProperties::GetControlInput(node, 0); in ReduceIf()
201 node_conditions_.Get(NodeProperties::GetControlInput(node, 0)); in TakeConditionsFromFirstControl()
Djs-native-context-specialization.cc80 Node* receiver = NodeProperties::GetValueInput(node, 0); in ReduceNamedAccess()
81 Node* effect = NodeProperties::GetEffectInput(node); in ReduceNamedAccess()
82 Node* control = NodeProperties::GetControlInput(node); in ReduceNamedAccess()
83 Node* frame_state = NodeProperties::FindFrameStateBefore(node); in ReduceNamedAccess()
414 Node* const receiver = NodeProperties::GetValueInput(node, 0); in ReduceNamedAccess()
415 Node* const effect = NodeProperties::GetEffectInput(node); in ReduceNamedAccess()
447 Node* const receiver = NodeProperties::GetValueInput(node, 0); in ReduceJSLoadNamed()
487 Node* const value = NodeProperties::GetValueInput(node, 1); in ReduceJSStoreNamed()
505 Node* receiver = NodeProperties::GetValueInput(node, 0); in ReduceElementAccess()
506 Node* context = NodeProperties::GetContextInput(node); in ReduceElementAccess()
[all …]
Djs-context-specialization.cc36 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()
Djs-global-object-specialization.cc54 Node* effect = NodeProperties::GetEffectInput(node); in ReduceJSLoadGlobal()
55 Node* control = NodeProperties::GetControlInput(node); in ReduceJSLoadGlobal()
133 Node* value = NodeProperties::GetValueInput(node, 0); in ReduceJSStoreGlobal()
134 Node* effect = NodeProperties::GetEffectInput(node); in ReduceJSStoreGlobal()
135 Node* control = NodeProperties::GetControlInput(node); in ReduceJSStoreGlobal()
136 Node* frame_state = NodeProperties::FindFrameStateBefore(node); in ReduceJSStoreGlobal()
232 Node* const context = NodeProperties::GetContextInput(node); in GetGlobalObject()
233 return NodeProperties::GetSpecializationGlobalObject(context, in GetGlobalObject()
Dsimplified-lowering.cc314 return type == nullptr ? NodeProperties::GetType(node) : type; in TypeOf()
485 GetInfo(node)->set_feedback_type(NodeProperties::GetType(node)); in UpdateFeedbackType()
507 if (NodeProperties::IsTyped(n)) { in PrintNodeFeedbackType()
509 Type* static_type = NodeProperties::GetType(n); in PrintNodeFeedbackType()
672 Type* GetUpperBound(Node* node) { return NodeProperties::GetType(node); } in GetUpperBound()
726 DCHECK_GE(index, NodeProperties::PastValueIndex(node)); in ProcessRemainingInputs()
727 DCHECK_GE(index, NodeProperties::PastContextIndex(node)); in ProcessRemainingInputs()
728 for (int i = std::max(index, NodeProperties::FirstEffectIndex(node)); in ProcessRemainingInputs()
729 i < NodeProperties::PastEffectIndex(node); ++i) { in ProcessRemainingInputs()
732 for (int i = std::max(index, NodeProperties::FirstControlIndex(node)); in ProcessRemainingInputs()
[all …]
Dsimplified-operator-reducer.cc169 Node* const input = NodeProperties::GetValueInput(node, 0); in Reduce()
170 Type* const input_type = NodeProperties::GetType(input); in Reduce()
188 Node* const left = NodeProperties::GetValueInput(node, 0); in ReduceReferenceEqual()
189 Node* const right = NodeProperties::GetValueInput(node, 1); in ReduceReferenceEqual()
204 Node* const input = NodeProperties::GetValueInput(node, 0); in ReduceTypeGuard()
205 Type* const input_type = NodeProperties::GetTypeOrAny(input); in ReduceTypeGuard()
216 NodeProperties::ChangeOp(node, op); in Change()
/external/v8/test/unittests/compiler/
Dnode-test-utils.cc96 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 …]
Dnode-properties-unittest.cc57 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()
Descape-analysis-unittest.cc128 if (NodeProperties::IsControlEdge(edge)) { in EndGraph()
175 EXPECT_EQ(left, NodeProperties::GetValueInput(rep, 0)); in ExpectReplacementPhi()
176 EXPECT_EQ(right, NodeProperties::GetValueInput(rep, 1)); in ExpectReplacementPhi()
227 ASSERT_EQ(object1, NodeProperties::GetValueInput(result, 0)); in TEST_F()
253 ASSERT_EQ(load, NodeProperties::GetValueInput(result, 0)); in TEST_F()
275 ASSERT_EQ(allocation, NodeProperties::GetValueInput(result, 0)); in TEST_F()
303 ASSERT_EQ(finish1, NodeProperties::GetValueInput(result, 0)); in TEST_F()
336 ASSERT_EQ(replacement_phi, NodeProperties::GetValueInput(result, 0)); in TEST_F()
368 ASSERT_EQ(load, NodeProperties::GetValueInput(result, 0)); in TEST_F()
403 ASSERT_EQ(allocation, NodeProperties::GetValueInput(result, 0)); in TEST_F()
[all …]

123