| 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 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 846 void ProcessMarkingDeque(); | 846 void ProcessMarkingDeque(); |
| 847 | 847 |
| 848 // Mark objects reachable (transitively) from objects in the marking stack | 848 // Mark objects reachable (transitively) from objects in the marking stack |
| 849 // or overflowed in the heap. This respects references only considered in | 849 // or overflowed in the heap. This respects references only considered in |
| 850 // the final atomic marking pause including the following: | 850 // the final atomic marking pause including the following: |
| 851 // - Processing of objects reachable through Harmony WeakMaps. | 851 // - Processing of objects reachable through Harmony WeakMaps. |
| 852 // - Objects reachable due to host application logic like object groups | 852 // - Objects reachable due to host application logic like object groups |
| 853 // or implicit references' groups. | 853 // or implicit references' groups. |
| 854 void ProcessEphemeralMarking(ObjectVisitor* visitor); | 854 void ProcessEphemeralMarking(ObjectVisitor* visitor); |
| 855 | 855 |
| 856 // If the call-site of the top optimized code was not prepared for |
| 857 // deoptimization, then treat the maps in the code as strong pointers, |
| 858 // otherwise a map can die and deoptimize the code. |
| 859 void ProcessTopOptimizedFrame(ObjectVisitor* visitor); |
| 860 |
| 856 // Mark objects reachable (transitively) from objects in the marking | 861 // Mark objects reachable (transitively) from objects in the marking |
| 857 // stack. This function empties the marking stack, but may leave | 862 // stack. This function empties the marking stack, but may leave |
| 858 // overflowed objects in the heap, in which case the marking stack's | 863 // overflowed objects in the heap, in which case the marking stack's |
| 859 // overflow flag will be set. | 864 // overflow flag will be set. |
| 860 void EmptyMarkingDeque(); | 865 void EmptyMarkingDeque(); |
| 861 | 866 |
| 862 // Refill the marking stack with overflowed objects from the heap. This | 867 // Refill the marking stack with overflowed objects from the heap. This |
| 863 // function either leaves the marking stack full or clears the overflow | 868 // function either leaves the marking stack full or clears the overflow |
| 864 // flag on the marking stack. | 869 // flag on the marking stack. |
| 865 void RefillMarkingDeque(); | 870 void RefillMarkingDeque(); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 private: | 963 private: |
| 959 MarkCompactCollector* collector_; | 964 MarkCompactCollector* collector_; |
| 960 }; | 965 }; |
| 961 | 966 |
| 962 | 967 |
| 963 const char* AllocationSpaceName(AllocationSpace space); | 968 const char* AllocationSpaceName(AllocationSpace space); |
| 964 | 969 |
| 965 } } // namespace v8::internal | 970 } } // namespace v8::internal |
| 966 | 971 |
| 967 #endif // V8_MARK_COMPACT_H_ | 972 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |