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

Unified Diff: include/v8.h

Issue 338513002: MIPS: Unbreak big-endian build after r21774. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix kMapInstanceTypeOffset and InstanceType&BitField order on big endian. Created 6 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 | « no previous file | src/hydrogen-instructions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 56492f7c474c211743e2522c58eccf8a665cd3c4..cf4b4bad48061fa213a8952b94ef09c8f3178e18 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -5517,7 +5517,12 @@ class Internals {
// These values match non-compiler-dependent values defined within
// the implementation of v8.
static const int kHeapObjectMapOffset = 0;
+#if V8_TARGET_LITTLE_ENDIAN
static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize;
+#else
+ static const int kMapInstanceTypeOffset =
+ 1 * kApiPointerSize + kApiIntSize + 1;
+#endif
static const int kStringResourceOffset = 3 * kApiPointerSize;
static const int kOddballKindOffset = 3 * kApiPointerSize;
« no previous file with comments | « no previous file | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698