Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: src/compiler/js-inlining.cc

Issue 2833423004: [turbofan] Make sure an inlined call is not resurrected and inlined again. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/js-inlining-heuristic.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/js-inlining.h" 5 #include "src/compiler/js-inlining.h"
6 6
7 #include "src/ast/ast.h" 7 #include "src/ast/ast.h"
8 #include "src/compilation-info.h" 8 #include "src/compilation-info.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/compiler/all-nodes.h" 10 #include "src/compiler/all-nodes.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 effects.push_back(control_output); 211 effects.push_back(control_output);
212 Node* value_output = graph()->NewNode( 212 Node* value_output = graph()->NewNode(
213 common()->Phi(MachineRepresentation::kTagged, input_count), 213 common()->Phi(MachineRepresentation::kTagged, input_count),
214 static_cast<int>(values.size()), &values.front()); 214 static_cast<int>(values.size()), &values.front());
215 Node* effect_output = 215 Node* effect_output =
216 graph()->NewNode(common()->EffectPhi(input_count), 216 graph()->NewNode(common()->EffectPhi(input_count),
217 static_cast<int>(effects.size()), &effects.front()); 217 static_cast<int>(effects.size()), &effects.front());
218 ReplaceWithValue(call, value_output, effect_output, control_output); 218 ReplaceWithValue(call, value_output, effect_output, control_output);
219 return Changed(value_output); 219 return Changed(value_output);
220 } else { 220 } else {
221 ReplaceWithValue(call, call, call, jsgraph()->Dead()); 221 ReplaceWithValue(call, jsgraph()->Dead(), jsgraph()->Dead(),
222 jsgraph()->Dead());
222 return Changed(call); 223 return Changed(call);
223 } 224 }
224 } 225 }
225 226
226 Node* JSInliner::CreateArtificialFrameState(Node* node, Node* outer_frame_state, 227 Node* JSInliner::CreateArtificialFrameState(Node* node, Node* outer_frame_state,
227 int parameter_count, 228 int parameter_count,
228 BailoutId bailout_id, 229 BailoutId bailout_id,
229 FrameStateType frame_state_type, 230 FrameStateType frame_state_type,
230 Handle<SharedFunctionInfo> shared) { 231 Handle<SharedFunctionInfo> shared) {
231 const FrameStateFunctionInfo* state_info = 232 const FrameStateFunctionInfo* state_info =
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 745
745 CommonOperatorBuilder* JSInliner::common() const { return jsgraph()->common(); } 746 CommonOperatorBuilder* JSInliner::common() const { return jsgraph()->common(); }
746 747
747 SimplifiedOperatorBuilder* JSInliner::simplified() const { 748 SimplifiedOperatorBuilder* JSInliner::simplified() const {
748 return jsgraph()->simplified(); 749 return jsgraph()->simplified();
749 } 750 }
750 751
751 } // namespace compiler 752 } // namespace compiler
752 } // namespace internal 753 } // namespace internal
753 } // namespace v8 754 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-inlining-heuristic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698