OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 static int RelocateMapObject(HeapObject* obj); | 350 static int RelocateMapObject(HeapObject* obj); |
351 | 351 |
352 // Relocates an old object. | 352 // Relocates an old object. |
353 static int RelocateOldPointerObject(HeapObject* obj); | 353 static int RelocateOldPointerObject(HeapObject* obj); |
354 static int RelocateOldDataObject(HeapObject* obj); | 354 static int RelocateOldDataObject(HeapObject* obj); |
355 | 355 |
356 // Relocate a property cell object. | 356 // Relocate a property cell object. |
357 static int RelocateCellObject(HeapObject* obj); | 357 static int RelocateCellObject(HeapObject* obj); |
358 | 358 |
359 // Helper function. | 359 // Helper function. |
360 static inline int RelocateOldNonCodeObject(HeapObject* obj, PagedSpace* space)
; | 360 static inline int RelocateOldNonCodeObject(HeapObject* obj, |
| 361 PagedSpace* space); |
361 | 362 |
362 // Relocates an object in the code space. | 363 // Relocates an object in the code space. |
363 static int RelocateCodeObject(HeapObject* obj); | 364 static int RelocateCodeObject(HeapObject* obj); |
364 | 365 |
365 // Copy a new object. | 366 // Copy a new object. |
366 static int RelocateNewObject(HeapObject* obj); | 367 static int RelocateNewObject(HeapObject* obj); |
367 | 368 |
368 // ----------------------------------------------------------------------- | 369 // ----------------------------------------------------------------------- |
369 // Phase 5: Rebuilding remembered sets. | 370 // Phase 5: Rebuilding remembered sets. |
370 // | 371 // |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 | 412 |
412 friend class UnmarkObjectVisitor; | 413 friend class UnmarkObjectVisitor; |
413 static void UnmarkObject(HeapObject* obj); | 414 static void UnmarkObject(HeapObject* obj); |
414 #endif | 415 #endif |
415 }; | 416 }; |
416 | 417 |
417 | 418 |
418 } } // namespace v8::internal | 419 } } // namespace v8::internal |
419 | 420 |
420 #endif // V8_MARK_COMPACT_H_ | 421 #endif // V8_MARK_COMPACT_H_ |
OLD | NEW |