Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 3dc6188997bdead58671bc9982202033e64f5e38..b306d476b850a72bcb9c0bbd94a39a805fda8087 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -1567,6 +1567,8 @@ class JSObject: public JSReceiver { |
// Returns true if an object has elements of FAST_ELEMENTS or |
// FAST_SMI_ONLY_ELEMENTS. |
inline bool HasFastSmiOrObjectElements(); |
+ // Returns true if an object has any of the fast elements kinds. |
+ inline bool HasFastElements(); |
// Returns true if an object has elements of FAST_DOUBLE_ELEMENTS |
// ElementsKind. |
inline bool HasFastDoubleElements(); |
@@ -2372,12 +2374,12 @@ class FixedArray: public FixedArrayBase { |
inline void set_unchecked(Heap* heap, int index, Object* value, |
WriteBarrierMode mode); |
- // Gives access to raw memory which stores the array's data. |
- inline Object** data_start(); |
- |
inline Object** GetFirstElementAddress(); |
inline bool ContainsOnlySmisOrHoles(); |
+ // Gives access to raw memory which stores the array's data. |
+ inline Object** data_start(); |
+ |
// Copy operations. |
MUST_USE_RESULT inline MaybeObject* Copy(); |
MUST_USE_RESULT MaybeObject* CopySize(int new_length); |
@@ -2479,6 +2481,9 @@ class FixedDoubleArray: public FixedArrayBase { |
return kHeaderSize + length * kDoubleSize; |
} |
+ // Gives access to raw memory which stores the array's data. |
+ inline double* data_start(); |
+ |
// Code Generation support. |
static int OffsetOfElementAt(int index) { return SizeFor(index); } |