OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 HeapObjectIterator it(heap->code_space()); | 330 HeapObjectIterator it(heap->code_space()); |
331 | 331 |
332 for (Object* object = it.Next(); object != NULL; object = it.Next()) { | 332 for (Object* object = it.Next(); object != NULL; object = it.Next()) { |
333 VerifyNativeContextSeparationVisitor visitor; | 333 VerifyNativeContextSeparationVisitor visitor; |
334 Code::cast(object)->CodeIterateBody(&visitor); | 334 Code::cast(object)->CodeIterateBody(&visitor); |
335 } | 335 } |
336 } | 336 } |
337 #endif | 337 #endif |
338 | 338 |
339 | 339 |
| 340 void MarkCompactCollector::TearDown() { |
| 341 AbortCompaction(); |
| 342 } |
| 343 |
| 344 |
340 void MarkCompactCollector::AddEvacuationCandidate(Page* p) { | 345 void MarkCompactCollector::AddEvacuationCandidate(Page* p) { |
341 p->MarkEvacuationCandidate(); | 346 p->MarkEvacuationCandidate(); |
342 evacuation_candidates_.Add(p); | 347 evacuation_candidates_.Add(p); |
343 } | 348 } |
344 | 349 |
345 | 350 |
346 static void TraceFragmentation(PagedSpace* space) { | 351 static void TraceFragmentation(PagedSpace* space) { |
347 int number_of_pages = space->CountTotalPages(); | 352 int number_of_pages = space->CountTotalPages(); |
348 intptr_t reserved = (number_of_pages * space->AreaSize()); | 353 intptr_t reserved = (number_of_pages * space->AreaSize()); |
349 intptr_t free = reserved - space->SizeOfObjects(); | 354 intptr_t free = reserved - space->SizeOfObjects(); |
(...skipping 3987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4337 while (buffer != NULL) { | 4342 while (buffer != NULL) { |
4338 SlotsBuffer* next_buffer = buffer->next(); | 4343 SlotsBuffer* next_buffer = buffer->next(); |
4339 DeallocateBuffer(buffer); | 4344 DeallocateBuffer(buffer); |
4340 buffer = next_buffer; | 4345 buffer = next_buffer; |
4341 } | 4346 } |
4342 *buffer_address = NULL; | 4347 *buffer_address = NULL; |
4343 } | 4348 } |
4344 | 4349 |
4345 | 4350 |
4346 } } // namespace v8::internal | 4351 } } // namespace v8::internal |
OLD | NEW |