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

Unified Diff: src/global-handles.cc

Issue 12040094: Unbreak build (offsetof only works for POD types) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/global-handles.cc
diff --git a/src/global-handles.cc b/src/global-handles.cc
index 6377af6e6c39e5437307286f95357b1ba3961323..51e904e8a8df8a46b1b8502b63344a1901f05f81 100644
--- a/src/global-handles.cc
+++ b/src/global-handles.cc
@@ -60,8 +60,8 @@ class GlobalHandles::Node {
}
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);
« 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