| 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 | 308 |
| 309 static Handle<JSReceiver> GetRootForNonJSReceiver( | 309 static Handle<JSReceiver> GetRootForNonJSReceiver( |
| 310 Isolate* isolate, Handle<Object> receiver, uint32_t index = kMaxUInt32); | 310 Isolate* isolate, Handle<Object> receiver, uint32_t index = kMaxUInt32); |
| 311 inline static Handle<JSReceiver> GetRoot(Isolate* isolate, | 311 inline static Handle<JSReceiver> GetRoot(Isolate* isolate, |
| 312 Handle<Object> receiver, | 312 Handle<Object> receiver, |
| 313 uint32_t index = kMaxUInt32) { | 313 uint32_t index = kMaxUInt32) { |
| 314 if (receiver->IsJSReceiver()) return Handle<JSReceiver>::cast(receiver); | 314 if (receiver->IsJSReceiver()) return Handle<JSReceiver>::cast(receiver); |
| 315 return GetRootForNonJSReceiver(isolate, receiver, index); | 315 return GetRootForNonJSReceiver(isolate, receiver, index); |
| 316 } | 316 } |
| 317 | 317 |
| 318 inline bool IsIntegerIndexedExotic(JSReceiver* holder); | 318 State NotFound(JSReceiver* const holder) const; |
| 319 | 319 |
| 320 // If configuration_ becomes mutable, update | 320 // If configuration_ becomes mutable, update |
| 321 // HolderIsReceiverOrHiddenPrototype. | 321 // HolderIsReceiverOrHiddenPrototype. |
| 322 const Configuration configuration_; | 322 const Configuration configuration_; |
| 323 State state_; | 323 State state_; |
| 324 bool has_property_; | 324 bool has_property_; |
| 325 InterceptorState interceptor_state_; | 325 InterceptorState interceptor_state_; |
| 326 PropertyDetails property_details_; | 326 PropertyDetails property_details_; |
| 327 Isolate* const isolate_; | 327 Isolate* const isolate_; |
| 328 Handle<Name> name_; | 328 Handle<Name> name_; |
| 329 uint32_t index_; | 329 uint32_t index_; |
| 330 Handle<Object> transition_; | 330 Handle<Object> transition_; |
| 331 const Handle<Object> receiver_; | 331 const Handle<Object> receiver_; |
| 332 Handle<JSReceiver> holder_; | 332 Handle<JSReceiver> holder_; |
| 333 Handle<Map> holder_map_; | 333 Handle<Map> holder_map_; |
| 334 const Handle<JSReceiver> initial_holder_; | 334 const Handle<JSReceiver> initial_holder_; |
| 335 uint32_t number_; | 335 uint32_t number_; |
| 336 }; | 336 }; |
| 337 | 337 |
| 338 | 338 |
| 339 } // namespace internal | 339 } // namespace internal |
| 340 } // namespace v8 | 340 } // namespace v8 |
| 341 | 341 |
| 342 #endif // V8_LOOKUP_H_ | 342 #endif // V8_LOOKUP_H_ |
| OLD | NEW |