| 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 |
| 872 private: | 884 private: |
| 873 Heap* heap_; | 885 Heap* heap_; |
| 874 }; | 886 }; |
| 875 | 887 |
| 876 | 888 |
| 877 class CodeMarkingVisitor : public ThreadVisitor { | 889 class CodeMarkingVisitor : public ThreadVisitor { |
| 878 public: | 890 public: |
| 879 explicit CodeMarkingVisitor(MarkCompactCollector* collector) | 891 explicit CodeMarkingVisitor(MarkCompactCollector* collector) |
| 880 : collector_(collector) {} | 892 : collector_(collector) {} |
| 881 | 893 |
| (...skipping 2255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3137 } | 3149 } |
| 3138 | 3150 |
| 3139 | 3151 |
| 3140 void MarkCompactCollector::Initialize() { | 3152 void MarkCompactCollector::Initialize() { |
| 3141 StaticPointersToNewGenUpdatingVisitor::Initialize(); | 3153 StaticPointersToNewGenUpdatingVisitor::Initialize(); |
| 3142 StaticMarkingVisitor::Initialize(); | 3154 StaticMarkingVisitor::Initialize(); |
| 3143 } | 3155 } |
| 3144 | 3156 |
| 3145 | 3157 |
| 3146 } } // namespace v8::internal | 3158 } } // namespace v8::internal |
| OLD | NEW |