summaryrefslogtreecommitdiff
path: root/src/jit/utils.h
diff options
context:
space:
mode:
authorBrian Sullivan <briansul@microsoft.com>2018-04-26 11:13:32 -0700
committerBrian Sullivan <briansul@microsoft.com>2018-04-26 11:13:32 -0700
commit383481c9ffad0291383ee406a575239b9ad76728 (patch)
tree1b3375068c7771f3899b855f91970a33226c8b76 /src/jit/utils.h
parent7273f13db6f26f24764fdf13c690b5a2e7215940 (diff)
downloadcoreclr-383481c9ffad0291383ee406a575239b9ad76728.tar.gz
coreclr-383481c9ffad0291383ee406a575239b9ad76728.tar.bz2
coreclr-383481c9ffad0291383ee406a575239b9ad76728.zip
Allocate the lvaOutgoingArgSpaceVar very early, right after the user locals.
This ensures that it gets a low LclVar number so that we don't hit the IMPL_LIMITATION associated with offsets > 255 for LclVar numbers above 32767
Diffstat (limited to 'src/jit/utils.h')
-rw-r--r--src/jit/utils.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/jit/utils.h b/src/jit/utils.h
index f30c2202e1..acda8cf989 100644
--- a/src/jit/utils.h
+++ b/src/jit/utils.h
@@ -374,6 +374,17 @@ public:
#endif // DEBUG
}
+ // When dumping stuff we could try to read a PhasedVariable
+ // This method tells us whether we should read the PhasedVariable
+ bool HasFinalValue() const
+ {
+#ifdef DEBUG
+ return (const_cast<PhasedVar*>(this))->m_writePhase == false;
+#else
+ return true;
+#endif // DEBUG
+ }
+
// Functions/operators to write the value. Must be in the write phase.
PhasedVar& operator=(const T& value)