| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 int GetAccessorIndex() const; | 249 int GetAccessorIndex() const; |
| 250 int GetConstantIndex() const; | 250 int GetConstantIndex() const; |
| 251 Handle<PropertyCell> GetPropertyCell() const; | 251 Handle<PropertyCell> GetPropertyCell() const; |
| 252 Handle<Object> GetAccessors() const; | 252 Handle<Object> GetAccessors() const; |
| 253 inline Handle<InterceptorInfo> GetInterceptor() const { | 253 inline Handle<InterceptorInfo> GetInterceptor() const { |
| 254 DCHECK_EQ(INTERCEPTOR, state_); | 254 DCHECK_EQ(INTERCEPTOR, state_); |
| 255 return handle(GetInterceptor(JSObject::cast(*holder_)), isolate_); | 255 return handle(GetInterceptor(JSObject::cast(*holder_)), isolate_); |
| 256 } | 256 } |
| 257 Handle<Object> GetDataValue() const; | 257 Handle<Object> GetDataValue() const; |
| 258 void WriteDataValue(Handle<Object> value); | 258 void WriteDataValue(Handle<Object> value); |
| 259 void UpdateProtector(); |
| 259 | 260 |
| 260 private: | 261 private: |
| 261 enum class InterceptorState { | 262 enum class InterceptorState { |
| 262 kUninitialized, | 263 kUninitialized, |
| 263 kSkipNonMasking, | 264 kSkipNonMasking, |
| 264 kProcessNonMasking | 265 kProcessNonMasking |
| 265 }; | 266 }; |
| 266 | 267 |
| 267 Handle<Map> GetReceiverMap() const; | 268 Handle<Map> GetReceiverMap() const; |
| 268 | 269 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 Handle<JSReceiver> holder_; | 336 Handle<JSReceiver> holder_; |
| 336 const Handle<JSReceiver> initial_holder_; | 337 const Handle<JSReceiver> initial_holder_; |
| 337 uint32_t number_; | 338 uint32_t number_; |
| 338 }; | 339 }; |
| 339 | 340 |
| 340 | 341 |
| 341 } // namespace internal | 342 } // namespace internal |
| 342 } // namespace v8 | 343 } // namespace v8 |
| 343 | 344 |
| 344 #endif // V8_LOOKUP_H_ | 345 #endif // V8_LOOKUP_H_ |
| OLD | NEW |