Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: src/mark-compact.cc

Issue 8467010: Refactor embedded pointer visitors for the serializer (Closed)
Patch Set: Rebased on r9943, updated based on code review comments Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ia32/assembler-ia32-inl.h ('k') | src/objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 2839 matching lines...) Expand 10 before | Expand all | Expand 10 after
3773 while (buffer != NULL) { 3774 while (buffer != NULL) {
3774 SlotsBuffer* next_buffer = buffer->next(); 3775 SlotsBuffer* next_buffer = buffer->next();
3775 DeallocateBuffer(buffer); 3776 DeallocateBuffer(buffer);
3776 buffer = next_buffer; 3777 buffer = next_buffer;
3777 } 3778 }
3778 *buffer_address = NULL; 3779 *buffer_address = NULL;
3779 } 3780 }
3780 3781
3781 3782
3782 } } // namespace v8::internal 3783 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32-inl.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698