| 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 InterceptorInfo* result = | 255 InterceptorInfo* result = |
| 256 IsElement() ? GetInterceptor<true>(JSObject::cast(*holder_)) | 256 IsElement() ? GetInterceptor<true>(JSObject::cast(*holder_)) |
| 257 : GetInterceptor<false>(JSObject::cast(*holder_)); | 257 : GetInterceptor<false>(JSObject::cast(*holder_)); |
| 258 return handle(result, isolate_); | 258 return handle(result, isolate_); |
| 259 } | 259 } |
| 260 Handle<InterceptorInfo> GetInterceptorForFailedAccessCheck() const; |
| 260 Handle<Object> GetDataValue() const; | 261 Handle<Object> GetDataValue() const; |
| 261 void WriteDataValue(Handle<Object> value); | 262 void WriteDataValue(Handle<Object> value); |
| 262 inline void UpdateProtector() { | 263 inline void UpdateProtector() { |
| 263 if (IsElement()) return; | 264 if (IsElement()) return; |
| 264 if (*name_ == heap()->is_concat_spreadable_symbol() || | 265 if (*name_ == heap()->is_concat_spreadable_symbol() || |
| 265 (FLAG_harmony_species && (*name_ == heap()->constructor_string() || | 266 (FLAG_harmony_species && (*name_ == heap()->constructor_string() || |
| 266 *name_ == heap()->species_symbol())) || | 267 *name_ == heap()->species_symbol())) || |
| 267 (FLAG_harmony_instanceof && | 268 (FLAG_harmony_instanceof && |
| 268 (*name_ == heap()->has_instance_symbol()))) { | 269 (*name_ == heap()->has_instance_symbol()))) { |
| 269 InternalUpdateProtector(); | 270 InternalUpdateProtector(); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 const Handle<JSReceiver> initial_holder_; | 363 const Handle<JSReceiver> initial_holder_; |
| 363 const uint32_t index_; | 364 const uint32_t index_; |
| 364 uint32_t number_; | 365 uint32_t number_; |
| 365 }; | 366 }; |
| 366 | 367 |
| 367 | 368 |
| 368 } // namespace internal | 369 } // namespace internal |
| 369 } // namespace v8 | 370 } // namespace v8 |
| 370 | 371 |
| 371 #endif // V8_LOOKUP_H_ | 372 #endif // V8_LOOKUP_H_ |
| OLD | NEW |