s390x, ppc: Corrections to CallApiCallback calling convention

Related:
c6b0e12e4e [nojit] Refactor CallApiCallback calling convention
a31338aa08 PPC/s390: [nojit] Refactor CallApiCallback calling convention


Change-Id: I8f96c7b9a32ba3dde9dbbabb115d79fa36a0db46
Reviewed-on: https://chromium-review.googlesource.com/c/1380991
Reviewed-by: Junliang Yan <jyan@ca.ibm.com>
Reviewed-by: Joran Siu <joransiu@ca.ibm.com>
Commit-Queue: Junliang Yan <jyan@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#58496}
This commit is contained in:
Vasili Skurydzin 2018-12-17 14:52:31 -05:00 committed by Commit Bot
parent 45b1f8caaf
commit fdc32cd222
2 changed files with 2 additions and 3 deletions

View File

@ -3006,8 +3006,7 @@ void Builtins::Generate_CallApiCallback(MacroAssembler* masm) {
MemOperand(sp, (kStackFrameExtraParamSlot + 2) * kPointerSize));
// FunctionCallbackInfo::length_.
__ StoreP(argc,
MemOperand(sp, (kStackFrameExtraParamSlot + 3) * kPointerSize));
__ stw(argc, MemOperand(sp, (kStackFrameExtraParamSlot + 3) * kPointerSize));
// We also store the number of bytes to drop from the stack after returning
// from the API function here.

View File

@ -2994,7 +2994,7 @@ void Builtins::Generate_CallApiCallback(MacroAssembler* masm) {
MemOperand(sp, (kStackFrameExtraParamSlot + 2) * kPointerSize));
// FunctionCallbackInfo::length_.
__ StoreP(argc,
__ StoreW(argc,
MemOperand(sp, (kStackFrameExtraParamSlot + 3) * kPointerSize));
// We also store the number of bytes to drop from the stack after returning