From: Steve MacLean, Qualcomm Datacenter Technologies, Inc Date: Wed, 15 Mar 2017 23:21:04 +0000 (+0000) Subject: [Arm64] Simplify trackedStackPtrsContig logic X-Git-Tag: submit/tizen/20210909.063632~11030^2~7408^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d32087d498b288a46bc391d94e022ff3c544f90;p=platform%2Fupstream%2Fdotnet%2Fruntime.git [Arm64] Simplify trackedStackPtrsContig logic Follow amd64 example and always mark stk-ptrs discontiguous Commit migrated from https://github.com/dotnet/coreclr/commit/c43abaf6e6e0adc64d2b9d828a7b87041d719b95 --- diff --git a/src/coreclr/src/jit/codegencommon.cpp b/src/coreclr/src/jit/codegencommon.cpp index 90a9149..bb03295 100644 --- a/src/coreclr/src/jit/codegencommon.cpp +++ b/src/coreclr/src/jit/codegencommon.cpp @@ -3150,14 +3150,11 @@ void CodeGen::genGenerateCode(void** codePtr, ULONG* nativeSizeOfCode) bool trackedStackPtrsContig; // are tracked stk-ptrs contiguous ? -#ifdef _TARGET_AMD64_ +#if defined(_TARGET_AMD64_) || defined(_TARGET_ARM64_) trackedStackPtrsContig = false; #elif defined(_TARGET_ARM_) // On arm due to prespilling of arguments, tracked stk-ptrs may not be contiguous trackedStackPtrsContig = !compiler->opts.compDbgEnC && !compiler->compIsProfilerHookNeeded(); -#elif defined(_TARGET_ARM64_) - // Incoming vararg registers are homed on the top of the stack. Tracked var may not be contiguous. - trackedStackPtrsContig = !compiler->opts.compDbgEnC && !compiler->info.compIsVarArgs; #else trackedStackPtrsContig = !compiler->opts.compDbgEnC; #endif