| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_PROPERTY_DETAILS_H_ | 5 #ifndef V8_PROPERTY_DETAILS_H_ |
| 6 #define V8_PROPERTY_DETAILS_H_ | 6 #define V8_PROPERTY_DETAILS_H_ |
| 7 | 7 |
| 8 #include "include/v8.h" | 8 #include "include/v8.h" |
| 9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
| 10 #include "src/utils.h" | 10 #include "src/utils.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // Type of properties. | 43 // Type of properties. |
| 44 // Order of properties is significant. | 44 // Order of properties is significant. |
| 45 // Must fit in the BitField PropertyDetails::TypeField. | 45 // Must fit in the BitField PropertyDetails::TypeField. |
| 46 // A copy of this is in mirror-debugger.js. | 46 // A copy of this is in mirror-debugger.js. |
| 47 enum PropertyType { | 47 enum PropertyType { |
| 48 // Only in slow mode. | 48 // Only in slow mode. |
| 49 NORMAL = 0, | 49 NORMAL = 0, |
| 50 // Only in fast mode. | 50 // Only in fast mode. |
| 51 FIELD = 1, | 51 FIELD = 1, |
| 52 CONSTANT = 2, | 52 CONSTANT = 2, |
| 53 CALLBACKS = 3, | 53 CALLBACKS = 3 |
| 54 // Only in lookup results, not in descriptors. | |
| 55 HANDLER = 4, | |
| 56 INTERCEPTOR = 5 | |
| 57 }; | 54 }; |
| 58 | 55 |
| 59 | 56 |
| 60 class Representation { | 57 class Representation { |
| 61 public: | 58 public: |
| 62 enum Kind { | 59 enum Kind { |
| 63 kNone, | 60 kNone, |
| 64 kInteger8, | 61 kInteger8, |
| 65 kUInteger8, | 62 kUInteger8, |
| 66 kInteger16, | 63 kInteger16, |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 PropertyDetails(int value, PropertyAttributes attributes) { | 291 PropertyDetails(int value, PropertyAttributes attributes) { |
| 295 value_ = AttributesField::update(value, attributes); | 292 value_ = AttributesField::update(value, attributes); |
| 296 } | 293 } |
| 297 | 294 |
| 298 uint32_t value_; | 295 uint32_t value_; |
| 299 }; | 296 }; |
| 300 | 297 |
| 301 } } // namespace v8::internal | 298 } } // namespace v8::internal |
| 302 | 299 |
| 303 #endif // V8_PROPERTY_DETAILS_H_ | 300 #endif // V8_PROPERTY_DETAILS_H_ |
| OLD | NEW |