Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 336c9c3db77a43280caa1f9cb30d2cfc3118e161..bfb162fddcdc9fb392f278fffb570bf0634ca06e 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -7279,6 +7279,10 @@ enum BuiltinFunctionId { |
kMathPowHalf, |
// These are manually assigned to special getters during bootstrapping. |
kArrayBufferByteLength, |
+ kArrayEntries, |
+ kArrayKeys, |
+ kArrayValues, |
+ kArrayIteratorNext, |
kDataViewBuffer, |
kDataViewByteLength, |
kDataViewByteOffset, |
@@ -7292,7 +7296,10 @@ enum BuiltinFunctionId { |
kGlobalIsNaN, |
kTypedArrayByteLength, |
kTypedArrayByteOffset, |
+ kTypedArrayEntries, |
+ kTypedArrayKeys, |
kTypedArrayLength, |
+ kTypedArrayValues, |
kSharedArrayBufferByteLength, |
kStringIterator, |
kStringIteratorNext, |
@@ -10709,6 +10716,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; |