| 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 2557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2568 // Handle calls to runtime functions implemented in JavaScript separately as | 2568 // Handle calls to runtime functions implemented in JavaScript separately as |
| 2569 // the call follows JavaScript ABI and the callee is statically unknown. | 2569 // the call follows JavaScript ABI and the callee is statically unknown. |
| 2570 if (expr->is_jsruntime()) { | 2570 if (expr->is_jsruntime()) { |
| 2571 return VisitCallJSRuntime(expr); | 2571 return VisitCallJSRuntime(expr); |
| 2572 } | 2572 } |
| 2573 | 2573 |
| 2574 const Runtime::Function* function = expr->function(); | 2574 const Runtime::Function* function = expr->function(); |
| 2575 | 2575 |
| 2576 // TODO(mstarzinger): This bailout is a gigantic hack, the owner is ashamed. | 2576 // TODO(mstarzinger): This bailout is a gigantic hack, the owner is ashamed. |
| 2577 if (function->function_id == Runtime::kInlineGeneratorNext || | 2577 if (function->function_id == Runtime::kInlineGeneratorNext || |
| 2578 function->function_id == Runtime::kInlineGeneratorReturn || |
| 2578 function->function_id == Runtime::kInlineGeneratorThrow) { | 2579 function->function_id == Runtime::kInlineGeneratorThrow) { |
| 2579 ast_context()->ProduceValue(jsgraph()->TheHoleConstant()); | 2580 ast_context()->ProduceValue(jsgraph()->TheHoleConstant()); |
| 2580 return SetStackOverflow(); | 2581 return SetStackOverflow(); |
| 2581 } | 2582 } |
| 2582 | 2583 |
| 2583 // Evaluate all arguments to the runtime call. | 2584 // Evaluate all arguments to the runtime call. |
| 2584 ZoneList<Expression*>* args = expr->arguments(); | 2585 ZoneList<Expression*>* args = expr->arguments(); |
| 2585 VisitForValues(args); | 2586 VisitForValues(args); |
| 2586 | 2587 |
| 2587 // Create node to perform the runtime call. | 2588 // Create node to perform the runtime call. |
| (...skipping 1750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4338 // Phi does not exist yet, introduce one. | 4339 // Phi does not exist yet, introduce one. |
| 4339 value = NewPhi(inputs, value, control); | 4340 value = NewPhi(inputs, value, control); |
| 4340 value->ReplaceInput(inputs - 1, other); | 4341 value->ReplaceInput(inputs - 1, other); |
| 4341 } | 4342 } |
| 4342 return value; | 4343 return value; |
| 4343 } | 4344 } |
| 4344 | 4345 |
| 4345 } // namespace compiler | 4346 } // namespace compiler |
| 4346 } // namespace internal | 4347 } // namespace internal |
| 4347 } // namespace v8 | 4348 } // namespace v8 |
| OLD | NEW |