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

Unified Diff: src/heap/heap.cc

Issue 1409123003: [runtime] Avoid @@isConcatSpreadable lookup for fast path Array.prototype.concat (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: merging with master Created 4 years, 9 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 aca86484bd01b8a1dc372ac0fac8a175dd2b266c..1cbe59d8b0d34cee0df91e38955030e8ee82297f 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -2907,6 +2907,11 @@ void Heap::CreateInitialObjects() {
set_array_protector(*cell);
cell = factory->NewPropertyCell();
+ cell->set_value(
+ Smi::FromInt(Isolate::kArrayIsConcatSpreadableProtectorValid));
+ set_array_is_concat_spreadable_protector(*cell);
Toon Verwaest 2016/03/31 08:09:46 Unless you want to be able to add dependencies to
Camillo Bruni 2016/04/06 13:14:32 ok.
+
+ cell = factory->NewPropertyCell();
cell->set_value(the_hole_value());
set_empty_property_cell(*cell);

Powered by Google App Engine
This is Rietveld 408576698