Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(689)

Unified Diff: runtime/platform/globals.h

Issue 12726011: Enables cross-compilation of the VM for ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/dart-runtime.gyp ('k') | runtime/third_party/double-conversion/src/double-conversion.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/globals.h
===================================================================
--- runtime/platform/globals.h (revision 21755)
+++ runtime/platform/globals.h (working copy)
@@ -130,6 +130,22 @@
#define ARCH_IS_32_BIT 1
#define kFpuRegisterSize 8
typedef double fpu_register_t;
+typedef struct {
+ union {
+ uint32_t u;
+ float f;
+ } data_[4];
+} simd_value_t;
+#define simd_value_safe_load(addr) \
+ (*reinterpret_cast<simd_value_t *>(addr))
+#define simd_value_safe_store(addr, value) \
+ do { \
+ reinterpret_cast<simd_value_t *>(addr)->data_[0] = value.data_[0]; \
+ reinterpret_cast<simd_value_t *>(addr)->data_[1] = value.data_[1]; \
+ reinterpret_cast<simd_value_t *>(addr)->data_[2] = value.data_[2]; \
+ reinterpret_cast<simd_value_t *>(addr)->data_[3] = value.data_[3]; \
+ } while (0)
+
#elif defined(__MIPSEL__)
#define HOST_ARCH_MIPS 1
#define ARCH_IS_32_BIT 1
« no previous file with comments | « runtime/dart-runtime.gyp ('k') | runtime/third_party/double-conversion/src/double-conversion.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698