Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index f547c8388cf9df637a2436ba64c4bd3342cbef7a..7b54507f2a55ba7605bac7eb700b86d72c4a00fc 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -9676,6 +9676,18 @@ class JSArrayBuffer: public JSObject { |
| static const int kSizeWithInternalFields = |
| kSize + v8::ArrayBuffer::kInternalFieldCount * kPointerSize; |
| + class BodyDescriptor { |
|
jochen (gone - plz use gerrit)
2015/09/14 10:04:36
instead of having a body description, just add two
fedor.indutny
2015/09/14 17:08:16
Acknowledged.
|
| + public: |
| + static const int kStartOffset = JSObject::BodyDescriptor::kStartOffset; |
| + static const int kEndOffset = kSizeWithInternalFields - kPointerSize; |
| + static const int kSize = kSizeWithInternalFields; |
| + |
| + template <typename StaticVisitor> |
| + static inline void IterateBody(Heap* heap, HeapObject* obj); |
| + |
| + static inline void IterateBody(HeapObject* obj, ObjectVisitor* v); |
| + }; |
| + |
| class IsExternal : public BitField<bool, 1, 1> {}; |
| class IsNeuterable : public BitField<bool, 2, 1> {}; |
| class WasNeutered : public BitField<bool, 3, 1> {}; |