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/isolate.h" | 10 #include "src/isolate.h" |
10 #include "src/objects.h" | 11 #include "src/objects.h" |
11 | 12 |
12 namespace v8 { | 13 namespace v8 { |
13 namespace internal { | 14 namespace internal { |
14 | 15 |
15 class LookupIterator final BASE_EMBEDDED { | 16 class V8_EXPORT_PRIVATE LookupIterator final BASE_EMBEDDED { |
16 public: | 17 public: |
17 enum Configuration { | 18 enum Configuration { |
18 // Configuration bits. | 19 // Configuration bits. |
19 kInterceptor = 1 << 0, | 20 kInterceptor = 1 << 0, |
20 kPrototypeChain = 1 << 1, | 21 kPrototypeChain = 1 << 1, |
21 | 22 |
22 // Convience combinations of bits. | 23 // Convience combinations of bits. |
23 OWN_SKIP_INTERCEPTOR = 0, | 24 OWN_SKIP_INTERCEPTOR = 0, |
24 OWN = kInterceptor, | 25 OWN = kInterceptor, |
25 PROTOTYPE_CHAIN_SKIP_INTERCEPTOR = kPrototypeChain, | 26 PROTOTYPE_CHAIN_SKIP_INTERCEPTOR = kPrototypeChain, |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 const Handle<JSReceiver> initial_holder_; | 354 const Handle<JSReceiver> initial_holder_; |
354 const uint32_t index_; | 355 const uint32_t index_; |
355 uint32_t number_; | 356 uint32_t number_; |
356 }; | 357 }; |
357 | 358 |
358 | 359 |
359 } // namespace internal | 360 } // namespace internal |
360 } // namespace v8 | 361 } // namespace v8 |
361 | 362 |
362 #endif // V8_LOOKUP_H_ | 363 #endif // V8_LOOKUP_H_ |
OLD | NEW |