OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_H_ | 5 #ifndef V8_PROPERTY_H_ |
6 #define V8_PROPERTY_H_ | 6 #define V8_PROPERTY_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/factory.h" | 10 #include "src/factory.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 Representation representation, int field_index = 0) | 78 Representation representation, int field_index = 0) |
79 : key_(key), | 79 : key_(key), |
80 value_(value), | 80 value_(value), |
81 details_(attributes, type, representation, field_index) { | 81 details_(attributes, type, representation, field_index) { |
82 DCHECK(key->IsUniqueName()); | 82 DCHECK(key->IsUniqueName()); |
83 DCHECK_IMPLIES(key->IsPrivate(), !details_.IsEnumerable()); | 83 DCHECK_IMPLIES(key->IsPrivate(), !details_.IsEnumerable()); |
84 } | 84 } |
85 | 85 |
86 friend class DescriptorArray; | 86 friend class DescriptorArray; |
87 friend class Map; | 87 friend class Map; |
| 88 friend class MapUpdater; |
88 }; | 89 }; |
89 | 90 |
90 std::ostream& operator<<(std::ostream& os, const Descriptor& d); | 91 std::ostream& operator<<(std::ostream& os, const Descriptor& d); |
91 | 92 |
92 } // namespace internal | 93 } // namespace internal |
93 } // namespace v8 | 94 } // namespace v8 |
94 | 95 |
95 #endif // V8_PROPERTY_H_ | 96 #endif // V8_PROPERTY_H_ |
OLD | NEW |