OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 3928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3939 inline bool has_fast_double_elements() { | 3939 inline bool has_fast_double_elements() { |
3940 return elements_kind() == JSObject::FAST_DOUBLE_ELEMENTS; | 3940 return elements_kind() == JSObject::FAST_DOUBLE_ELEMENTS; |
3941 } | 3941 } |
3942 | 3942 |
3943 inline bool has_external_array_elements() { | 3943 inline bool has_external_array_elements() { |
3944 JSObject::ElementsKind kind(elements_kind()); | 3944 JSObject::ElementsKind kind(elements_kind()); |
3945 return kind >= JSObject::FIRST_EXTERNAL_ARRAY_ELEMENTS_KIND && | 3945 return kind >= JSObject::FIRST_EXTERNAL_ARRAY_ELEMENTS_KIND && |
3946 kind <= JSObject::LAST_EXTERNAL_ARRAY_ELEMENTS_KIND; | 3946 kind <= JSObject::LAST_EXTERNAL_ARRAY_ELEMENTS_KIND; |
3947 } | 3947 } |
3948 | 3948 |
| 3949 inline bool has_dictionary_elements() { |
| 3950 return elements_kind() == JSObject::DICTIONARY_ELEMENTS; |
| 3951 } |
| 3952 |
3949 // Tells whether the map is attached to SharedFunctionInfo | 3953 // Tells whether the map is attached to SharedFunctionInfo |
3950 // (for inobject slack tracking). | 3954 // (for inobject slack tracking). |
3951 inline void set_attached_to_shared_function_info(bool value); | 3955 inline void set_attached_to_shared_function_info(bool value); |
3952 | 3956 |
3953 inline bool attached_to_shared_function_info(); | 3957 inline bool attached_to_shared_function_info(); |
3954 | 3958 |
3955 // Tells whether the map is shared between objects that may have different | 3959 // Tells whether the map is shared between objects that may have different |
3956 // behavior. If true, the map should never be modified, instead a clone | 3960 // behavior. If true, the map should never be modified, instead a clone |
3957 // should be created and modified. | 3961 // should be created and modified. |
3958 inline void set_is_shared(bool value); | 3962 inline void set_is_shared(bool value); |
(...skipping 3173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7132 } else { | 7136 } else { |
7133 value &= ~(1 << bit_position); | 7137 value &= ~(1 << bit_position); |
7134 } | 7138 } |
7135 return value; | 7139 return value; |
7136 } | 7140 } |
7137 }; | 7141 }; |
7138 | 7142 |
7139 } } // namespace v8::internal | 7143 } } // namespace v8::internal |
7140 | 7144 |
7141 #endif // V8_OBJECTS_H_ | 7145 #endif // V8_OBJECTS_H_ |
OLD | NEW |