summaryrefslogtreecommitdiff
path: root/src/jit/jit.h
diff options
context:
space:
mode:
authorPat Gavlin <pagavlin@microsoft.com>2016-03-31 10:02:12 -0700
committerPat Gavlin <pagavlin@microsoft.com>2016-03-31 11:10:26 -0700
commit1e9cadbd87fffbb4342a5090941b349a4d0a2fd9 (patch)
treeb162bd2ca1cfe6dfed2dae0d61ac9e0745bc52a8 /src/jit/jit.h
parent4e2b9b6be2b59a2cbf6663cccd6bc1b6091f6eac (diff)
downloadcoreclr-1e9cadbd87fffbb4342a5090941b349a4d0a2fd9.tar.gz
coreclr-1e9cadbd87fffbb4342a5090941b349a4d0a2fd9.tar.bz2
coreclr-1e9cadbd87fffbb4342a5090941b349a4d0a2fd9.zip
Replace uses of _WIN64 with _HOST_64BIT_.
This terminology is more accurate. This change also corrects a few bits of code that were making target-related decisions based on the host's bitness.
Diffstat (limited to 'src/jit/jit.h')
-rw-r--r--src/jit/jit.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/jit/jit.h b/src/jit/jit.h
index bfdb195e28..59863a41ae 100644
--- a/src/jit/jit.h
+++ b/src/jit/jit.h
@@ -90,6 +90,10 @@
#error Unsupported or unset host architecture
#endif
+#if defined(_HOST_AMD64_) || defined(_HOST_ARM64_)
+ #define _HOST_64BIT_
+#endif
+
#if defined(_TARGET_X86_)
#if defined(_TARGET_ARM_)
#error Cannot define both _TARGET_X86_ and _TARGET_ARM_
@@ -786,8 +790,11 @@ extern int jitNativeCode(CORINFO_METHOD_HANDLE methodHnd,
void * inlineInfoPtr
);
-const size_t DEAD_BEEF = NOT_WIN64(0xDEADBEEF)
- WIN64_ONLY(0xDEADBEEFDEADBEEF);
+#ifdef _HOST_64BIT_
+const size_t INVALID_POINTER_VALUE = 0xFEEDFACEABADF00D;
+#else
+const size_t INVALID_POINTER_VALUE = 0xFEEDFACE;
+#endif
// Constants for making sure size_t fit into smaller types.
const size_t MAX_USHORT_SIZE_T = static_cast<size_t>(static_cast<unsigned short>(-1));