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/ast-graph-builder.h" | 5 #include "src/compiler/ast-graph-builder.h" |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/compiler.h" | 8 #include "src/compiler.h" |
9 #include "src/compiler/ast-loop-assignment-analyzer.h" | 9 #include "src/compiler/ast-loop-assignment-analyzer.h" |
10 #include "src/compiler/control-builders.h" | 10 #include "src/compiler/control-builders.h" |
(...skipping 2569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2580 // Handle calls to runtime functions implemented in JavaScript separately as | 2580 // Handle calls to runtime functions implemented in JavaScript separately as |
2581 // the call follows JavaScript ABI and the callee is statically unknown. | 2581 // the call follows JavaScript ABI and the callee is statically unknown. |
2582 if (expr->is_jsruntime()) { | 2582 if (expr->is_jsruntime()) { |
2583 return VisitCallJSRuntime(expr); | 2583 return VisitCallJSRuntime(expr); |
2584 } | 2584 } |
2585 | 2585 |
2586 const Runtime::Function* function = expr->function(); | 2586 const Runtime::Function* function = expr->function(); |
2587 | 2587 |
2588 // TODO(mstarzinger): This bailout is a gigantic hack, the owner is ashamed. | 2588 // TODO(mstarzinger): This bailout is a gigantic hack, the owner is ashamed. |
2589 if (function->function_id == Runtime::kInlineGeneratorNext || | 2589 if (function->function_id == Runtime::kInlineGeneratorNext || |
| 2590 function->function_id == Runtime::kInlineGeneratorReturn || |
2590 function->function_id == Runtime::kInlineGeneratorThrow) { | 2591 function->function_id == Runtime::kInlineGeneratorThrow) { |
2591 ast_context()->ProduceValue(jsgraph()->TheHoleConstant()); | 2592 ast_context()->ProduceValue(jsgraph()->TheHoleConstant()); |
2592 return SetStackOverflow(); | 2593 return SetStackOverflow(); |
2593 } | 2594 } |
2594 | 2595 |
2595 // Evaluate all arguments to the runtime call. | 2596 // Evaluate all arguments to the runtime call. |
2596 ZoneList<Expression*>* args = expr->arguments(); | 2597 ZoneList<Expression*>* args = expr->arguments(); |
2597 VisitForValues(args); | 2598 VisitForValues(args); |
2598 | 2599 |
2599 // Create node to perform the runtime call. | 2600 // Create node to perform the runtime call. |
(...skipping 1750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4350 // Phi does not exist yet, introduce one. | 4351 // Phi does not exist yet, introduce one. |
4351 value = NewPhi(inputs, value, control); | 4352 value = NewPhi(inputs, value, control); |
4352 value->ReplaceInput(inputs - 1, other); | 4353 value->ReplaceInput(inputs - 1, other); |
4353 } | 4354 } |
4354 return value; | 4355 return value; |
4355 } | 4356 } |
4356 | 4357 |
4357 } // namespace compiler | 4358 } // namespace compiler |
4358 } // namespace internal | 4359 } // namespace internal |
4359 } // namespace v8 | 4360 } // namespace v8 |
OLD | NEW |