| 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/compiler.h" | 7 #include "src/compiler.h" |
| 8 #include "src/compiler/ast-loop-assignment-analyzer.h" | 8 #include "src/compiler/ast-loop-assignment-analyzer.h" |
| 9 #include "src/compiler/control-builders.h" | 9 #include "src/compiler/control-builders.h" |
| 10 #include "src/compiler/js-type-feedback.h" | 10 #include "src/compiler/js-type-feedback.h" |
| (...skipping 2566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2577 // Handle calls to runtime functions implemented in JavaScript separately as | 2577 // Handle calls to runtime functions implemented in JavaScript separately as |
| 2578 // the call follows JavaScript ABI and the callee is statically unknown. | 2578 // the call follows JavaScript ABI and the callee is statically unknown. |
| 2579 if (expr->is_jsruntime()) { | 2579 if (expr->is_jsruntime()) { |
| 2580 DCHECK(function == NULL && expr->name()->length() > 0); | 2580 DCHECK(function == NULL && expr->name()->length() > 0); |
| 2581 return VisitCallJSRuntime(expr); | 2581 return VisitCallJSRuntime(expr); |
| 2582 } | 2582 } |
| 2583 | 2583 |
| 2584 // TODO(mstarzinger): This bailout is a gigantic hack, the owner is ashamed. | 2584 // TODO(mstarzinger): This bailout is a gigantic hack, the owner is ashamed. |
| 2585 if (function->function_id == Runtime::kInlineGeneratorNext || | 2585 if (function->function_id == Runtime::kInlineGeneratorNext || |
| 2586 function->function_id == Runtime::kInlineGeneratorThrow || | 2586 function->function_id == Runtime::kInlineGeneratorThrow || |
| 2587 function->function_id == Runtime::kInlineDefaultConstructorCallSuper || | 2587 function->function_id == Runtime::kInlineDefaultConstructorCallSuper) { |
| 2588 function->function_id == Runtime::kInlineCallSuperWithSpread) { | |
| 2589 ast_context()->ProduceValue(jsgraph()->TheHoleConstant()); | 2588 ast_context()->ProduceValue(jsgraph()->TheHoleConstant()); |
| 2590 return SetStackOverflow(); | 2589 return SetStackOverflow(); |
| 2591 } | 2590 } |
| 2592 | 2591 |
| 2593 // Evaluate all arguments to the runtime call. | 2592 // Evaluate all arguments to the runtime call. |
| 2594 ZoneList<Expression*>* args = expr->arguments(); | 2593 ZoneList<Expression*>* args = expr->arguments(); |
| 2595 VisitForValues(args); | 2594 VisitForValues(args); |
| 2596 | 2595 |
| 2597 // Create node to perform the runtime call. | 2596 // Create node to perform the runtime call. |
| 2598 Runtime::FunctionId functionId = function->function_id; | 2597 Runtime::FunctionId functionId = function->function_id; |
| (...skipping 1715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4314 // Phi does not exist yet, introduce one. | 4313 // Phi does not exist yet, introduce one. |
| 4315 value = NewPhi(inputs, value, control); | 4314 value = NewPhi(inputs, value, control); |
| 4316 value->ReplaceInput(inputs - 1, other); | 4315 value->ReplaceInput(inputs - 1, other); |
| 4317 } | 4316 } |
| 4318 return value; | 4317 return value; |
| 4319 } | 4318 } |
| 4320 | 4319 |
| 4321 } // namespace compiler | 4320 } // namespace compiler |
| 4322 } // namespace internal | 4321 } // namespace internal |
| 4323 } // namespace v8 | 4322 } // namespace v8 |
| OLD | NEW |