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

Unified Diff: src/heap/heap.cc

Issue 2405253006: [builtins] implement Array.prototype[@@iterator] in TFJ builtins (Closed)
Patch Set: add array_iterator_protector, and check array_protector in holey fast arrays Created 4 years, 2 months 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/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index a3fa810a87e4e394b66006c812fbda5a61584474..e350bf916fcc59500e6bbe854987d31285e7e0b1 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -2862,6 +2862,10 @@ void Heap::CreateInitialObjects() {
set_array_protector(*cell);
cell = factory->NewPropertyCell();
+ cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid));
+ set_array_iterator_protector(*cell);
+
+ cell = factory->NewPropertyCell();
cell->set_value(the_hole_value());
set_empty_property_cell(*cell);

Powered by Google App Engine
This is Rietveld 408576698