| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // A copy of this is in mirror-debugger.js. | 56 // A copy of this is in mirror-debugger.js. |
| 57 enum PropertyType { | 57 enum PropertyType { |
| 58 NORMAL = 0, // only in slow mode | 58 NORMAL = 0, // only in slow mode |
| 59 FIELD = 1, // only in fast mode | 59 FIELD = 1, // only in fast mode |
| 60 CONSTANT_FUNCTION = 2, // only in fast mode | 60 CONSTANT_FUNCTION = 2, // only in fast mode |
| 61 CALLBACKS = 3, | 61 CALLBACKS = 3, |
| 62 HANDLER = 4, // only in lookup results, not in descriptors | 62 HANDLER = 4, // only in lookup results, not in descriptors |
| 63 INTERCEPTOR = 5, // only in lookup results, not in descriptors | 63 INTERCEPTOR = 5, // only in lookup results, not in descriptors |
| 64 // All properties before MAP_TRANSITION are real. | 64 // All properties before MAP_TRANSITION are real. |
| 65 MAP_TRANSITION = 6, // only in fast mode | 65 MAP_TRANSITION = 6, // only in fast mode |
| 66 ELEMENTS_TRANSITION = 7, | 66 CONSTANT_TRANSITION = 7, // only in fast mode |
| 67 CONSTANT_TRANSITION = 8, // only in fast mode | 67 NULL_DESCRIPTOR = 8, // only in fast mode |
| 68 NULL_DESCRIPTOR = 9, // only in fast mode | |
| 69 // There are no IC stubs for NULL_DESCRIPTORS. Therefore, | 68 // There are no IC stubs for NULL_DESCRIPTORS. Therefore, |
| 70 // NULL_DESCRIPTOR can be used as the type flag for IC stubs for | 69 // NULL_DESCRIPTOR can be used as the type flag for IC stubs for |
| 71 // nonexistent properties. | 70 // nonexistent properties. |
| 72 NONEXISTENT = NULL_DESCRIPTOR | 71 NONEXISTENT = NULL_DESCRIPTOR |
| 73 }; | 72 }; |
| 74 | 73 |
| 75 | 74 |
| 76 // PropertyDetails captures type and attributes for a property. | 75 // PropertyDetails captures type and attributes for a property. |
| 77 // They are used both in property dictionaries and instance descriptors. | 76 // They are used both in property dictionaries and instance descriptors. |
| 78 class PropertyDetails BASE_EMBEDDED { | 77 class PropertyDetails BASE_EMBEDDED { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 122 |
| 124 static const int kInitialIndex = 1; | 123 static const int kInitialIndex = 1; |
| 125 | 124 |
| 126 private: | 125 private: |
| 127 uint32_t value_; | 126 uint32_t value_; |
| 128 }; | 127 }; |
| 129 | 128 |
| 130 } } // namespace v8::internal | 129 } } // namespace v8::internal |
| 131 | 130 |
| 132 #endif // V8_PROPERTY_DETAILS_H_ | 131 #endif // V8_PROPERTY_DETAILS_H_ |
| OLD | NEW |