| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 bool IsCacheableTransition() { | 222 bool IsCacheableTransition() { |
| 223 DCHECK_EQ(TRANSITION, state_); | 223 DCHECK_EQ(TRANSITION, state_); |
| 224 return transition_->IsPropertyCell() || | 224 return transition_->IsPropertyCell() || |
| 225 (!transition_map()->is_dictionary_map() && | 225 (!transition_map()->is_dictionary_map() && |
| 226 transition_map()->GetBackPointer()->IsMap()); | 226 transition_map()->GetBackPointer()->IsMap()); |
| 227 } | 227 } |
| 228 void ApplyTransitionToDataProperty(Handle<JSObject> receiver); | 228 void ApplyTransitionToDataProperty(Handle<JSObject> receiver); |
| 229 void ReconfigureDataProperty(Handle<Object> value, | 229 void ReconfigureDataProperty(Handle<Object> value, |
| 230 PropertyAttributes attributes); | 230 PropertyAttributes attributes); |
| 231 void Delete(); | 231 void Delete(); |
| 232 void TransitionToAccessorProperty(AccessorComponent component, | 232 void TransitionToAccessorProperty(Handle<Object> getter, |
| 233 Handle<Object> accessor, | 233 Handle<Object> setter, |
| 234 PropertyAttributes attributes); | 234 PropertyAttributes attributes); |
| 235 void TransitionToAccessorPair(Handle<Object> pair, | 235 void TransitionToAccessorPair(Handle<Object> pair, |
| 236 PropertyAttributes attributes); | 236 PropertyAttributes attributes); |
| 237 PropertyDetails property_details() const { | 237 PropertyDetails property_details() const { |
| 238 DCHECK(has_property_); | 238 DCHECK(has_property_); |
| 239 return property_details_; | 239 return property_details_; |
| 240 } | 240 } |
| 241 PropertyAttributes property_attributes() const { | 241 PropertyAttributes property_attributes() const { |
| 242 return property_details().attributes(); | 242 return property_details().attributes(); |
| 243 } | 243 } |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 const Handle<JSReceiver> initial_holder_; | 370 const Handle<JSReceiver> initial_holder_; |
| 371 const uint32_t index_; | 371 const uint32_t index_; |
| 372 uint32_t number_; | 372 uint32_t number_; |
| 373 }; | 373 }; |
| 374 | 374 |
| 375 | 375 |
| 376 } // namespace internal | 376 } // namespace internal |
| 377 } // namespace v8 | 377 } // namespace v8 |
| 378 | 378 |
| 379 #endif // V8_LOOKUP_H_ | 379 #endif // V8_LOOKUP_H_ |
| OLD | NEW |