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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 // Type of properties. | 61 // Type of properties. |
62 // Order of properties is significant. | 62 // Order of properties is significant. |
63 // Must fit in the BitField PropertyDetails::TypeField. | 63 // Must fit in the BitField PropertyDetails::TypeField. |
64 // A copy of this is in mirror-debugger.js. | 64 // A copy of this is in mirror-debugger.js. |
65 enum PropertyType { | 65 enum PropertyType { |
66 // Only in slow mode. | 66 // Only in slow mode. |
67 NORMAL = 0, | 67 NORMAL = 0, |
68 // Only in fast mode. | 68 // Only in fast mode. |
69 FIELD = 1, | 69 FIELD = 1, |
70 CONSTANT_FUNCTION = 2, | 70 CONSTANT = 2, |
71 CALLBACKS = 3, | 71 CALLBACKS = 3, |
72 // Only in lookup results, not in descriptors. | 72 // Only in lookup results, not in descriptors. |
73 HANDLER = 4, | 73 HANDLER = 4, |
74 INTERCEPTOR = 5, | 74 INTERCEPTOR = 5, |
75 TRANSITION = 6, | 75 TRANSITION = 6, |
76 // Only used as a marker in LookupResult. | 76 // Only used as a marker in LookupResult. |
77 NONEXISTENT = 7 | 77 NONEXISTENT = 7 |
78 }; | 78 }; |
79 | 79 |
80 | 80 |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 PropertyDetails(int value, PropertyAttributes attributes) { | 269 PropertyDetails(int value, PropertyAttributes attributes) { |
270 value_ = AttributesField::update(value, attributes); | 270 value_ = AttributesField::update(value, attributes); |
271 } | 271 } |
272 | 272 |
273 uint32_t value_; | 273 uint32_t value_; |
274 }; | 274 }; |
275 | 275 |
276 } } // namespace v8::internal | 276 } } // namespace v8::internal |
277 | 277 |
278 #endif // V8_PROPERTY_DETAILS_H_ | 278 #endif // V8_PROPERTY_DETAILS_H_ |
OLD | NEW |