| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 void WriteDataValue(Handle<Object> value); | 217 void WriteDataValue(Handle<Object> value); |
| 218 void InternalizeName(); | 218 void InternalizeName(); |
| 219 | 219 |
| 220 private: | 220 private: |
| 221 enum class InterceptorState { | 221 enum class InterceptorState { |
| 222 kUninitialized, | 222 kUninitialized, |
| 223 kSkipNonMasking, | 223 kSkipNonMasking, |
| 224 kProcessNonMasking | 224 kProcessNonMasking |
| 225 }; | 225 }; |
| 226 | 226 |
| 227 |
| 227 Handle<Map> GetReceiverMap() const; | 228 Handle<Map> GetReceiverMap() const; |
| 228 | 229 |
| 229 MUST_USE_RESULT inline JSReceiver* NextHolder(Map* map); | 230 MUST_USE_RESULT inline JSReceiver* NextHolder(Map* map); |
| 230 inline State LookupInHolder(Map* map, JSReceiver* holder); | 231 inline State LookupInHolder(Map* map, JSReceiver* holder); |
| 231 void RestartLookupForNonMaskingInterceptors(); | 232 void RestartLookupForNonMaskingInterceptors(); |
| 232 State LookupNonMaskingInterceptorInHolder(Map* map, JSReceiver* holder); | 233 State LookupNonMaskingInterceptorInHolder(Map* map, JSReceiver* holder); |
| 233 Handle<Object> FetchValue() const; | 234 Handle<Object> FetchValue() const; |
| 234 void ReloadPropertyInformation(); | 235 void ReloadPropertyInformation(); |
| 235 bool SkipInterceptor(JSObject* holder); | 236 bool SkipInterceptor(JSObject* holder); |
| 236 bool HasInterceptor(Map* map) const; | 237 bool HasInterceptor(Map* map) const; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 Handle<JSReceiver> holder_; | 287 Handle<JSReceiver> holder_; |
| 287 Handle<Map> holder_map_; | 288 Handle<Map> holder_map_; |
| 288 const Handle<JSReceiver> initial_holder_; | 289 const Handle<JSReceiver> initial_holder_; |
| 289 uint32_t number_; | 290 uint32_t number_; |
| 290 }; | 291 }; |
| 291 | 292 |
| 292 | 293 |
| 293 } } // namespace v8::internal | 294 } } // namespace v8::internal |
| 294 | 295 |
| 295 #endif // V8_LOOKUP_H_ | 296 #endif // V8_LOOKUP_H_ |
| OLD | NEW |