Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jit preparation for arm64 apple: Use bytes in fgArgTabEntry. #42503

Merged
merged 10 commits into from
Oct 1, 2020
3 changes: 2 additions & 1 deletion src/coreclr/src/jit/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -1613,7 +1613,8 @@ struct fgArgTabEntry
return 0;
}

unsigned stackSize() const
// Get the number of bytes that this argument is occyping on the stack.
sandreenko marked this conversation as resolved.
Show resolved Hide resolved
unsigned GetStackSize() const
{
return (TARGET_POINTER_SIZE * this->numSlots);
}
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/src/jit/morph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6695,7 +6695,7 @@ bool Compiler::fgCanFastTailCall(GenTreeCall* callee, const char** failReason)
{
fgArgTabEntry* arg = argInfo->GetArgEntry(index, false);

calleeArgStackSize += arg->stackSize();
calleeArgStackSize += arg->GetStackSize();
}

auto reportFastTailCallDecision = [&](const char* thisFailReason) {
Expand Down