OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/assert-scope.h" | 10 #include "src/assert-scope.h" |
(...skipping 5690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5701 | 5701 |
5702 // Tells whether the instance has fast elements that are only Smis. | 5702 // Tells whether the instance has fast elements that are only Smis. |
5703 inline bool has_fast_smi_elements(); | 5703 inline bool has_fast_smi_elements(); |
5704 | 5704 |
5705 // Tells whether the instance has fast elements. | 5705 // Tells whether the instance has fast elements. |
5706 inline bool has_fast_object_elements(); | 5706 inline bool has_fast_object_elements(); |
5707 inline bool has_fast_smi_or_object_elements(); | 5707 inline bool has_fast_smi_or_object_elements(); |
5708 inline bool has_fast_double_elements(); | 5708 inline bool has_fast_double_elements(); |
5709 inline bool has_fast_elements(); | 5709 inline bool has_fast_elements(); |
5710 inline bool has_sloppy_arguments_elements(); | 5710 inline bool has_sloppy_arguments_elements(); |
| 5711 inline bool has_fast_sloppy_arguments_elements(); |
5711 inline bool has_fast_string_wrapper_elements(); | 5712 inline bool has_fast_string_wrapper_elements(); |
5712 inline bool has_fixed_typed_array_elements(); | 5713 inline bool has_fixed_typed_array_elements(); |
5713 inline bool has_dictionary_elements(); | 5714 inline bool has_dictionary_elements(); |
5714 | 5715 |
5715 static bool IsValidElementsTransition(ElementsKind from_kind, | 5716 static bool IsValidElementsTransition(ElementsKind from_kind, |
5716 ElementsKind to_kind); | 5717 ElementsKind to_kind); |
5717 | 5718 |
5718 // Returns true if the current map doesn't have DICTIONARY_ELEMENTS but if a | 5719 // Returns true if the current map doesn't have DICTIONARY_ELEMENTS but if a |
5719 // map with DICTIONARY_ELEMENTS was found in the prototype chain. | 5720 // map with DICTIONARY_ELEMENTS was found in the prototype chain. |
5720 bool DictionaryElementsInPrototypeChainOnly(); | 5721 bool DictionaryElementsInPrototypeChainOnly(); |
(...skipping 5064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10785 } | 10786 } |
10786 return value; | 10787 return value; |
10787 } | 10788 } |
10788 }; | 10789 }; |
10789 | 10790 |
10790 | 10791 |
10791 } // NOLINT, false-positive due to second-order macros. | 10792 } // NOLINT, false-positive due to second-order macros. |
10792 } // NOLINT, false-positive due to second-order macros. | 10793 } // NOLINT, false-positive due to second-order macros. |
10793 | 10794 |
10794 #endif // V8_OBJECTS_H_ | 10795 #endif // V8_OBJECTS_H_ |
OLD | NEW |