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

Unified Diff: src/heap.cc

Issue 7553012: Prototype of mark-and-compact support for Harmony weak maps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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.cc
diff --git a/src/heap.cc b/src/heap.cc
index efdb5499d212ef55c16cc214f5a088736d47553e..b14ff912707f0ae6bc1d40b8634dd7561ad7c730 100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -1292,6 +1292,10 @@ class ScavengingVisitor : public StaticVisitorBase {
&ObjectEvacuationStrategy<POINTER_OBJECT>::
template VisitSpecialized<SharedFunctionInfo::kSize>);
+ table_.Register(kVisitJSWeakMap,
+ &ObjectEvacuationStrategy<POINTER_OBJECT>::
+ Visit);
+
table_.Register(kVisitJSRegExp,
&ObjectEvacuationStrategy<POINTER_OBJECT>::
Visit);
@@ -2210,6 +2214,8 @@ bool Heap::CreateInitialObjects() {
// Handling of script id generation is in FACTORY->NewScript.
set_last_script_id(undefined_value());
+ set_encountered_weak_maps(Smi::FromInt(0));
+
// Initialize keyed lookup cache.
isolate_->keyed_lookup_cache()->Clear();

Powered by Google App Engine
This is Rietveld 408576698