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

Unified Diff: src/objects.h

Issue 1327403002: [objects] do not visit ArrayBuffer's backing store (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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
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> {};
« no previous file with comments | « src/heap/objects-visiting-inl.h ('k') | src/objects-inl.h » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698