Index: src/globals.h |
diff --git a/src/globals.h b/src/globals.h |
index db80a7e584d33a7d9685c3d2e4fd668599c42f8f..6e7e8685deb9f9baf2adfeb95fef22c55ae9335b 100644 |
--- a/src/globals.h |
+++ b/src/globals.h |
@@ -221,6 +221,14 @@ typedef byte* Address; |
// ----------------------------------------------------------------------------- |
// Constants |
+struct float32x4_value_t { float storage[4]; }; |
+struct int32x4_value_t { int32_t storage[4]; }; |
+union xmm_value_t { |
+ double d[2]; |
+ float32x4_value_t f; |
+ int32x4_value_t u; |
+}; |
+ |
const int KB = 1024; |
const int MB = KB * KB; |
const int GB = KB * KB * KB; |
@@ -237,14 +245,17 @@ const int kMinUInt16 = 0; |
const uint32_t kMaxUInt32 = 0xFFFFFFFFu; |
-const int kCharSize = sizeof(char); // NOLINT |
-const int kShortSize = sizeof(short); // NOLINT |
-const int kIntSize = sizeof(int); // NOLINT |
-const int kInt32Size = sizeof(int32_t); // NOLINT |
-const int kInt64Size = sizeof(int64_t); // NOLINT |
-const int kDoubleSize = sizeof(double); // NOLINT |
-const int kIntptrSize = sizeof(intptr_t); // NOLINT |
-const int kPointerSize = sizeof(void*); // NOLINT |
+const int kCharSize = sizeof(char); // NOLINT |
+const int kShortSize = sizeof(short); // NOLINT |
+const int kIntSize = sizeof(int); // NOLINT |
+const int kInt32Size = sizeof(int32_t); // NOLINT |
+const int kInt64Size = sizeof(int64_t); // NOLINT |
+const int kDoubleSize = sizeof(double); // NOLINT |
+const int kFloatSize = sizeof(float); // NOLINT |
+const int kFloat32x4Size = sizeof(float32x4_value_t); // NOLINT |
+const int kInt32x4Size = sizeof(int32x4_value_t); // NOLINT |
+const int kIntptrSize = sizeof(intptr_t); // NOLINT |
+const int kPointerSize = sizeof(void*); // NOLINT |
const int kRegisterSize = kPointerSize; |
const int kPCOnStackSize = kRegisterSize; |
const int kFPOnStackSize = kRegisterSize; |