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/globals.h" | 9 #include "src/globals.h" |
10 #include "src/isolate.h" | 10 #include "src/isolate.h" |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 return property_details().attributes(); | 231 return property_details().attributes(); |
232 } | 232 } |
233 bool IsConfigurable() const { return property_details().IsConfigurable(); } | 233 bool IsConfigurable() const { return property_details().IsConfigurable(); } |
234 bool IsReadOnly() const { return property_details().IsReadOnly(); } | 234 bool IsReadOnly() const { return property_details().IsReadOnly(); } |
235 bool IsEnumerable() const { return property_details().IsEnumerable(); } | 235 bool IsEnumerable() const { return property_details().IsEnumerable(); } |
236 Representation representation() const { | 236 Representation representation() const { |
237 return property_details().representation(); | 237 return property_details().representation(); |
238 } | 238 } |
239 FieldIndex GetFieldIndex() const; | 239 FieldIndex GetFieldIndex() const; |
240 Handle<FieldType> GetFieldType() const; | 240 Handle<FieldType> GetFieldType() const; |
| 241 int GetFieldDescriptorIndex() const; |
241 int GetAccessorIndex() const; | 242 int GetAccessorIndex() const; |
242 int GetConstantIndex() const; | 243 int GetConstantIndex() const; |
243 Handle<PropertyCell> GetPropertyCell() const; | 244 Handle<PropertyCell> GetPropertyCell() const; |
244 Handle<Object> GetAccessors() const; | 245 Handle<Object> GetAccessors() const; |
245 inline Handle<InterceptorInfo> GetInterceptor() const { | 246 inline Handle<InterceptorInfo> GetInterceptor() const { |
246 DCHECK_EQ(INTERCEPTOR, state_); | 247 DCHECK_EQ(INTERCEPTOR, state_); |
247 InterceptorInfo* result = | 248 InterceptorInfo* result = |
248 IsElement() ? GetInterceptor<true>(JSObject::cast(*holder_)) | 249 IsElement() ? GetInterceptor<true>(JSObject::cast(*holder_)) |
249 : GetInterceptor<false>(JSObject::cast(*holder_)); | 250 : GetInterceptor<false>(JSObject::cast(*holder_)); |
250 return handle(result, isolate_); | 251 return handle(result, isolate_); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 const Handle<JSReceiver> initial_holder_; | 355 const Handle<JSReceiver> initial_holder_; |
355 const uint32_t index_; | 356 const uint32_t index_; |
356 uint32_t number_; | 357 uint32_t number_; |
357 }; | 358 }; |
358 | 359 |
359 | 360 |
360 } // namespace internal | 361 } // namespace internal |
361 } // namespace v8 | 362 } // namespace v8 |
362 | 363 |
363 #endif // V8_LOOKUP_H_ | 364 #endif // V8_LOOKUP_H_ |
OLD | NEW |