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 30 matching lines...) Expand all Loading... |
41 class TypeInfo; | 41 class TypeInfo; |
42 | 42 |
43 // Type of properties. | 43 // Type of properties. |
44 // Order of kinds is significant. | 44 // Order of kinds is significant. |
45 // Must fit in the BitField PropertyDetails::KindField. | 45 // Must fit in the BitField PropertyDetails::KindField. |
46 enum PropertyKind { DATA = 0, ACCESSOR = 1 }; | 46 enum PropertyKind { DATA = 0, ACCESSOR = 1 }; |
47 | 47 |
48 | 48 |
49 // Order of modes is significant. | 49 // Order of modes is significant. |
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 { FIELD = 0, 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 DATA_FIELD = (FIELD << 1) | DATA, |
59 CONSTANT = (IN_DESCRIPTOR << 1) | DATA, | 59 DATA_CONSTANT = (DESCRIPTOR << 1) | DATA, |
60 ACCESSOR_FIELD = (IN_OBJECT << 1) | ACCESSOR, | 60 ACCESSOR_FIELD = (FIELD << 1) | ACCESSOR, |
61 CALLBACKS = (IN_DESCRIPTOR << 1) | ACCESSOR | 61 ACCESSOR_CONSTANT = (DESCRIPTOR << 1) | ACCESSOR |
62 }; | 62 }; |
63 | 63 |
64 | 64 |
65 class Representation { | 65 class Representation { |
66 public: | 66 public: |
67 enum Kind { | 67 enum Kind { |
68 kNone, | 68 kNone, |
69 kInteger8, | 69 kInteger8, |
70 kUInteger8, | 70 kUInteger8, |
71 kInteger16, | 71 kInteger16, |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 uint32_t value_; | 319 uint32_t value_; |
320 }; | 320 }; |
321 | 321 |
322 | 322 |
323 std::ostream& operator<<(std::ostream& os, | 323 std::ostream& operator<<(std::ostream& os, |
324 const PropertyAttributes& attributes); | 324 const PropertyAttributes& attributes); |
325 std::ostream& operator<<(std::ostream& os, const PropertyDetails& details); | 325 std::ostream& operator<<(std::ostream& os, const PropertyDetails& details); |
326 } } // namespace v8::internal | 326 } } // namespace v8::internal |
327 | 327 |
328 #endif // V8_PROPERTY_DETAILS_H_ | 328 #endif // V8_PROPERTY_DETAILS_H_ |
OLD | NEW |