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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 class ZoneScopeInfo; | 250 class ZoneScopeInfo; |
251 | 251 |
252 typedef bool (*WeakSlotCallback)(Object** pointer); | 252 typedef bool (*WeakSlotCallback)(Object** pointer); |
253 | 253 |
254 // ----------------------------------------------------------------------------- | 254 // ----------------------------------------------------------------------------- |
255 // Miscellaneous | 255 // Miscellaneous |
256 | 256 |
257 // NOTE: SpaceIterator depends on AllocationSpace enumeration values being | 257 // NOTE: SpaceIterator depends on AllocationSpace enumeration values being |
258 // consecutive. | 258 // consecutive. |
259 enum AllocationSpace { | 259 enum AllocationSpace { |
260 NEW_SPACE, // Semispaces collected with copying collector. | 260 NEW_SPACE, // Semispaces collected with copying collector. |
261 OLD_POINTER_SPACE, // Must be first of the paged spaces - see PagedSpaces. | 261 OLD_POINTER_SPACE, // May contain pointers to new space. |
262 OLD_DATA_SPACE, // May not have pointers to new space. | 262 OLD_DATA_SPACE, // Must not have pointers to new space. |
263 CODE_SPACE, // Also one of the old spaces. Marked executable. | 263 CODE_SPACE, // No pointers to new space, marked executable. |
264 MAP_SPACE, // Only map objects. | 264 MAP_SPACE, // Only and all map objects. |
265 LO_SPACE, // Large objects. | 265 CELL_SPACE, // Only and all cell objects. |
| 266 LO_SPACE, // Promoted large objects. |
| 267 |
266 FIRST_SPACE = NEW_SPACE, | 268 FIRST_SPACE = NEW_SPACE, |
267 LAST_SPACE = LO_SPACE // <= 5 (see kSpaceBits and kLOSpacePointer) | 269 LAST_SPACE = LO_SPACE |
268 }; | 270 }; |
269 const int kSpaceTagSize = 3; | 271 const int kSpaceTagSize = 3; |
270 const int kSpaceTagMask = (1 << kSpaceTagSize) - 1; | 272 const int kSpaceTagMask = (1 << kSpaceTagSize) - 1; |
271 | 273 |
272 | 274 |
273 // A flag that indicates whether objects should be pretenured when | 275 // A flag that indicates whether objects should be pretenured when |
274 // allocated (allocated directly into the old generation) or not | 276 // allocated (allocated directly into the old generation) or not |
275 // (allocated in the young generation if the object size and type | 277 // (allocated in the young generation if the object size and type |
276 // allows). | 278 // allows). |
277 enum PretenureFlag { NOT_TENURED, TENURED }; | 279 enum PretenureFlag { NOT_TENURED, TENURED }; |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 | 560 |
559 Dest dest; | 561 Dest dest; |
560 memcpy(&dest, &source, sizeof(dest)); | 562 memcpy(&dest, &source, sizeof(dest)); |
561 return dest; | 563 return dest; |
562 } | 564 } |
563 | 565 |
564 | 566 |
565 } } // namespace v8::internal | 567 } } // namespace v8::internal |
566 | 568 |
567 #endif // V8_GLOBALS_H_ | 569 #endif // V8_GLOBALS_H_ |
OLD | NEW |