| 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 2432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2443 // Patch callee on the environment. | 2443 // Patch callee on the environment. |
| 2444 environment()->Poke(arg_count + 1, new_callee); | 2444 environment()->Poke(arg_count + 1, new_callee); |
| 2445 } | 2445 } |
| 2446 | 2446 |
| 2447 // Create node to perform the function call. | 2447 // Create node to perform the function call. |
| 2448 VectorSlotPair feedback = CreateVectorSlotPair(expr->CallFeedbackICSlot()); | 2448 VectorSlotPair feedback = CreateVectorSlotPair(expr->CallFeedbackICSlot()); |
| 2449 const Operator* call = javascript()->CallFunction( | 2449 const Operator* call = javascript()->CallFunction( |
| 2450 args->length() + 2, feedback, receiver_hint, expr->tail_call_mode()); | 2450 args->length() + 2, feedback, receiver_hint, expr->tail_call_mode()); |
| 2451 PrepareEagerCheckpoint(possibly_eval ? expr->EvalId() : expr->CallId()); | 2451 PrepareEagerCheckpoint(possibly_eval ? expr->EvalId() : expr->CallId()); |
| 2452 Node* value = ProcessArguments(call, args->length() + 2); | 2452 Node* value = ProcessArguments(call, args->length() + 2); |
| 2453 environment()->Push(value->InputAt(0)); // The callee passed to the call. | 2453 // The callee passed to the call, we just need to push something here to |
| 2454 // satisfy the bailout location contract. The fullcodegen code will not |
| 2455 // ever look at this value, so we just push optimized_out here. |
| 2456 environment()->Push(jsgraph()->OptimizedOutConstant()); |
| 2454 PrepareFrameState(value, expr->ReturnId(), OutputFrameStateCombine::Push()); | 2457 PrepareFrameState(value, expr->ReturnId(), OutputFrameStateCombine::Push()); |
| 2455 environment()->Drop(1); | 2458 environment()->Drop(1); |
| 2456 ast_context()->ProduceValue(expr, value); | 2459 ast_context()->ProduceValue(expr, value); |
| 2457 } | 2460 } |
| 2458 | 2461 |
| 2459 | 2462 |
| 2460 void AstGraphBuilder::VisitCallSuper(Call* expr) { | 2463 void AstGraphBuilder::VisitCallSuper(Call* expr) { |
| 2461 SuperCallReference* super = expr->expression()->AsSuperCallReference(); | 2464 SuperCallReference* super = expr->expression()->AsSuperCallReference(); |
| 2462 DCHECK_NOT_NULL(super); | 2465 DCHECK_NOT_NULL(super); |
| 2463 | 2466 |
| (...skipping 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4322 // Phi does not exist yet, introduce one. | 4325 // Phi does not exist yet, introduce one. |
| 4323 value = NewPhi(inputs, value, control); | 4326 value = NewPhi(inputs, value, control); |
| 4324 value->ReplaceInput(inputs - 1, other); | 4327 value->ReplaceInput(inputs - 1, other); |
| 4325 } | 4328 } |
| 4326 return value; | 4329 return value; |
| 4327 } | 4330 } |
| 4328 | 4331 |
| 4329 } // namespace compiler | 4332 } // namespace compiler |
| 4330 } // namespace internal | 4333 } // namespace internal |
| 4331 } // namespace v8 | 4334 } // namespace v8 |
| OLD | NEW |