Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index 1149348e09ce86c4ecac7ea32a32b67b09b9e86e..56b4075211ce533ab175c7d63437dff60d421754 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -4772,7 +4772,7 @@ void CallApiFunctionStub::Generate(MacroAssembler* masm) { |
void CallApiAccessorStub::Generate(MacroAssembler* masm) { |
bool is_store = this->is_store(); |
- int argc = is_store ? 1 : 0; |
+ int argc = this->argc(); |
bool call_data_undefined = this->call_data_undefined(); |
CallApiFunctionStubHelper(masm, ParameterCount(argc), is_store, |
call_data_undefined); |