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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 }; | 69 }; |
70 | 70 |
71 | 71 |
72 std::ostream& operator<<(std::ostream& os, const Descriptor& d); | 72 std::ostream& operator<<(std::ostream& os, const Descriptor& d); |
73 | 73 |
74 | 74 |
75 class DataDescriptor final : public Descriptor { | 75 class DataDescriptor final : public Descriptor { |
76 public: | 76 public: |
77 DataDescriptor(Handle<Name> key, int field_index, | 77 DataDescriptor(Handle<Name> key, int field_index, |
78 PropertyAttributes attributes, Representation representation) | 78 PropertyAttributes attributes, Representation representation) |
79 : Descriptor(key, HeapType::Any(key->GetIsolate()), attributes, DATA, | 79 : Descriptor(key, FieldType::Any(key->GetIsolate()), attributes, DATA, |
80 representation, field_index) {} | 80 representation, field_index) {} |
81 // The field type is either a simple type or a map wrapped in a weak cell. | 81 // The field type is either a simple type or a map wrapped in a weak cell. |
82 DataDescriptor(Handle<Name> key, int field_index, | 82 DataDescriptor(Handle<Name> key, int field_index, |
83 Handle<Object> wrapped_field_type, | 83 Handle<Object> wrapped_field_type, |
84 PropertyAttributes attributes, Representation representation) | 84 PropertyAttributes attributes, Representation representation) |
85 : Descriptor(key, wrapped_field_type, attributes, DATA, representation, | 85 : Descriptor(key, wrapped_field_type, attributes, DATA, representation, |
86 field_index) { | 86 field_index) { |
87 DCHECK(wrapped_field_type->IsSmi() || wrapped_field_type->IsWeakCell()); | 87 DCHECK(wrapped_field_type->IsSmi() || wrapped_field_type->IsWeakCell()); |
88 } | 88 } |
89 }; | 89 }; |
(...skipping 14 matching lines...) Expand all Loading... |
104 PropertyAttributes attributes) | 104 PropertyAttributes attributes) |
105 : Descriptor(key, foreign, attributes, ACCESSOR_CONSTANT, | 105 : Descriptor(key, foreign, attributes, ACCESSOR_CONSTANT, |
106 Representation::Tagged()) {} | 106 Representation::Tagged()) {} |
107 }; | 107 }; |
108 | 108 |
109 | 109 |
110 } // namespace internal | 110 } // namespace internal |
111 } // namespace v8 | 111 } // namespace v8 |
112 | 112 |
113 #endif // V8_PROPERTY_H_ | 113 #endif // V8_PROPERTY_H_ |
OLD | NEW |