Index: src/utils.h |
diff --git a/src/utils.h b/src/utils.h |
index acc06d3afaaddffc4e55fbdf902b956a9cdaf541..f6e50e519196235738f1e167d3bae605177a99a3 100644 |
--- a/src/utils.h |
+++ b/src/utils.h |
@@ -520,6 +520,15 @@ const int kMinComplexMemCopy = 8; |
// ---------------------------------------------------------------------------- |
// Miscellaneous |
+// Memory offset for lower and higher bits in a 64 bit integer. |
+#if defined(V8_TARGET_LITTLE_ENDIAN) |
+static const int kInt64LowerHalfMemoryOffset = 0; |
+static const int kInt64UpperHalfMemoryOffset = 4; |
+#elif defined(V8_TARGET_BIG_ENDIAN) |
+static const int kInt64LowerHalfMemoryOffset = 4; |
+static const int kInt64UpperHalfMemoryOffset = 0; |
+#endif // V8_TARGET_LITTLE_ENDIAN |
+ |
// A static resource holds a static instance that can be reserved in |
// a local scope using an instance of Access. Attempts to re-reserve |
// the instance will cause an error. |