Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index df61275d9b17d4f78e814ab50736c10502247be3..bf2385b1e302ea5417999ffb9116eff6bbf93a08 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -1505,6 +1505,11 @@ class Object { |
| // allow kMaxUInt32. |
| inline bool ToArrayIndex(uint32_t* index); |
| + // Returns true if the result of iterating over the object is the same |
| + // (including observable effects) as simply accessing the properties between 0 |
| + // and length. |
| + bool CanUseElementsInsteadOfIteration(); |
| + |
| DECLARE_VERIFIER(Object) |
| #ifdef VERIFY_HEAP |
| // Verify a pointer is a valid object pointer. |