Unbreak build (offsetof only works for POD types)

TBR=yangguo@chromium.org

Review URL: https://codereview.chromium.org/12040094

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13502 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 52d10a68
...@@ -60,8 +60,8 @@ class GlobalHandles::Node { ...@@ -60,8 +60,8 @@ class GlobalHandles::Node {
} }
Node() { Node() {
STATIC_ASSERT(offsetof(Node, class_id_) == Internals::kNodeClassIdOffset); ASSERT(OFFSET_OF(Node, class_id_) == Internals::kNodeClassIdOffset);
STATIC_ASSERT(offsetof(Node, flags_) == Internals::kNodeFlagsOffset); ASSERT(OFFSET_OF(Node, flags_) == Internals::kNodeFlagsOffset);
STATIC_ASSERT(static_cast<int>(NodeState::kMask) == STATIC_ASSERT(static_cast<int>(NodeState::kMask) ==
Internals::kNodeStateMask); Internals::kNodeStateMask);
STATIC_ASSERT(WEAK == Internals::kNodeStateIsWeakValue); STATIC_ASSERT(WEAK == Internals::kNodeStateIsWeakValue);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment