OLD | NEW |
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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 static void SetSnapshotCacheSize(int size); | 231 static void SetSnapshotCacheSize(int size); |
232 | 232 |
233 protected: | 233 protected: |
234 // Where the pointed-to object can be found: | 234 // Where the pointed-to object can be found: |
235 enum Where { | 235 enum Where { |
236 kNewObject = 0, // Object is next in snapshot. | 236 kNewObject = 0, // Object is next in snapshot. |
237 // 1-8 One per space. | 237 // 1-8 One per space. |
238 kRootArray = 0x9, // Object is found in root array. | 238 kRootArray = 0x9, // Object is found in root array. |
239 kPartialSnapshotCache = 0xa, // Object is in the cache. | 239 kPartialSnapshotCache = 0xa, // Object is in the cache. |
240 kExternalReference = 0xb, // Pointer to an external reference. | 240 kExternalReference = 0xb, // Pointer to an external reference. |
241 // 0xc-0xf Free. | 241 kSkip = 0xc, // Skip a pointer sized cell. |
| 242 // 0xd-0xf Free. |
242 kBackref = 0x10, // Object is described relative to end. | 243 kBackref = 0x10, // Object is described relative to end. |
243 // 0x11-0x18 One per space. | 244 // 0x11-0x18 One per space. |
244 // 0x19-0x1f Common backref offsets. | 245 // 0x19-0x1f Common backref offsets. |
245 kFromStart = 0x20, // Object is described relative to start. | 246 kFromStart = 0x20, // Object is described relative to start. |
246 // 0x21-0x28 One per space. | 247 // 0x21-0x28 One per space. |
247 // 0x29-0x2f Free. | 248 // 0x29-0x2f Free. |
248 // 0x30-0x3f Used by misc tags below. | 249 // 0x30-0x3f Used by misc tags below. |
249 kPointedToMask = 0x3f | 250 kPointedToMask = 0x3f |
250 }; | 251 }; |
251 | 252 |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 virtual int RootIndex(HeapObject* o) { return kInvalidRootIndex; } | 628 virtual int RootIndex(HeapObject* o) { return kInvalidRootIndex; } |
628 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { | 629 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { |
629 return false; | 630 return false; |
630 } | 631 } |
631 }; | 632 }; |
632 | 633 |
633 | 634 |
634 } } // namespace v8::internal | 635 } } // namespace v8::internal |
635 | 636 |
636 #endif // V8_SERIALIZE_H_ | 637 #endif // V8_SERIALIZE_H_ |
OLD | NEW |