| 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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 // from being flushed. | 617 // from being flushed. |
| 618 void PrepareThreadForCodeFlushing(Isolate* isolate, ThreadLocalTop* top); | 618 void PrepareThreadForCodeFlushing(Isolate* isolate, ThreadLocalTop* top); |
| 619 | 619 |
| 620 void PrepareForCodeFlushing(); | 620 void PrepareForCodeFlushing(); |
| 621 | 621 |
| 622 // Marking operations for objects reachable from roots. | 622 // Marking operations for objects reachable from roots. |
| 623 void MarkLiveObjects(); | 623 void MarkLiveObjects(); |
| 624 | 624 |
| 625 void AfterMarking(); | 625 void AfterMarking(); |
| 626 | 626 |
| 627 // Marks the object black and pushes it on the marking stack. |
| 628 // This is for non-incremental marking. |
| 627 INLINE(void MarkObject(HeapObject* obj, MarkBit mark_bit)); | 629 INLINE(void MarkObject(HeapObject* obj, MarkBit mark_bit)); |
| 628 | 630 |
| 631 // Marks the object black. This is for non-incremental marking. |
| 629 INLINE(void SetMark(HeapObject* obj, MarkBit mark_bit)); | 632 INLINE(void SetMark(HeapObject* obj, MarkBit mark_bit)); |
| 630 | 633 |
| 634 // Clears the cache of ICs related to this map. |
| 635 INLINE(void ClearCacheOnMap(Map* map)); |
| 636 |
| 631 void ProcessNewlyMarkedObject(HeapObject* obj); | 637 void ProcessNewlyMarkedObject(HeapObject* obj); |
| 632 | 638 |
| 633 // Creates back pointers for all map transitions, stores them in | 639 // Creates back pointers for all map transitions, stores them in |
| 634 // the prototype field. The original prototype pointers are restored | 640 // the prototype field. The original prototype pointers are restored |
| 635 // in ClearNonLiveTransitions(). All JSObject maps | 641 // in ClearNonLiveTransitions(). All JSObject maps |
| 636 // connected by map transitions have the same prototype object, which | 642 // connected by map transitions have the same prototype object, which |
| 637 // is why we can use this field temporarily for back pointers. | 643 // is why we can use this field temporarily for back pointers. |
| 638 void CreateBackPointers(); | 644 void CreateBackPointers(); |
| 639 | 645 |
| 640 // Mark a Map and its DescriptorArray together, skipping transitions. | 646 // Mark a Map and its DescriptorArray together, skipping transitions. |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 | 753 |
| 748 friend class Heap; | 754 friend class Heap; |
| 749 }; | 755 }; |
| 750 | 756 |
| 751 | 757 |
| 752 const char* AllocationSpaceName(AllocationSpace space); | 758 const char* AllocationSpaceName(AllocationSpace space); |
| 753 | 759 |
| 754 } } // namespace v8::internal | 760 } } // namespace v8::internal |
| 755 | 761 |
| 756 #endif // V8_MARK_COMPACT_H_ | 762 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |