OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 EXTERNAL_DOUBLE_ELEMENTS, | 155 EXTERNAL_DOUBLE_ELEMENTS, |
156 EXTERNAL_PIXEL_ELEMENTS, | 156 EXTERNAL_PIXEL_ELEMENTS, |
157 | 157 |
158 // Derived constants from ElementsKind | 158 // Derived constants from ElementsKind |
159 FIRST_EXTERNAL_ARRAY_ELEMENTS_KIND = EXTERNAL_BYTE_ELEMENTS, | 159 FIRST_EXTERNAL_ARRAY_ELEMENTS_KIND = EXTERNAL_BYTE_ELEMENTS, |
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 enum CompareMapMode { |
| 166 REQUIRE_EXACT_MAP, |
| 167 ALLOW_ELEMENT_TRANSITION_MAPS |
| 168 }; |
| 169 |
165 const int kElementsKindCount = LAST_ELEMENTS_KIND - FIRST_ELEMENTS_KIND + 1; | 170 const int kElementsKindCount = LAST_ELEMENTS_KIND - FIRST_ELEMENTS_KIND + 1; |
166 | 171 |
167 void PrintElementsKind(FILE* out, ElementsKind kind); | 172 void PrintElementsKind(FILE* out, ElementsKind kind); |
168 | 173 |
169 inline bool IsMoreGeneralElementsKindTransition(ElementsKind from_kind, | 174 inline bool IsMoreGeneralElementsKindTransition(ElementsKind from_kind, |
170 ElementsKind to_kind); | 175 ElementsKind to_kind); |
171 | 176 |
172 // Setter that skips the write barrier if mode is SKIP_WRITE_BARRIER. | 177 // Setter that skips the write barrier if mode is SKIP_WRITE_BARRIER. |
173 enum WriteBarrierMode { SKIP_WRITE_BARRIER, UPDATE_WRITE_BARRIER }; | 178 enum WriteBarrierMode { SKIP_WRITE_BARRIER, UPDATE_WRITE_BARRIER }; |
174 | 179 |
(...skipping 7897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8072 } else { | 8077 } else { |
8073 value &= ~(1 << bit_position); | 8078 value &= ~(1 << bit_position); |
8074 } | 8079 } |
8075 return value; | 8080 return value; |
8076 } | 8081 } |
8077 }; | 8082 }; |
8078 | 8083 |
8079 } } // namespace v8::internal | 8084 } } // namespace v8::internal |
8080 | 8085 |
8081 #endif // V8_OBJECTS_H_ | 8086 #endif // V8_OBJECTS_H_ |
OLD | NEW |