Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 25fdb80915346ed079062b81da68e3c9b7013e36..6c93fe679f8d401e2d448eded28798494796860e 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -7277,6 +7277,10 @@ enum BuiltinFunctionId { |
kMathPowHalf, |
// These are manually assigned to special getters during bootstrapping. |
kArrayBufferByteLength, |
+ kArrayEntries, |
+ kArrayKeys, |
+ kArrayValues, |
+ kArrayIteratorNext, |
kDataViewBuffer, |
kDataViewByteLength, |
kDataViewByteOffset, |
@@ -7290,7 +7294,10 @@ enum BuiltinFunctionId { |
kGlobalIsNaN, |
kTypedArrayByteLength, |
kTypedArrayByteOffset, |
+ kTypedArrayEntries, |
+ kTypedArrayKeys, |
kTypedArrayLength, |
+ kTypedArrayValues, |
kSharedArrayBufferByteLength, |
kStringIterator, |
kStringIteratorNext, |
@@ -10691,6 +10698,10 @@ class JSArrayIterator : public JSObject { |
// allocated. |
DECL_ACCESSORS(object_map, Object) |
+ // Return the ElementsKind that a JSArrayIterator's [[IteratedObject]] is |
+ // expected to have, based on its instance type. |
+ static ElementsKind ElementsKindForInstanceType(InstanceType instance_type); |
+ |
static const int kIteratedObjectOffset = JSObject::kHeaderSize; |
static const int kNextIndexOffset = kIteratedObjectOffset + kPointerSize; |
static const int kIteratedObjectMapOffset = kNextIndexOffset + kPointerSize; |