| 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 | 430 |
| 431 inline Heap* heap() const { return heap_; } | 431 inline Heap* heap() const { return heap_; } |
| 432 | 432 |
| 433 CodeFlusher* code_flusher() { return code_flusher_; } | 433 CodeFlusher* code_flusher() { return code_flusher_; } |
| 434 inline bool is_code_flushing_enabled() const { return code_flusher_ != NULL; } | 434 inline bool is_code_flushing_enabled() const { return code_flusher_ != NULL; } |
| 435 void EnableCodeFlushing(bool enable); | 435 void EnableCodeFlushing(bool enable); |
| 436 | 436 |
| 437 enum SweeperType { | 437 enum SweeperType { |
| 438 CONSERVATIVE, | 438 CONSERVATIVE, |
| 439 LAZY_CONSERVATIVE, | 439 LAZY_CONSERVATIVE, |
| 440 PRECISE | 440 PRECISE, |
| 441 PRECISE_CELLS, |
| 442 PRECISE_MAPS |
| 441 }; | 443 }; |
| 442 | 444 |
| 443 #ifdef DEBUG | 445 #ifdef DEBUG |
| 444 void VerifyMarkbitsAreClean(); | 446 void VerifyMarkbitsAreClean(); |
| 445 static void VerifyMarkbitsAreClean(PagedSpace* space); | 447 static void VerifyMarkbitsAreClean(PagedSpace* space); |
| 446 static void VerifyMarkbitsAreClean(NewSpace* space); | 448 static void VerifyMarkbitsAreClean(NewSpace* space); |
| 447 #endif | 449 #endif |
| 448 | 450 |
| 449 // Sweep a single page from the given space conservatively. | 451 // Sweep a single page from the given space conservatively. |
| 450 // Return a number of reclaimed bytes. | 452 // Return a number of reclaimed bytes. |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 | 720 |
| 719 List<Page*> evacuation_candidates_; | 721 List<Page*> evacuation_candidates_; |
| 720 | 722 |
| 721 friend class Heap; | 723 friend class Heap; |
| 722 }; | 724 }; |
| 723 | 725 |
| 724 | 726 |
| 725 } } // namespace v8::internal | 727 } } // namespace v8::internal |
| 726 | 728 |
| 727 #endif // V8_MARK_COMPACT_H_ | 729 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |