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

Unified Diff: src/objects.h

Issue 1176263004: Introduce a base pointer field in FixedTypedArrayBase and teach GC about it (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 79a8fbafbe8769104feef8626efb7ff82b8db7ff..7b9796481eab87e4a6602069ce7161662834f2b5 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4593,8 +4593,21 @@ class ExternalFloat64Array: public ExternalArray {
class FixedTypedArrayBase: public FixedArrayBase {
public:
+ // [base_pointer]: For now, points to the FixedTypedArrayBase itself.
+ DECL_ACCESSORS(base_pointer, Object)
+
+ // Dispatched behavior.
+ inline void FixedTypedArrayBaseIterateBody(ObjectVisitor* v);
+
+ template <typename StaticVisitor>
+ inline void FixedTypedArrayBaseIterateBody();
+
DECLARE_CAST(FixedTypedArrayBase)
+ static const int kBasePointerOffset =
+ FixedArrayBase::kHeaderSize + kPointerSize;
+ static const int kHeaderSize = kBasePointerOffset + kPointerSize;
+
static const int kDataOffset = DOUBLE_POINTER_ALIGN(kHeaderSize);
inline int size();
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698