Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index f7d21802270cfc93c19c7cbc7d573c2b01562c9d..4b7df116501b8563175c1a0c282bc978bdb95265 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -7174,8 +7174,10 @@ class JSWeakMap: public JSObject { |
class Foreign: public HeapObject { |
public: |
// [address]: field containing the address. |
- inline Address address(); |
- inline void set_address(Address value); |
+ inline Address foreign_address(); |
+ inline void set_foreign_address(Address value); |
+ |
+ Address address() { OS::DebugBreak(); return NULL; } |
// Casting. |
static inline Foreign* cast(Object* obj); |
@@ -7198,10 +7200,10 @@ class Foreign: public HeapObject { |
// Layout description. |
- static const int kAddressOffset = HeapObject::kHeaderSize; |
- static const int kSize = kAddressOffset + kPointerSize; |
+ static const int kForeignAddressOffset = HeapObject::kHeaderSize; |
+ static const int kSize = kForeignAddressOffset + kPointerSize; |
- STATIC_CHECK(kAddressOffset == Internals::kForeignAddressOffset); |
+ STATIC_CHECK(kForeignAddressOffset == Internals::kForeignAddressOffset); |
private: |
DISALLOW_IMPLICIT_CONSTRUCTORS(Foreign); |