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

Unified Diff: src/spaces.h

Issue 11023010: Revert r12625 due to sandbox incompatibility. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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/platform-win32.cc ('k') | src/spaces.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/spaces.h
diff --git a/src/spaces.h b/src/spaces.h
index 4ccd7889583fe7266265718c5fd3c0dce9ff4340..97bcaa59ab4a6e0d4b31a2a954c292cdbfae5a35 100644
--- a/src/spaces.h
+++ b/src/spaces.h
@@ -653,8 +653,6 @@ class MemoryChunk {
return static_cast<int>(area_end() - area_start());
}
- size_t CommittedPhysicalMemory();
-
protected:
MemoryChunk* next_chunk_;
MemoryChunk* prev_chunk_;
@@ -1530,9 +1528,6 @@ class PagedSpace : public Space {
// spaces this equals the capacity.
intptr_t CommittedMemory() { return Capacity(); }
- // Total amount of physical memory committed for this space.
- size_t CommittedPhysicalMemory();
-
// Sets the capacity, the available space and the wasted space to zero.
// The stats are rebuilt during sweeping by adding each page to the
// capacity and the size when it is encountered. As free spaces are
@@ -1999,8 +1994,6 @@ class SemiSpace : public Space {
static void Swap(SemiSpace* from, SemiSpace* to);
- size_t CommittedPhysicalMemory();
-
private:
// Flips the semispace between being from-space and to-space.
// Copies the flags into the masked positions on all pages in the space.
@@ -2198,12 +2191,6 @@ class NewSpace : public Space {
return Capacity();
}
- size_t CommittedPhysicalMemory() {
- return to_space_.CommittedPhysicalMemory()
- + (from_space_.is_committed() ? from_space_.CommittedPhysicalMemory()
- : 0);
- }
-
// Return the available bytes without growing.
intptr_t Available() {
return Capacity() - Size();
@@ -2571,8 +2558,6 @@ class LargeObjectSpace : public Space {
return Size();
}
- size_t CommittedPhysicalMemory();
-
int PageCount() {
return page_count_;
}
« no previous file with comments | « src/platform-win32.cc ('k') | src/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698