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

Unified Diff: src/objects.h

Issue 2541113004: [Ignition/turbo] Add a NewWithSpread bytecode. (Closed)
Patch Set: Move MustIterate to Object Created 4 years 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
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index df61275d9b17d4f78e814ab50736c10502247be3..02dbc4539ed02022679fde2c51d47073ad5f08e5 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 MustIterate();
Benedikt Meurer 2016/12/05 11:42:10 Nit: This should have a more scary^Wdescriptive na
petermarshall 2016/12/05 13:30:46 Done
+
DECLARE_VERIFIER(Object)
#ifdef VERIFY_HEAP
// Verify a pointer is a valid object pointer.

Powered by Google App Engine
This is Rietveld 408576698