diff options
author | Brian Sullivan <briansul@microsoft.com> | 2016-06-09 10:46:57 -0700 |
---|---|---|
committer | Brian Sullivan <briansul@microsoft.com> | 2016-06-09 13:34:58 -0700 |
commit | 15690118463f18adc6411c3c4fb839e824e61a61 (patch) | |
tree | 0861efd63c746656894c504d89665f64010efc9e /src/jit/register_arg_convention.h | |
parent | ce40049d1a4d94a63581694cbb3fd18222e318aa (diff) | |
download | coreclr-15690118463f18adc6411c3c4fb839e824e61a61.tar.gz coreclr-15690118463f18adc6411c3c4fb839e824e61a61.tar.bz2 coreclr-15690118463f18adc6411c3c4fb839e824e61a61.zip |
Code review cleanup items and moved some items into LEGACY_BACKEND ifdefs
From Codereview feedback:
Use BAD_VAR_NUM in a couple places instead of (unsigned)-1
In struct InitVarDscInfo
Renamed hasRetBuf to hasRetBufArg
In struct RegState:
Moved field rsCurRegArmNum into LEGACY_BACKEND ifdef
Removed instance field RegState::rsMaxRegArgNum as it is unnecessary
Reordered the fields from largest to smallest
In struct GenTreeCall node:
Moved field gtCallRegUsedMask into LEGACY_BACKEND ifdef
Changes to genRegArgNext to work correct for X64/UNIX (where it is not currently used)
Document the behavaior when given REG_ARG_LAST
Diffstat (limited to 'src/jit/register_arg_convention.h')
-rw-r--r-- | src/jit/register_arg_convention.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/jit/register_arg_convention.h b/src/jit/register_arg_convention.h index 41d829619d..40db9b8136 100644 --- a/src/jit/register_arg_convention.h +++ b/src/jit/register_arg_convention.h @@ -18,7 +18,7 @@ struct InitVarDscInfo unsigned maxIntRegArgNum; unsigned maxFloatRegArgNum; - bool hasRetBuf; + bool hasRetBufArg; #ifdef _TARGET_ARM_ // Support back-filling of FP parameters. This is similar to code in gtMorphArgs() that @@ -30,11 +30,11 @@ struct InitVarDscInfo public: // set to initial values - void Init(LclVarDsc *lvaTable, bool _hasRetBuf) + void Init(LclVarDsc *lvaTable, bool _hasRetBufArg) { - hasRetBuf = _hasRetBuf; - varDsc = lvaTable; - varNum = 0; + hasRetBufArg = _hasRetBufArg; + varDsc = &lvaTable[0]; // the first argument LclVar 0 + varNum = 0; // the first argument varNum 0 intRegArgNum = 0; floatRegArgNum = 0; maxIntRegArgNum = MAX_REG_ARG; |