Revision: 13502
Author:   [email protected]
Date:     Fri Jan 25 00:54:11 2013
Log:      Unbreak build (offsetof only works for POD types)

[email protected]

Review URL: https://codereview.chromium.org/12040094
http://code.google.com/p/v8/source/detail?r=13502

Modified:
 /branches/bleeding_edge/src/global-handles.cc

=======================================
--- /branches/bleeding_edge/src/global-handles.cc       Fri Jan 25 00:31:46 2013
+++ /branches/bleeding_edge/src/global-handles.cc       Fri Jan 25 00:54:11 2013
@@ -60,8 +60,8 @@
   }

   Node() {
- STATIC_ASSERT(offsetof(Node, class_id_) == Internals::kNodeClassIdOffset);
-    STATIC_ASSERT(offsetof(Node, flags_) == Internals::kNodeFlagsOffset);
+    ASSERT(OFFSET_OF(Node, class_id_) == Internals::kNodeClassIdOffset);
+    ASSERT(OFFSET_OF(Node, flags_) == Internals::kNodeFlagsOffset);
     STATIC_ASSERT(static_cast<int>(NodeState::kMask) ==
                   Internals::kNodeStateMask);
     STATIC_ASSERT(WEAK == Internals::kNodeStateIsWeakValue);

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev


Reply via email to