Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index d27af577387e7081b3bbf3ad416cb551342a5fa3..bb16a3e16e60e21ebb8695d0c02f3b86b30b859e 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -8768,6 +8768,12 @@ class JSArrayBuffer: public JSObject { |
// [byte_length]: length in bytes |
DECL_ACCESSORS(byte_length, Object) |
+ // [flags] |
+ DECL_ACCESSORS(flag, Smi) |
+ |
+ inline bool is_external(); |
+ inline void set_is_external(bool value); |
+ |
// Casting. |
static inline JSArrayBuffer* cast(Object* obj); |
@@ -8777,9 +8783,13 @@ class JSArrayBuffer: public JSObject { |
static const int kBackingStoreOffset = JSObject::kHeaderSize; |
static const int kByteLengthOffset = kBackingStoreOffset + kPointerSize; |
- static const int kSize = kByteLengthOffset + kPointerSize; |
+ static const int kFlagOffset = kByteLengthOffset + kPointerSize; |
+ static const int kSize = kFlagOffset + kPointerSize; |
private: |
+ // Bit position in a flag |
+ static const int kIsExternalBit = 0; |
+ |
DISALLOW_IMPLICIT_CONSTRUCTORS(JSArrayBuffer); |
}; |