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

Side by Side Diff: src/objects.h

Issue 5798002: Provide baseline for new GC infrastructure. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 10 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 918 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 929
930 // True if this map word's overflow bit is set. 930 // True if this map word's overflow bit is set.
931 inline bool IsOverflowed(); 931 inline bool IsOverflowed();
932 932
933 // Return this map word but with its overflow bit set. 933 // Return this map word but with its overflow bit set.
934 inline void SetOverflow(); 934 inline void SetOverflow();
935 935
936 // Return this map word but with its overflow bit cleared. 936 // Return this map word but with its overflow bit cleared.
937 inline void ClearOverflow(); 937 inline void ClearOverflow();
938 938
939
940 // Compacting phase of a full compacting collection: the map word of live 939 // Compacting phase of a full compacting collection: the map word of live
941 // objects contains an encoding of the original map address along with the 940 // objects contains an encoding of the original map address along with the
942 // forwarding address (represented as an offset from the first live object 941 // forwarding address (represented as an offset from the first live object
943 // in the same page as the (old) object address). 942 // in the same page as the (old) object address).
944 943
945 // Create a map word from a map address and a forwarding address offset. 944 // Create a map word from a map address and a forwarding address offset.
946 static inline MapWord EncodeAddress(Address map_address, int offset); 945 static inline MapWord EncodeAddress(Address map_address, int offset);
947 946
948 // Return the map address encoded in this map word. 947 // Return the map address encoded in this map word.
949 inline Address DecodeMapAddress(MapSpace* map_space); 948 inline Address DecodeMapAddress(MapSpace* map_space);
(...skipping 5151 matching lines...) Expand 10 before | Expand all | Expand 10 after
6101 } else { 6100 } else {
6102 value &= ~(1 << bit_position); 6101 value &= ~(1 << bit_position);
6103 } 6102 }
6104 return value; 6103 return value;
6105 } 6104 }
6106 }; 6105 };
6107 6106
6108 } } // namespace v8::internal 6107 } } // namespace v8::internal
6109 6108
6110 #endif // V8_OBJECTS_H_ 6109 #endif // V8_OBJECTS_H_
OLDNEW
« src/mark-compact.cc ('K') | « src/mark-compact.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698