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

Unified Diff: src/globals.h

Issue 17153011: DataView implementation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes Created 7 years, 6 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 | « src/factory.cc ('k') | src/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/globals.h
diff --git a/src/globals.h b/src/globals.h
index 59931bf5ddb3ba7a9908e97b43aaa7915e731791..b42170ecded49b03c9a151d96fe6a149351703a4 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -148,6 +148,19 @@ namespace internal {
#endif
#endif
+// Determine architecture endiannes (we only support little-endian).
+#if defined(V8_TARGET_ARCH_IA32)
+#define V8_TARGET_LITTLE_ENDIAN 1
+#elif defined(V8_TARGET_ARCH_X64)
+#define V8_TARGET_LITTLE_ENDIAN 1
+#elif defined(V8_TARGET_ARCH_ARM)
+#define V8_TARGET_LITTLE_ENDIAN 1
+#elif defined(V8_TARGET_ARCH_MIPS)
+#define V8_TARGET_LITTLE_ENDIAN 1
+#else
+#error Unknown target architecture endiannes
+#endif
+
// Support for alternative bool type. This is only enabled if the code is
// compiled with USE_MYBOOL defined. This catches some nasty type bugs.
// For instance, 'bool b = "false";' results in b == true! This is a hidden
« no previous file with comments | « src/factory.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698