OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 // Type of properties. | 296 // Type of properties. |
297 // Order of properties is significant. | 297 // Order of properties is significant. |
298 // Must fit in the BitField PropertyDetails::TypeField. | 298 // Must fit in the BitField PropertyDetails::TypeField. |
299 // A copy of this is in mirror-delay.js. | 299 // A copy of this is in mirror-delay.js. |
300 enum PropertyType { | 300 enum PropertyType { |
301 NORMAL = 0, // only in slow mode | 301 NORMAL = 0, // only in slow mode |
302 FIELD = 1, // only in fast mode | 302 FIELD = 1, // only in fast mode |
303 CONSTANT_FUNCTION = 2, // only in fast mode | 303 CONSTANT_FUNCTION = 2, // only in fast mode |
304 CALLBACKS = 3, | 304 CALLBACKS = 3, |
305 INTERCEPTOR = 4, // only in lookup results, not in descriptors. | 305 INTERCEPTOR = 4, // only in lookup results, not in descriptors. |
306 FIRST_PHANTOM_PROPERTY_TYPE = 5, // All properties before this are real. | |
307 MAP_TRANSITION = 5, // only in fast mode | 306 MAP_TRANSITION = 5, // only in fast mode |
308 CONSTANT_TRANSITION = 6, // only in fast mode | 307 CONSTANT_TRANSITION = 6, // only in fast mode |
309 NULL_DESCRIPTOR = 7 // only in fast mode | 308 NULL_DESCRIPTOR = 7, // only in fast mode |
| 309 // All properties before MAP_TRANSITION are real. |
| 310 FIRST_PHANTOM_PROPERTY_TYPE = MAP_TRANSITION |
310 }; | 311 }; |
311 | 312 |
312 | 313 |
313 // Whether to remove map transitions and constant transitions from a | 314 // Whether to remove map transitions and constant transitions from a |
314 // DescriptorArray. | 315 // DescriptorArray. |
315 enum TransitionFlag { | 316 enum TransitionFlag { |
316 REMOVE_TRANSITIONS, | 317 REMOVE_TRANSITIONS, |
317 KEEP_TRANSITIONS | 318 KEEP_TRANSITIONS |
318 }; | 319 }; |
319 | 320 |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 #else | 459 #else |
459 #define INLINE(header) inline __attribute__((always_inline)) header | 460 #define INLINE(header) inline __attribute__((always_inline)) header |
460 #endif | 461 #endif |
461 #else | 462 #else |
462 #define INLINE(header) inline header | 463 #define INLINE(header) inline header |
463 #endif | 464 #endif |
464 | 465 |
465 } } // namespace v8::internal | 466 } } // namespace v8::internal |
466 | 467 |
467 #endif // V8_GLOBALS_H_ | 468 #endif // V8_GLOBALS_H_ |
OLD | NEW |