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

Unified Diff: src/heap.h

Issue 18173013: AllocationSite objects weakly linked for traversal (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed final nits Created 7 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
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.h
diff --git a/src/heap.h b/src/heap.h
index 2c97fafcbcf55b8288f806e5918ab8b6e44a5486..6d12208d21776c3c9d067e9f763c696f375665ad 100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -1376,6 +1376,11 @@ class Heap {
}
Object* array_buffers_list() { return array_buffers_list_; }
+ void set_allocation_sites_list(Object* object) {
+ allocation_sites_list_ = object;
+ }
+ Object* allocation_sites_list() { return allocation_sites_list_; }
+ Object** allocation_sites_list_address() { return &allocation_sites_list_; }
// Number of mark-sweeps.
unsigned int ms_count() { return ms_count_; }
@@ -2045,9 +2050,10 @@ class Heap {
// last GC.
bool old_gen_exhausted_;
+ // Weak list heads, threaded through the objects.
Object* native_contexts_list_;
-
Object* array_buffers_list_;
+ Object* allocation_sites_list_;
StoreBufferRebuilder store_buffer_rebuilder_;
@@ -2197,6 +2203,7 @@ class Heap {
void ProcessNativeContexts(WeakObjectRetainer* retainer, bool record_slots);
void ProcessArrayBuffers(WeakObjectRetainer* retainer, bool record_slots);
+ void ProcessAllocationSites(WeakObjectRetainer* retainer, bool record_slots);
// Called on heap tear-down.
void TearDownArrayBuffers();
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698