| 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 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 collector->RecordSlot(start, p, o); | 914 collector->RecordSlot(start, p, o); |
| 915 HeapObject* obj = HeapObject::cast(o); | 915 HeapObject* obj = HeapObject::cast(o); |
| 916 MarkBit mark = Marking::MarkBitFrom(obj); | 916 MarkBit mark = Marking::MarkBitFrom(obj); |
| 917 if (mark.Get()) continue; | 917 if (mark.Get()) continue; |
| 918 VisitUnmarkedObject(collector, obj); | 918 VisitUnmarkedObject(collector, obj); |
| 919 } | 919 } |
| 920 return true; | 920 return true; |
| 921 } | 921 } |
| 922 | 922 |
| 923 static inline void VisitExternalReference(Address* p) { } | 923 static inline void VisitExternalReference(Address* p) { } |
| 924 static inline void VisitExternalReference(RelocInfo* rinfo) { } |
| 924 static inline void VisitRuntimeEntry(RelocInfo* rinfo) { } | 925 static inline void VisitRuntimeEntry(RelocInfo* rinfo) { } |
| 925 | 926 |
| 926 private: | 927 private: |
| 927 class DataObjectVisitor { | 928 class DataObjectVisitor { |
| 928 public: | 929 public: |
| 929 template<int size> | 930 template<int size> |
| 930 static void VisitSpecialized(Map* map, HeapObject* object) { | 931 static void VisitSpecialized(Map* map, HeapObject* object) { |
| 931 } | 932 } |
| 932 | 933 |
| 933 static void Visit(Map* map, HeapObject* object) { | 934 static void Visit(Map* map, HeapObject* object) { |
| (...skipping 2840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3774 while (buffer != NULL) { | 3775 while (buffer != NULL) { |
| 3775 SlotsBuffer* next_buffer = buffer->next(); | 3776 SlotsBuffer* next_buffer = buffer->next(); |
| 3776 DeallocateBuffer(buffer); | 3777 DeallocateBuffer(buffer); |
| 3777 buffer = next_buffer; | 3778 buffer = next_buffer; |
| 3778 } | 3779 } |
| 3779 *buffer_address = NULL; | 3780 *buffer_address = NULL; |
| 3780 } | 3781 } |
| 3781 | 3782 |
| 3782 | 3783 |
| 3783 } } // namespace v8::internal | 3784 } } // namespace v8::internal |
| OLD | NEW |