OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |