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

Unified Diff: include/v8.h

Issue 78203002: Take difference in algining fields in structs into account. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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 | no next file » | 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 fc94f86dc8a4001e93ed708712a60ea3459c5737..0fbfc56cf3ebb67fe2b8d19e2a8c4096131a1b24 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -5474,7 +5474,12 @@ class Internals {
static const int kExternalAsciiRepresentationTag = 0x06;
static const int kIsolateEmbedderDataOffset = 1 * kApiPointerSize;
+#if V8_CC_MSVC
+ // MSVS packs structs differently than other compilers.
+ static const int kIsolateRootsOffset = 7 * kApiPointerSize;
+#else
static const int kIsolateRootsOffset = 6 * kApiPointerSize;
+#endif
static const int kUndefinedValueRootIndex = 5;
static const int kNullValueRootIndex = 7;
static const int kTrueValueRootIndex = 8;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698