| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 : heap_(heap), | 52 : heap_(heap), |
| 53 new_space_bitmap_(NULL) { | 53 new_space_bitmap_(NULL) { |
| 54 } | 54 } |
| 55 | 55 |
| 56 inline MarkBit MarkBitFromNewSpace(HeapObject* obj); | 56 inline MarkBit MarkBitFromNewSpace(HeapObject* obj); |
| 57 | 57 |
| 58 static inline MarkBit MarkBitFromOldSpace(HeapObject* obj); | 58 static inline MarkBit MarkBitFromOldSpace(HeapObject* obj); |
| 59 | 59 |
| 60 inline MarkBit MarkBitFrom(Address addr); | 60 inline MarkBit MarkBitFrom(Address addr); |
| 61 | 61 |
| 62 // For embedding in generated code. |
| 63 inline Address new_space_bitmap() { |
| 64 return reinterpret_cast<Address>(new_space_bitmap_); |
| 65 } |
| 66 |
| 62 inline MarkBit MarkBitFrom(HeapObject* obj) { | 67 inline MarkBit MarkBitFrom(HeapObject* obj) { |
| 63 return MarkBitFrom(reinterpret_cast<Address>(obj)); | 68 return MarkBitFrom(reinterpret_cast<Address>(obj)); |
| 64 } | 69 } |
| 65 | 70 |
| 66 inline void ClearRange(Address addr, int size); | 71 inline void ClearRange(Address addr, int size); |
| 67 | 72 |
| 68 void TransferMark(Address old_start, Address new_start); | 73 void TransferMark(Address old_start, Address new_start); |
| 69 | 74 |
| 70 bool Setup(); | 75 bool Setup(); |
| 71 | 76 |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 CodeFlusher* code_flusher_; | 482 CodeFlusher* code_flusher_; |
| 478 | 483 |
| 479 friend class Heap; | 484 friend class Heap; |
| 480 friend class OverflowedObjectsScanner; | 485 friend class OverflowedObjectsScanner; |
| 481 }; | 486 }; |
| 482 | 487 |
| 483 | 488 |
| 484 } } // namespace v8::internal | 489 } } // namespace v8::internal |
| 485 | 490 |
| 486 #endif // V8_MARK_COMPACT_H_ | 491 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |