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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 case JS_BUILTINS_OBJECT_TYPE: | 164 case JS_BUILTINS_OBJECT_TYPE: |
165 case JS_MESSAGE_OBJECT_TYPE: | 165 case JS_MESSAGE_OBJECT_TYPE: |
166 return GetVisitorIdForSize(kVisitJSObject, | 166 return GetVisitorIdForSize(kVisitJSObject, |
167 kVisitJSObjectGeneric, | 167 kVisitJSObjectGeneric, |
168 instance_size); | 168 instance_size); |
169 | 169 |
170 case JS_FUNCTION_TYPE: | 170 case JS_FUNCTION_TYPE: |
171 return kVisitJSFunction; | 171 return kVisitJSFunction; |
172 | 172 |
173 case HEAP_NUMBER_TYPE: | 173 case HEAP_NUMBER_TYPE: |
174 case EXTERNAL_PIXEL_ARRAY_TYPE: | 174 #define EXTERNAL_ARRAY_CASE(Type, type, TYPE, ctype, size) \ |
175 case EXTERNAL_BYTE_ARRAY_TYPE: | 175 case EXTERNAL_##TYPE##_ARRAY_TYPE: |
176 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: | 176 |
177 case EXTERNAL_SHORT_ARRAY_TYPE: | 177 TYPED_ARRAYS(EXTERNAL_ARRAY_CASE) |
178 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: | |
179 case EXTERNAL_INT_ARRAY_TYPE: | |
180 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: | |
181 case EXTERNAL_FLOAT_ARRAY_TYPE: | |
182 case EXTERNAL_DOUBLE_ARRAY_TYPE: | |
183 return GetVisitorIdForSize(kVisitDataObject, | 178 return GetVisitorIdForSize(kVisitDataObject, |
184 kVisitDataObjectGeneric, | 179 kVisitDataObjectGeneric, |
185 instance_size); | 180 instance_size); |
| 181 #undef EXTERNAL_ARRAY_CASE |
186 | 182 |
187 case FIXED_UINT8_ARRAY_TYPE: | 183 case FIXED_UINT8_ARRAY_TYPE: |
188 case FIXED_INT8_ARRAY_TYPE: | 184 case FIXED_INT8_ARRAY_TYPE: |
189 case FIXED_UINT16_ARRAY_TYPE: | 185 case FIXED_UINT16_ARRAY_TYPE: |
190 case FIXED_INT16_ARRAY_TYPE: | 186 case FIXED_INT16_ARRAY_TYPE: |
191 case FIXED_UINT32_ARRAY_TYPE: | 187 case FIXED_UINT32_ARRAY_TYPE: |
192 case FIXED_INT32_ARRAY_TYPE: | 188 case FIXED_INT32_ARRAY_TYPE: |
193 case FIXED_FLOAT32_ARRAY_TYPE: | 189 case FIXED_FLOAT32_ARRAY_TYPE: |
194 case FIXED_UINT8_CLAMPED_ARRAY_TYPE: | 190 case FIXED_UINT8_CLAMPED_ARRAY_TYPE: |
195 return kVisitFixedTypedArray; | 191 return kVisitFixedTypedArray; |
(...skipping 13 matching lines...) Expand all Loading... |
209 kVisitStructGeneric, | 205 kVisitStructGeneric, |
210 instance_size); | 206 instance_size); |
211 | 207 |
212 default: | 208 default: |
213 UNREACHABLE(); | 209 UNREACHABLE(); |
214 return kVisitorIdCount; | 210 return kVisitorIdCount; |
215 } | 211 } |
216 } | 212 } |
217 | 213 |
218 } } // namespace v8::internal | 214 } } // namespace v8::internal |
OLD | NEW |