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_LOOKUP_H_ | 5 #ifndef V8_LOOKUP_H_ |
6 #define V8_LOOKUP_H_ | 6 #define V8_LOOKUP_H_ |
7 | 7 |
8 #include "src/factory.h" | 8 #include "src/factory.h" |
9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
10 #include "src/objects.h" | 10 #include "src/objects.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 } | 133 } |
134 PropertyDetails property_details() const { | 134 PropertyDetails property_details() const { |
135 DCHECK(has_property_); | 135 DCHECK(has_property_); |
136 return property_details_; | 136 return property_details_; |
137 } | 137 } |
138 bool IsConfigurable() const { return !property_details().IsDontDelete(); } | 138 bool IsConfigurable() const { return !property_details().IsDontDelete(); } |
139 Representation representation() const { | 139 Representation representation() const { |
140 return property_details().representation(); | 140 return property_details().representation(); |
141 } | 141 } |
142 FieldIndex GetFieldIndex() const; | 142 FieldIndex GetFieldIndex() const; |
| 143 int GetConstantIndex() const; |
143 Handle<PropertyCell> GetPropertyCell() const; | 144 Handle<PropertyCell> GetPropertyCell() const; |
144 Handle<Object> GetAccessors() const; | 145 Handle<Object> GetAccessors() const; |
145 Handle<Object> GetDataValue() const; | 146 Handle<Object> GetDataValue() const; |
146 void WriteDataValue(Handle<Object> value); | 147 void WriteDataValue(Handle<Object> value); |
147 | 148 |
148 void InternalizeName(); | 149 void InternalizeName(); |
149 | 150 |
150 private: | 151 private: |
151 Handle<Map> GetReceiverMap() const; | 152 Handle<Map> GetReceiverMap() const; |
152 | 153 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 MaybeHandle<Object> maybe_receiver_; | 199 MaybeHandle<Object> maybe_receiver_; |
199 MaybeHandle<JSReceiver> maybe_holder_; | 200 MaybeHandle<JSReceiver> maybe_holder_; |
200 | 201 |
201 int number_; | 202 int number_; |
202 }; | 203 }; |
203 | 204 |
204 | 205 |
205 } } // namespace v8::internal | 206 } } // namespace v8::internal |
206 | 207 |
207 #endif // V8_LOOKUP_H_ | 208 #endif // V8_LOOKUP_H_ |
OLD | NEW |