Index: src/global-handles.cc |
diff --git a/src/global-handles.cc b/src/global-handles.cc |
index 3bb7706eb5e9c7c362b3c835e56cdfa4241df059..aa6542baee922f8f4e517cd6764f8b8ed71290ee 100644 |
--- a/src/global-handles.cc |
+++ b/src/global-handles.cc |
@@ -39,13 +39,13 @@ class GlobalHandles::Node { |
// Maps handle location (slot) to the containing node. |
static Node* FromLocation(Object** location) { |
- DCHECK(OFFSET_OF(Node, object_) == 0); |
+ DCHECK(offsetof(Node, object_) == 0); |
return reinterpret_cast<Node*>(location); |
} |
Node() { |
- DCHECK(OFFSET_OF(Node, class_id_) == Internals::kNodeClassIdOffset); |
- DCHECK(OFFSET_OF(Node, flags_) == Internals::kNodeFlagsOffset); |
+ DCHECK(offsetof(Node, class_id_) == Internals::kNodeClassIdOffset); |
+ DCHECK(offsetof(Node, flags_) == Internals::kNodeFlagsOffset); |
STATIC_ASSERT(static_cast<int>(NodeState::kMask) == |
Internals::kNodeStateMask); |
STATIC_ASSERT(WEAK == Internals::kNodeStateIsWeakValue); |