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

Side by Side Diff: src/objects.h

Issue 441017: Make heap serialization nondestructive. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | src/serialize.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 // collection. Only valid during a scavenge collection (specifically, 823 // collection. Only valid during a scavenge collection (specifically,
824 // when all map words are heap object pointers, ie. not during a full GC). 824 // when all map words are heap object pointers, ie. not during a full GC).
825 inline bool IsForwardingAddress(); 825 inline bool IsForwardingAddress();
826 826
827 // Create a map word from a forwarding address. 827 // Create a map word from a forwarding address.
828 static inline MapWord FromForwardingAddress(HeapObject* object); 828 static inline MapWord FromForwardingAddress(HeapObject* object);
829 829
830 // View this map word as a forwarding address. 830 // View this map word as a forwarding address.
831 inline HeapObject* ToForwardingAddress(); 831 inline HeapObject* ToForwardingAddress();
832 832
833 // True if this map word is a serialization address. This will only be the
834 // case during a destructive serialization of the heap.
835 inline bool IsSerializationAddress();
836
837 // Create a map word from a serialization address.
838 static inline MapWord FromSerializationAddress(int raw);
839
840 // View this map word as a serialization address.
841 inline int ToSerializationAddress();
842
843 // Marking phase of full collection: the map word of live objects is 833 // Marking phase of full collection: the map word of live objects is
844 // marked, and may be marked as overflowed (eg, the object is live, its 834 // marked, and may be marked as overflowed (eg, the object is live, its
845 // children have not been visited, and it does not fit in the marking 835 // children have not been visited, and it does not fit in the marking
846 // stack). 836 // stack).
847 837
848 // True if this map word's mark bit is set. 838 // True if this map word's mark bit is set.
849 inline bool IsMarked(); 839 inline bool IsMarked();
850 840
851 // Return this map word but with its mark bit set. 841 // Return this map word but with its mark bit set.
852 inline void SetMark(); 842 inline void SetMark();
(...skipping 4031 matching lines...) Expand 10 before | Expand all | Expand 10 after
4884 } else { 4874 } else {
4885 value &= ~(1 << bit_position); 4875 value &= ~(1 << bit_position);
4886 } 4876 }
4887 return value; 4877 return value;
4888 } 4878 }
4889 }; 4879 };
4890 4880
4891 } } // namespace v8::internal 4881 } } // namespace v8::internal
4892 4882
4893 #endif // V8_OBJECTS_H_ 4883 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | src/serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698