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

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

Issue 1675433003: [turbofan] Reducers should revisit end after merging to it. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 | « src/compiler/js-global-object-specialization.cc ('k') | src/compiler/js-intrinsic-lowering.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/ast/ast-numbering.h" 8 #include "src/ast/ast-numbering.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 case IrOpcode::kReturn: 198 case IrOpcode::kReturn:
199 values.push_back(NodeProperties::GetValueInput(input, 0)); 199 values.push_back(NodeProperties::GetValueInput(input, 0));
200 effects.push_back(NodeProperties::GetEffectInput(input)); 200 effects.push_back(NodeProperties::GetEffectInput(input));
201 controls.push_back(NodeProperties::GetControlInput(input)); 201 controls.push_back(NodeProperties::GetControlInput(input));
202 break; 202 break;
203 case IrOpcode::kDeoptimize: 203 case IrOpcode::kDeoptimize:
204 case IrOpcode::kTerminate: 204 case IrOpcode::kTerminate:
205 case IrOpcode::kThrow: 205 case IrOpcode::kThrow:
206 NodeProperties::MergeControlToEnd(jsgraph_->graph(), jsgraph_->common(), 206 NodeProperties::MergeControlToEnd(jsgraph_->graph(), jsgraph_->common(),
207 input); 207 input);
208 Revisit(jsgraph_->graph()->end());
208 break; 209 break;
209 default: 210 default:
210 UNREACHABLE(); 211 UNREACHABLE();
211 break; 212 break;
212 } 213 }
213 } 214 }
214 DCHECK_EQ(values.size(), effects.size()); 215 DCHECK_EQ(values.size(), effects.size());
215 DCHECK_EQ(values.size(), controls.size()); 216 DCHECK_EQ(values.size(), controls.size());
216 217
217 // Depending on whether the inlinee produces a value, we either replace value 218 // Depending on whether the inlinee produces a value, we either replace value
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 node, frame_state, call.formal_arguments(), 515 node, frame_state, call.formal_arguments(),
515 FrameStateType::kArgumentsAdaptor, info.shared_info()); 516 FrameStateType::kArgumentsAdaptor, info.shared_info());
516 } 517 }
517 518
518 return InlineCall(node, new_target, context, frame_state, start, end); 519 return InlineCall(node, new_target, context, frame_state, start, end);
519 } 520 }
520 521
521 } // namespace compiler 522 } // namespace compiler
522 } // namespace internal 523 } // namespace internal
523 } // namespace v8 524 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-global-object-specialization.cc ('k') | src/compiler/js-intrinsic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698