| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 2277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2288 } | 2288 } |
| 2289 p = next_page; | 2289 p = next_page; |
| 2290 } while (p != anchor() && freed_bytes < bytes_to_sweep); | 2290 } while (p != anchor() && freed_bytes < bytes_to_sweep); |
| 2291 | 2291 |
| 2292 if (p == anchor()) { | 2292 if (p == anchor()) { |
| 2293 first_unswept_page_ = Page::FromAddress(NULL); | 2293 first_unswept_page_ = Page::FromAddress(NULL); |
| 2294 } else { | 2294 } else { |
| 2295 first_unswept_page_ = p; | 2295 first_unswept_page_ = p; |
| 2296 } | 2296 } |
| 2297 | 2297 |
| 2298 heap()->LowerOldGenLimits(freed_bytes); | |
| 2299 | |
| 2300 heap()->FreeQueuedChunks(); | 2298 heap()->FreeQueuedChunks(); |
| 2301 | 2299 |
| 2302 return IsSweepingComplete(); | 2300 return IsSweepingComplete(); |
| 2303 } | 2301 } |
| 2304 | 2302 |
| 2305 | 2303 |
| 2306 void PagedSpace::EvictEvacuationCandidatesFromFreeLists() { | 2304 void PagedSpace::EvictEvacuationCandidatesFromFreeLists() { |
| 2307 if (allocation_info_.top >= allocation_info_.limit) return; | 2305 if (allocation_info_.top >= allocation_info_.limit) return; |
| 2308 | 2306 |
| 2309 if (Page::FromAllocationTop(allocation_info_.top)->IsEvacuationCandidate()) { | 2307 if (Page::FromAllocationTop(allocation_info_.top)->IsEvacuationCandidate()) { |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2859 object->ShortPrint(); | 2857 object->ShortPrint(); |
| 2860 PrintF("\n"); | 2858 PrintF("\n"); |
| 2861 } | 2859 } |
| 2862 printf(" --------------------------------------\n"); | 2860 printf(" --------------------------------------\n"); |
| 2863 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 2861 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); |
| 2864 } | 2862 } |
| 2865 | 2863 |
| 2866 #endif // DEBUG | 2864 #endif // DEBUG |
| 2867 | 2865 |
| 2868 } } // namespace v8::internal | 2866 } } // namespace v8::internal |
| OLD | NEW |