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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 LAST_EXTERNAL_ARRAY_ELEMENTS_KIND = EXTERNAL_PIXEL_ELEMENTS, | 160 LAST_EXTERNAL_ARRAY_ELEMENTS_KIND = EXTERNAL_PIXEL_ELEMENTS, |
161 FIRST_ELEMENTS_KIND = FAST_SMI_ONLY_ELEMENTS, | 161 FIRST_ELEMENTS_KIND = FAST_SMI_ONLY_ELEMENTS, |
162 LAST_ELEMENTS_KIND = EXTERNAL_PIXEL_ELEMENTS | 162 LAST_ELEMENTS_KIND = EXTERNAL_PIXEL_ELEMENTS |
163 }; | 163 }; |
164 | 164 |
165 static const int kElementsKindCount = | 165 static const int kElementsKindCount = |
166 LAST_ELEMENTS_KIND - FIRST_ELEMENTS_KIND + 1; | 166 LAST_ELEMENTS_KIND - FIRST_ELEMENTS_KIND + 1; |
167 | 167 |
168 void PrintElementsKind(FILE* out, ElementsKind kind); | 168 void PrintElementsKind(FILE* out, ElementsKind kind); |
169 | 169 |
| 170 inline bool IsMoreGeneralElementsKindTransition(ElementsKind from_kind, |
| 171 ElementsKind to_kind); |
170 | 172 |
171 // Setter that skips the write barrier if mode is SKIP_WRITE_BARRIER. | 173 // Setter that skips the write barrier if mode is SKIP_WRITE_BARRIER. |
172 enum WriteBarrierMode { SKIP_WRITE_BARRIER, UPDATE_WRITE_BARRIER }; | 174 enum WriteBarrierMode { SKIP_WRITE_BARRIER, UPDATE_WRITE_BARRIER }; |
173 | 175 |
174 | 176 |
175 // PropertyNormalizationMode is used to specify whether to keep | 177 // PropertyNormalizationMode is used to specify whether to keep |
176 // inobject properties when normalizing properties of a JSObject. | 178 // inobject properties when normalizing properties of a JSObject. |
177 enum PropertyNormalizationMode { | 179 enum PropertyNormalizationMode { |
178 CLEAR_INOBJECT_PROPERTIES, | 180 CLEAR_INOBJECT_PROPERTIES, |
179 KEEP_INOBJECT_PROPERTIES | 181 KEEP_INOBJECT_PROPERTIES |
(...skipping 7678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7858 } else { | 7860 } else { |
7859 value &= ~(1 << bit_position); | 7861 value &= ~(1 << bit_position); |
7860 } | 7862 } |
7861 return value; | 7863 return value; |
7862 } | 7864 } |
7863 }; | 7865 }; |
7864 | 7866 |
7865 } } // namespace v8::internal | 7867 } } // namespace v8::internal |
7866 | 7868 |
7867 #endif // V8_OBJECTS_H_ | 7869 #endif // V8_OBJECTS_H_ |
OLD | NEW |