diff options
Diffstat (limited to 'src/jit/utils.h')
-rw-r--r-- | src/jit/utils.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/jit/utils.h b/src/jit/utils.h index 1cd35903dd..b41cf84a1e 100644 --- a/src/jit/utils.h +++ b/src/jit/utils.h @@ -381,6 +381,15 @@ public: return m_value; } + // Mark the value as read only; explicitly change the variable to the "read" phase. + void MarkAsReadOnly() const + { +#ifdef DEBUG + assert(m_initialized); + (const_cast<PhasedVar*>(this))->m_writePhase = false; +#endif // DEBUG + } + // Functions/operators to write the value. Must be in the write phase. PhasedVar& operator=(const T& value) @@ -638,6 +647,8 @@ public: static unsigned __int64 convertDoubleToUInt64(double d); static double round(double x); + + static float round(float x); }; // The CLR requires that critical section locks be initialized via its ClrCreateCriticalSection API...but |