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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 // Must fit in the BitField PropertyDetails::StoreModeField. | 50 // Must fit in the BitField PropertyDetails::StoreModeField. |
51 enum PropertyLocation { IN_OBJECT = 0, IN_DESCRIPTOR = 1 }; | 51 enum PropertyLocation { IN_OBJECT = 0, IN_DESCRIPTOR = 1 }; |
52 | 52 |
53 | 53 |
54 // Order of properties is significant. | 54 // Order of properties is significant. |
55 // Must fit in the BitField PropertyDetails::TypeField. | 55 // Must fit in the BitField PropertyDetails::TypeField. |
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 FIELD = (IN_OBJECT << 1) | DATA, | 58 FIELD = (IN_OBJECT << 1) | DATA, |
59 CONSTANT = (IN_DESCRIPTOR << 1) | DATA, | 59 CONSTANT = (IN_DESCRIPTOR << 1) | DATA, |
| 60 ACCESSOR_FIELD = (IN_OBJECT << 1) | ACCESSOR, |
60 CALLBACKS = (IN_DESCRIPTOR << 1) | ACCESSOR | 61 CALLBACKS = (IN_DESCRIPTOR << 1) | ACCESSOR |
61 }; | 62 }; |
62 | 63 |
63 | 64 |
64 class Representation { | 65 class Representation { |
65 public: | 66 public: |
66 enum Kind { | 67 enum Kind { |
67 kNone, | 68 kNone, |
68 kInteger8, | 69 kInteger8, |
69 kUInteger8, | 70 kUInteger8, |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 uint32_t value_; | 319 uint32_t value_; |
319 }; | 320 }; |
320 | 321 |
321 | 322 |
322 std::ostream& operator<<(std::ostream& os, | 323 std::ostream& operator<<(std::ostream& os, |
323 const PropertyAttributes& attributes); | 324 const PropertyAttributes& attributes); |
324 std::ostream& operator<<(std::ostream& os, const PropertyDetails& details); | 325 std::ostream& operator<<(std::ostream& os, const PropertyDetails& details); |
325 } } // namespace v8::internal | 326 } } // namespace v8::internal |
326 | 327 |
327 #endif // V8_PROPERTY_DETAILS_H_ | 328 #endif // V8_PROPERTY_DETAILS_H_ |
OLD | NEW |