| Index: src/full-codegen/x64/full-codegen-x64.cc
|
| diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc
|
| index 3655c91ad0c2b6dc4147803d072b1eacd9dbaf55..e6bbdc77dc2fd1489a50936d5ecb206b2d303c38 100644
|
| --- a/src/full-codegen/x64/full-codegen-x64.cc
|
| +++ b/src/full-codegen/x64/full-codegen-x64.cc
|
| @@ -2840,6 +2840,7 @@ void FullCodeGenerator::EmitCall(Call* expr, CallICState::CallType call_type) {
|
| VisitForStackValue(args->at(i));
|
| }
|
|
|
| + PrepareForBailoutForId(expr->CallId(), NO_REGISTERS);
|
| SetCallPosition(expr, arg_count);
|
| Handle<Code> ic = CodeFactory::CallIC(isolate(), arg_count, call_type).code();
|
| __ Move(rdx, SmiFromSlot(expr->CallFeedbackICSlot()));
|
| @@ -3793,6 +3794,7 @@ void FullCodeGenerator::EmitCall(CallRuntime* expr) {
|
| for (Expression* const arg : *args) {
|
| VisitForStackValue(arg);
|
| }
|
| + PrepareForBailoutForId(expr->CallId(), NO_REGISTERS);
|
| // Move target to rdi.
|
| int const argc = args->length() - 2;
|
| __ movp(rdi, Operand(rsp, (argc + 1) * kPointerSize));
|
| @@ -3816,6 +3818,7 @@ void FullCodeGenerator::EmitCallFunction(CallRuntime* expr) {
|
| }
|
| VisitForAccumulatorValue(args->last()); // Function.
|
|
|
| + PrepareForBailoutForId(expr->CallId(), TOS_REG);
|
| Label runtime, done;
|
| // Check for non-function argument (including proxy).
|
| __ JumpIfSmi(rax, &runtime);
|
|
|