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

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: simplifications Created 5 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
« no previous file with comments | « src/heap/heap.h ('k') | src/isolate.h » ('j') | src/isolate.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index 8aa6fb85876ef8c7df392e87c0d04fedb5dc28c7..805ce52a4a3521c2d040d8cc894ac11348f5963b 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -2796,8 +2796,13 @@ void Heap::CreateInitialObjects() {
set_empty_script(*script);
Handle<PropertyCell> cell = factory->NewPropertyCell();
- cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid));
- set_array_protector(*cell);
+ cell->set_value(Smi::FromInt(Isolate::kArrayElementsProtectorValid));
+ set_array_elements_protector(*cell);
+
+ cell = factory->NewPropertyCell();
+ cell->set_value(
+ Smi::FromInt(Isolate::kArrayIsConcatSpreadableProtectorValid));
+ set_array_is_concat_spreadable_protector(*cell);
cell = factory->NewPropertyCell();
cell->set_value(the_hole_value());
« no previous file with comments | « src/heap/heap.h ('k') | src/isolate.h » ('j') | src/isolate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698