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 fd20b43634c388f37c247fc0985f7e4cc68d75b5..0624c28288b390e1dcb93e2c3505f1b595eb1f91 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -2271,10 +2271,10 @@ void FullCodeGenerator::EmitCall(Call* expr, ConvertReceiverMode mode) { |
EmitProfilingCounterHandlingForReturnSequence(true); |
} |
Handle<Code> code = |
- CodeFactory::CallIC(isolate(), arg_count, mode, expr->tail_call_mode()) |
- .code(); |
+ CodeFactory::CallIC(isolate(), mode, expr->tail_call_mode()).code(); |
__ Move(rdx, SmiFromSlot(expr->CallFeedbackICSlot())); |
__ movp(rdi, Operand(rsp, (arg_count + 1) * kPointerSize)); |
+ __ Set(rax, arg_count); |
__ call(code, RelocInfo::CODE_TARGET); |
OperandStackDepthDecrement(arg_count + 1); |