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" |
11 | 11 |
12 namespace v8 { | 12 namespace v8 { |
13 namespace internal { | 13 namespace internal { |
14 | 14 |
15 class LookupIterator FINAL BASE_EMBEDDED { | 15 class LookupIterator final BASE_EMBEDDED { |
16 public: | 16 public: |
17 enum Configuration { | 17 enum Configuration { |
18 // Configuration bits. | 18 // Configuration bits. |
19 kHidden = 1 << 0, | 19 kHidden = 1 << 0, |
20 kInterceptor = 1 << 1, | 20 kInterceptor = 1 << 1, |
21 kPrototypeChain = 1 << 2, | 21 kPrototypeChain = 1 << 2, |
22 | 22 |
23 // Convience combinations of bits. | 23 // Convience combinations of bits. |
24 OWN_SKIP_INTERCEPTOR = 0, | 24 OWN_SKIP_INTERCEPTOR = 0, |
25 OWN = kInterceptor, | 25 OWN = kInterceptor, |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 Handle<JSReceiver> holder_; | 210 Handle<JSReceiver> holder_; |
211 Handle<Map> holder_map_; | 211 Handle<Map> holder_map_; |
212 const Handle<JSReceiver> initial_holder_; | 212 const Handle<JSReceiver> initial_holder_; |
213 int number_; | 213 int number_; |
214 }; | 214 }; |
215 | 215 |
216 | 216 |
217 } } // namespace v8::internal | 217 } } // namespace v8::internal |
218 | 218 |
219 #endif // V8_LOOKUP_H_ | 219 #endif // V8_LOOKUP_H_ |
OLD | NEW |