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

Unified Diff: src/spaces.cc

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/spaces.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/spaces.cc
diff --git a/src/spaces.cc b/src/spaces.cc
index d286002ac26487f4e4a011d91a4919d1226b0cbc..62d826316e3f17e4bda9f60cf252ce9509d1dacc 100644
--- a/src/spaces.cc
+++ b/src/spaces.cc
@@ -488,18 +488,6 @@ void MemoryChunk::Unlink() {
}
-size_t MemoryChunk::CommittedPhysicalMemory() {
- size_t physical;
- size_t size = area_size();
- if (VirtualMemory::CommittedPhysicalSizeInRegion(
- area_start_, size, &physical)) {
- return physical;
- } else {
- return size;
- }
-}
-
-
MemoryChunk* MemoryAllocator::AllocateChunk(intptr_t body_size,
Executability executable,
Space* owner) {
@@ -832,16 +820,6 @@ void PagedSpace::TearDown() {
}
-size_t PagedSpace::CommittedPhysicalMemory() {
- size_t size = 0;
- PageIterator it(this);
- while (it.has_next()) {
- size += it.next()->CommittedPhysicalMemory();
- }
- return size;
-}
-
-
MaybeObject* PagedSpace::FindObject(Address addr) {
// Note: this function can only be called on precisely swept spaces.
ASSERT(!heap()->mark_compact_collector()->in_use());
@@ -1407,17 +1385,6 @@ bool SemiSpace::Uncommit() {
}
-size_t SemiSpace::CommittedPhysicalMemory() {
- if (!is_committed()) return 0;
- size_t size = 0;
- NewSpacePageIterator it(this);
- while (it.has_next()) {
- size += it.next()->CommittedPhysicalMemory();
- }
- return size;
-}
-
-
bool SemiSpace::GrowTo(int new_capacity) {
if (!is_committed()) {
if (!Commit()) return false;
@@ -2722,17 +2689,6 @@ MaybeObject* LargeObjectSpace::AllocateRaw(int object_size,
}
-size_t LargeObjectSpace::CommittedPhysicalMemory() {
- size_t size = 0;
- LargePage* current = first_page_;
- while (current != NULL) {
- size += current->CommittedPhysicalMemory();
- current = current->next_page();
- }
- return size;
-}
-
-
// GC support
MaybeObject* LargeObjectSpace::FindObject(Address a) {
LargePage* page = FindPage(a);
« no previous file with comments | « src/spaces.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698