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/globals.h" | 9 #include "src/globals.h" |
10 #include "src/isolate.h" | 10 #include "src/isolate.h" |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 return handle(result, isolate_); | 251 return handle(result, isolate_); |
252 } | 252 } |
253 Handle<InterceptorInfo> GetInterceptorForFailedAccessCheck() const; | 253 Handle<InterceptorInfo> GetInterceptorForFailedAccessCheck() const; |
254 Handle<Object> GetDataValue() const; | 254 Handle<Object> GetDataValue() const; |
255 void WriteDataValue(Handle<Object> value); | 255 void WriteDataValue(Handle<Object> value); |
256 inline void UpdateProtector() { | 256 inline void UpdateProtector() { |
257 if (IsElement()) return; | 257 if (IsElement()) return; |
258 if (*name_ == heap()->is_concat_spreadable_symbol() || | 258 if (*name_ == heap()->is_concat_spreadable_symbol() || |
259 *name_ == heap()->constructor_string() || | 259 *name_ == heap()->constructor_string() || |
260 *name_ == heap()->species_symbol() || | 260 *name_ == heap()->species_symbol() || |
261 *name_ == heap()->has_instance_symbol()) { | 261 *name_ == heap()->has_instance_symbol() || |
| 262 *name_ == heap()->iterator_symbol()) { |
262 InternalUpdateProtector(); | 263 InternalUpdateProtector(); |
263 } | 264 } |
264 } | 265 } |
265 | 266 |
266 // Lookup a 'cached' private property for an accessor. | 267 // Lookup a 'cached' private property for an accessor. |
267 // If not found returns false and leaves the LookupIterator unmodified. | 268 // If not found returns false and leaves the LookupIterator unmodified. |
268 bool TryLookupCachedProperty(); | 269 bool TryLookupCachedProperty(); |
269 bool LookupCachedProperty(); | 270 bool LookupCachedProperty(); |
270 | 271 |
271 private: | 272 private: |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 const Handle<JSReceiver> initial_holder_; | 361 const Handle<JSReceiver> initial_holder_; |
361 const uint32_t index_; | 362 const uint32_t index_; |
362 uint32_t number_; | 363 uint32_t number_; |
363 }; | 364 }; |
364 | 365 |
365 | 366 |
366 } // namespace internal | 367 } // namespace internal |
367 } // namespace v8 | 368 } // namespace v8 |
368 | 369 |
369 #endif // V8_LOOKUP_H_ | 370 #endif // V8_LOOKUP_H_ |
OLD | NEW |