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