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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 const int kSpaceTagSize = 3; | 192 const int kSpaceTagSize = 3; |
193 const int kSpaceTagMask = (1 << kSpaceTagSize) - 1; | 193 const int kSpaceTagMask = (1 << kSpaceTagSize) - 1; |
194 | 194 |
195 | 195 |
196 // A flag that indicates whether objects should be pretenured when | 196 // A flag that indicates whether objects should be pretenured when |
197 // allocated (allocated directly into the old generation) or not | 197 // allocated (allocated directly into the old generation) or not |
198 // (allocated in the young generation if the object size and type | 198 // (allocated in the young generation if the object size and type |
199 // allows). | 199 // allows). |
200 enum PretenureFlag { NOT_TENURED, TENURED }; | 200 enum PretenureFlag { NOT_TENURED, TENURED }; |
201 | 201 |
| 202 enum MinimumCapacity { |
| 203 USE_DEFAULT_MINIMUM_CAPACITY, |
| 204 USE_CUSTOM_MINIMUM_CAPACITY |
| 205 }; |
| 206 |
202 enum GarbageCollector { SCAVENGER, MARK_COMPACTOR }; | 207 enum GarbageCollector { SCAVENGER, MARK_COMPACTOR }; |
203 | 208 |
204 enum Executability { NOT_EXECUTABLE, EXECUTABLE }; | 209 enum Executability { NOT_EXECUTABLE, EXECUTABLE }; |
205 | 210 |
206 enum VisitMode { | 211 enum VisitMode { |
207 VISIT_ALL, | 212 VISIT_ALL, |
208 VISIT_ALL_IN_SCAVENGE, | 213 VISIT_ALL_IN_SCAVENGE, |
209 VISIT_ALL_IN_SWEEP_NEWSPACE, | 214 VISIT_ALL_IN_SWEEP_NEWSPACE, |
210 VISIT_ONLY_STRONG | 215 VISIT_ONLY_STRONG |
211 }; | 216 }; |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 | 571 |
567 | 572 |
568 enum MinusZeroMode { | 573 enum MinusZeroMode { |
569 TREAT_MINUS_ZERO_AS_ZERO, | 574 TREAT_MINUS_ZERO_AS_ZERO, |
570 FAIL_ON_MINUS_ZERO | 575 FAIL_ON_MINUS_ZERO |
571 }; | 576 }; |
572 | 577 |
573 } } // namespace v8::internal | 578 } } // namespace v8::internal |
574 | 579 |
575 #endif // V8_V8GLOBALS_H_ | 580 #endif // V8_V8GLOBALS_H_ |
OLD | NEW |