| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 void Delete(); | 230 void Delete(); |
| 231 void TransitionToAccessorProperty(AccessorComponent component, | 231 void TransitionToAccessorProperty(AccessorComponent component, |
| 232 Handle<Object> accessor, | 232 Handle<Object> accessor, |
| 233 PropertyAttributes attributes); | 233 PropertyAttributes attributes); |
| 234 void TransitionToAccessorPair(Handle<Object> pair, | 234 void TransitionToAccessorPair(Handle<Object> pair, |
| 235 PropertyAttributes attributes); | 235 PropertyAttributes attributes); |
| 236 PropertyDetails property_details() const { | 236 PropertyDetails property_details() const { |
| 237 DCHECK(has_property_); | 237 DCHECK(has_property_); |
| 238 return property_details_; | 238 return property_details_; |
| 239 } | 239 } |
| 240 PropertyAttributes property_attributes() const { |
| 241 return property_details().attributes(); |
| 242 } |
| 240 bool IsConfigurable() const { return property_details().IsConfigurable(); } | 243 bool IsConfigurable() const { return property_details().IsConfigurable(); } |
| 241 bool IsReadOnly() const { return property_details().IsReadOnly(); } | 244 bool IsReadOnly() const { return property_details().IsReadOnly(); } |
| 242 Representation representation() const { | 245 Representation representation() const { |
| 243 return property_details().representation(); | 246 return property_details().representation(); |
| 244 } | 247 } |
| 245 FieldIndex GetFieldIndex() const; | 248 FieldIndex GetFieldIndex() const; |
| 246 Handle<HeapType> GetFieldType() const; | 249 Handle<HeapType> GetFieldType() const; |
| 247 int GetAccessorIndex() const; | 250 int GetAccessorIndex() const; |
| 248 int GetConstantIndex() const; | 251 int GetConstantIndex() const; |
| 249 Handle<PropertyCell> GetPropertyCell() const; | 252 Handle<PropertyCell> GetPropertyCell() const; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 Handle<Map> holder_map_; | 340 Handle<Map> holder_map_; |
| 338 const Handle<JSReceiver> initial_holder_; | 341 const Handle<JSReceiver> initial_holder_; |
| 339 uint32_t number_; | 342 uint32_t number_; |
| 340 }; | 343 }; |
| 341 | 344 |
| 342 | 345 |
| 343 } // namespace internal | 346 } // namespace internal |
| 344 } // namespace v8 | 347 } // namespace v8 |
| 345 | 348 |
| 346 #endif // V8_LOOKUP_H_ | 349 #endif // V8_LOOKUP_H_ |
| OLD | NEW |