| 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 kUninitialized, | 268 kUninitialized, |
| 269 kSkipNonMasking, | 269 kSkipNonMasking, |
| 270 kProcessNonMasking | 270 kProcessNonMasking |
| 271 }; | 271 }; |
| 272 | 272 |
| 273 Handle<Map> GetReceiverMap() const; | 273 Handle<Map> GetReceiverMap() const; |
| 274 | 274 |
| 275 MUST_USE_RESULT inline JSReceiver* NextHolder(Map* map); | 275 MUST_USE_RESULT inline JSReceiver* NextHolder(Map* map); |
| 276 | 276 |
| 277 template <bool is_element> | 277 template <bool is_element> |
| 278 void Start(); | 278 V8_EXPORT_PRIVATE void Start(); |
| 279 template <bool is_element> | 279 template <bool is_element> |
| 280 void NextInternal(Map* map, JSReceiver* holder); | 280 void NextInternal(Map* map, JSReceiver* holder); |
| 281 template <bool is_element> | 281 template <bool is_element> |
| 282 inline State LookupInHolder(Map* map, JSReceiver* holder) { | 282 inline State LookupInHolder(Map* map, JSReceiver* holder) { |
| 283 return map->instance_type() <= LAST_SPECIAL_RECEIVER_TYPE | 283 return map->instance_type() <= LAST_SPECIAL_RECEIVER_TYPE |
| 284 ? LookupInSpecialHolder<is_element>(map, holder) | 284 ? LookupInSpecialHolder<is_element>(map, holder) |
| 285 : LookupInRegularHolder<is_element>(map, holder); | 285 : LookupInRegularHolder<is_element>(map, holder); |
| 286 } | 286 } |
| 287 template <bool is_element> | 287 template <bool is_element> |
| 288 State LookupInRegularHolder(Map* map, JSReceiver* holder); | 288 State LookupInRegularHolder(Map* map, JSReceiver* holder); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 const Handle<JSReceiver> initial_holder_; | 353 const Handle<JSReceiver> initial_holder_; |
| 354 const uint32_t index_; | 354 const uint32_t index_; |
| 355 uint32_t number_; | 355 uint32_t number_; |
| 356 }; | 356 }; |
| 357 | 357 |
| 358 | 358 |
| 359 } // namespace internal | 359 } // namespace internal |
| 360 } // namespace v8 | 360 } // namespace v8 |
| 361 | 361 |
| 362 #endif // V8_LOOKUP_H_ | 362 #endif // V8_LOOKUP_H_ |
| OLD | NEW |