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 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
862 explicit MarkingVisitor(Heap* heap) : heap_(heap) { } | 862 explicit MarkingVisitor(Heap* heap) : heap_(heap) { } |
863 | 863 |
864 void VisitPointer(Object** p) { | 864 void VisitPointer(Object** p) { |
865 StaticMarkingVisitor::VisitPointer(heap_, p); | 865 StaticMarkingVisitor::VisitPointer(heap_, p); |
866 } | 866 } |
867 | 867 |
868 void VisitPointers(Object** start, Object** end) { | 868 void VisitPointers(Object** start, Object** end) { |
869 StaticMarkingVisitor::VisitPointers(heap_, start, end); | 869 StaticMarkingVisitor::VisitPointers(heap_, start, end); |
870 } | 870 } |
871 | 871 |
872 void VisitCodeTarget(Heap* heap, RelocInfo* rinfo) { | |
873 StaticMarkingVisitor::VisitCodeTarget(heap, rinfo); | |
874 } | |
875 | |
876 void VisitGlobalPropertyCell(Heap* heap, RelocInfo* rinfo) { | |
877 StaticMarkingVisitor::VisitGlobalPropertyCell(heap, rinfo); | |
878 } | |
879 | |
880 void VisitDebugTarget(Heap* heap, RelocInfo* rinfo) { | |
881 StaticMarkingVisitor::VisitDebugTarget(heap, rinfo); | |
882 } | |
883 | |
884 private: | 872 private: |
885 Heap* heap_; | 873 Heap* heap_; |
886 }; | 874 }; |
887 | 875 |
888 | 876 |
889 class CodeMarkingVisitor : public ThreadVisitor { | 877 class CodeMarkingVisitor : public ThreadVisitor { |
890 public: | 878 public: |
891 explicit CodeMarkingVisitor(MarkCompactCollector* collector) | 879 explicit CodeMarkingVisitor(MarkCompactCollector* collector) |
892 : collector_(collector) {} | 880 : collector_(collector) {} |
893 | 881 |
(...skipping 2255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3149 } | 3137 } |
3150 | 3138 |
3151 | 3139 |
3152 void MarkCompactCollector::Initialize() { | 3140 void MarkCompactCollector::Initialize() { |
3153 StaticPointersToNewGenUpdatingVisitor::Initialize(); | 3141 StaticPointersToNewGenUpdatingVisitor::Initialize(); |
3154 StaticMarkingVisitor::Initialize(); | 3142 StaticMarkingVisitor::Initialize(); |
3155 } | 3143 } |
3156 | 3144 |
3157 | 3145 |
3158 } } // namespace v8::internal | 3146 } } // namespace v8::internal |
OLD | NEW |