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

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

Issue 2446543002: [turbofan] Support variable size argument popping in TF-generated functions (Closed)
Patch Set: Fix tests and arm64 Created 4 years, 1 month 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/instruction-selector.cc ('k') | src/compiler/mips/code-generator-mips.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-numbering.h" 7 #include "src/ast/ast-numbering.h"
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/compilation-info.h" 9 #include "src/compilation-info.h"
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 jsgraph()->Dead()); 177 jsgraph()->Dead());
178 } 178 }
179 } 179 }
180 180
181 NodeVector values(local_zone_); 181 NodeVector values(local_zone_);
182 NodeVector effects(local_zone_); 182 NodeVector effects(local_zone_);
183 NodeVector controls(local_zone_); 183 NodeVector controls(local_zone_);
184 for (Node* const input : end->inputs()) { 184 for (Node* const input : end->inputs()) {
185 switch (input->opcode()) { 185 switch (input->opcode()) {
186 case IrOpcode::kReturn: 186 case IrOpcode::kReturn:
187 values.push_back(NodeProperties::GetValueInput(input, 0)); 187 values.push_back(NodeProperties::GetValueInput(input, 1));
188 effects.push_back(NodeProperties::GetEffectInput(input)); 188 effects.push_back(NodeProperties::GetEffectInput(input));
189 controls.push_back(NodeProperties::GetControlInput(input)); 189 controls.push_back(NodeProperties::GetControlInput(input));
190 break; 190 break;
191 case IrOpcode::kDeoptimize: 191 case IrOpcode::kDeoptimize:
192 case IrOpcode::kTerminate: 192 case IrOpcode::kTerminate:
193 case IrOpcode::kThrow: 193 case IrOpcode::kThrow:
194 NodeProperties::MergeControlToEnd(graph(), common(), input); 194 NodeProperties::MergeControlToEnd(graph(), common(), input);
195 Revisit(graph()->end()); 195 Revisit(graph()->end());
196 break; 196 break;
197 default: 197 default:
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 691
692 CommonOperatorBuilder* JSInliner::common() const { return jsgraph()->common(); } 692 CommonOperatorBuilder* JSInliner::common() const { return jsgraph()->common(); }
693 693
694 SimplifiedOperatorBuilder* JSInliner::simplified() const { 694 SimplifiedOperatorBuilder* JSInliner::simplified() const {
695 return jsgraph()->simplified(); 695 return jsgraph()->simplified();
696 } 696 }
697 697
698 } // namespace compiler 698 } // namespace compiler
699 } // namespace internal 699 } // namespace internal
700 } // namespace v8 700 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/mips/code-generator-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698