Chromium Code Reviews

Unified Diff: src/heap/heap.cc

Issue 1689733002: Optimize @@species based on a global 'protector' cell (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « src/heap/heap.h ('k') | src/isolate.h » ('j') | src/isolate.cc » ('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 540c2ec173b48c106be42cb7825d999147b2f71d..eeae8d53921444b933a8c989aabb2d42956cb4fa 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -2851,6 +2851,10 @@ void Heap::CreateInitialObjects() {
cell->set_value(the_hole_value());
set_empty_property_cell(*cell);
+ Handle<PropertyCell> species_cell = factory->NewPropertyCell();
+ species_cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid));
+ set_species_protector(*species_cell);
+
set_weak_stack_trace_list(Smi::FromInt(0));
set_noscript_shared_function_infos(Smi::FromInt(0));
« no previous file with comments | « src/heap/heap.h ('k') | src/isolate.h » ('j') | src/isolate.cc » ('J')

Powered by Google App Engine