From 76d62e836a876251aa459920d60aa0392f16cf6d Mon Sep 17 00:00:00 2001 From: cdai2 Date: Tue, 20 Jan 2015 14:47:52 +0800 Subject: [PATCH] X87: add stub for api function calls with known number of parameters port 8c990d1716d33db4834b7e3c115874d482291e8c original commit message: add stub for api function calls with known number of parameters BUG= R=weiliang.lin@intel.com Review URL: https://codereview.chromium.org/852263004 Cr-Commit-Position: refs/heads/master@{#26148} --- src/x87/code-stubs-x87.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc index fd97a14..96603e0 100644 --- a/src/x87/code-stubs-x87.cc +++ b/src/x87/code-stubs-x87.cc @@ -4489,7 +4489,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); -- 2.7.4