From 80beef05c62dc44d5895479ae78e404846004fc0 Mon Sep 17 00:00:00 2001 From: Sergey Andreenko Date: Mon, 21 Sep 2020 18:37:47 -0700 Subject: [PATCH] Rename `stackSize` to `GetStackSize`. --- src/coreclr/src/jit/compiler.h | 3 ++- src/coreclr/src/jit/morph.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/coreclr/src/jit/compiler.h b/src/coreclr/src/jit/compiler.h index b73592da64ca01..1b184290d6a1f8 100644 --- a/src/coreclr/src/jit/compiler.h +++ b/src/coreclr/src/jit/compiler.h @@ -1613,7 +1613,8 @@ struct fgArgTabEntry return 0; } - unsigned stackSize() const + // Get the number of bytes that this argument is occyping on the stack. + unsigned GetStackSize() const { return (TARGET_POINTER_SIZE * this->numSlots); } diff --git a/src/coreclr/src/jit/morph.cpp b/src/coreclr/src/jit/morph.cpp index 52ed8b3bb5eba3..1936dc20ab3c5e 100644 --- a/src/coreclr/src/jit/morph.cpp +++ b/src/coreclr/src/jit/morph.cpp @@ -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) {