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

Unified Diff: src/heap/heap.cc

Issue 2465253011: Fastpath some spread-call desugaring. (Closed)
Patch Set: Handles double arrays too Created 4 years, 1 month 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') | no next file with comments »
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 c231623d52a16243bacdfe9b617916009ab0efe2..ad8d480933336669007abb0840207658671655b7 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -2823,7 +2823,7 @@ void Heap::CreateInitialObjects() {
set_empty_script(*script);
Handle<PropertyCell> cell = factory->NewPropertyCell();
- cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid));
+ cell->set_value(Smi::FromInt(Isolate::kProtectorValid));
set_array_protector(*cell);
cell = factory->NewPropertyCell();
@@ -2831,25 +2831,29 @@ void Heap::CreateInitialObjects() {
set_empty_property_cell(*cell);
cell = factory->NewPropertyCell();
- cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid));
+ cell->set_value(Smi::FromInt(Isolate::kProtectorValid));
set_has_instance_protector(*cell);
Handle<Cell> is_concat_spreadable_cell = factory->NewCell(
- handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate()));
+ handle(Smi::FromInt(Isolate::kProtectorValid), isolate()));
set_is_concat_spreadable_protector(*is_concat_spreadable_cell);
Handle<Cell> species_cell = factory->NewCell(
- handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate()));
+ handle(Smi::FromInt(Isolate::kProtectorValid), isolate()));
set_species_protector(*species_cell);
cell = factory->NewPropertyCell();
- cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid));
+ cell->set_value(Smi::FromInt(Isolate::kProtectorValid));
set_string_length_protector(*cell);
Handle<Cell> fast_array_iteration_cell = factory->NewCell(
- handle(Smi::FromInt(Isolate::kArrayProtectorValid), isolate()));
+ handle(Smi::FromInt(Isolate::kProtectorValid), isolate()));
set_fast_array_iteration_protector(*fast_array_iteration_cell);
+ Handle<Cell> array_iterator_cell = factory->NewCell(
+ handle(Smi::FromInt(Isolate::kProtectorValid), isolate()));
+ set_array_iterator_protector(*array_iterator_cell);
+
set_serialized_templates(empty_fixed_array());
set_weak_stack_trace_list(Smi::kZero);
« no previous file with comments | « src/heap/heap.h ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698