Reviewers: machenbach,

Description:
Take difference in algining fields in structs into account.

BUG=none
[email protected]
LOG=n

Please review this at https://codereview.chromium.org/78203002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+5, -0 lines):
  M include/v8.h


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;


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to