OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 173 |
174 // NOTE: SpaceIterator depends on AllocationSpace enumeration values being | 174 // NOTE: SpaceIterator depends on AllocationSpace enumeration values being |
175 // consecutive. | 175 // consecutive. |
176 enum AllocationSpace { | 176 enum AllocationSpace { |
177 NEW_SPACE, // Semispaces collected with copying collector. | 177 NEW_SPACE, // Semispaces collected with copying collector. |
178 OLD_POINTER_SPACE, // May contain pointers to new space. | 178 OLD_POINTER_SPACE, // May contain pointers to new space. |
179 OLD_DATA_SPACE, // Must not have pointers to new space. | 179 OLD_DATA_SPACE, // Must not have pointers to new space. |
180 CODE_SPACE, // No pointers to new space, marked executable. | 180 CODE_SPACE, // No pointers to new space, marked executable. |
181 MAP_SPACE, // Only and all map objects. | 181 MAP_SPACE, // Only and all map objects. |
182 CELL_SPACE, // Only and all cell objects. | 182 CELL_SPACE, // Only and all cell objects. |
| 183 PROPERTY_CELL_SPACE, // Only and all global property cell objects. |
183 LO_SPACE, // Promoted large objects. | 184 LO_SPACE, // Promoted large objects. |
184 | 185 |
185 FIRST_SPACE = NEW_SPACE, | 186 FIRST_SPACE = NEW_SPACE, |
186 LAST_SPACE = LO_SPACE, | 187 LAST_SPACE = LO_SPACE, |
187 FIRST_PAGED_SPACE = OLD_POINTER_SPACE, | 188 FIRST_PAGED_SPACE = OLD_POINTER_SPACE, |
188 LAST_PAGED_SPACE = CELL_SPACE | 189 LAST_PAGED_SPACE = PROPERTY_CELL_SPACE |
189 }; | 190 }; |
190 const int kSpaceTagSize = 3; | 191 const int kSpaceTagSize = 3; |
191 const int kSpaceTagMask = (1 << kSpaceTagSize) - 1; | 192 const int kSpaceTagMask = (1 << kSpaceTagSize) - 1; |
192 | 193 |
193 | 194 |
194 // A flag that indicates whether objects should be pretenured when | 195 // A flag that indicates whether objects should be pretenured when |
195 // allocated (allocated directly into the old generation) or not | 196 // allocated (allocated directly into the old generation) or not |
196 // (allocated in the young generation if the object size and type | 197 // (allocated in the young generation if the object size and type |
197 // allows). | 198 // allows). |
198 enum PretenureFlag { NOT_TENURED, TENURED }; | 199 enum PretenureFlag { NOT_TENURED, TENURED }; |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 | 568 |
568 enum ClearExceptionFlag { | 569 enum ClearExceptionFlag { |
569 KEEP_EXCEPTION, | 570 KEEP_EXCEPTION, |
570 CLEAR_EXCEPTION | 571 CLEAR_EXCEPTION |
571 }; | 572 }; |
572 | 573 |
573 | 574 |
574 } } // namespace v8::internal | 575 } } // namespace v8::internal |
575 | 576 |
576 #endif // V8_V8GLOBALS_H_ | 577 #endif // V8_V8GLOBALS_H_ |
OLD | NEW |