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

Unified Diff: src/heap/spaces.h

Issue 2806493002: [heap] Move a few methods from spaces.h to spaces.cc (Closed)
Patch Set: add V8_EXPORT_PRIVATE annotations Created 3 years, 8 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 | « no previous file | src/heap/spaces.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/spaces.h
diff --git a/src/heap/spaces.h b/src/heap/spaces.h
index 54ec7e37f22d70f9c2c0964197d6ffd4546d069b..1cd7257677223484eae6dd7f43322f97f01a1f12 100644
--- a/src/heap/spaces.h
+++ b/src/heap/spaces.h
@@ -882,23 +882,15 @@ class Space : public Malloced {
// Identity used in error reporting.
AllocationSpace identity() { return id_; }
- virtual void AddAllocationObserver(AllocationObserver* observer) {
- allocation_observers_->Add(observer);
- }
+ V8_EXPORT_PRIVATE virtual void AddAllocationObserver(
+ AllocationObserver* observer);
- virtual void RemoveAllocationObserver(AllocationObserver* observer) {
- bool removed = allocation_observers_->RemoveElement(observer);
- USE(removed);
- DCHECK(removed);
- }
+ V8_EXPORT_PRIVATE virtual void RemoveAllocationObserver(
+ AllocationObserver* observer);
- virtual void PauseAllocationObservers() {
- allocation_observers_paused_ = true;
- }
+ V8_EXPORT_PRIVATE virtual void PauseAllocationObservers();
- virtual void ResumeAllocationObservers() {
- allocation_observers_paused_ = false;
- }
+ V8_EXPORT_PRIVATE virtual void ResumeAllocationObservers();
void AllocationStep(Address soon_object, int size);
« no previous file with comments | « no previous file | src/heap/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698