| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 case EXTERNAL_SHORT_ARRAY_TYPE: | 177 case EXTERNAL_SHORT_ARRAY_TYPE: |
| 178 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: | 178 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: |
| 179 case EXTERNAL_INT_ARRAY_TYPE: | 179 case EXTERNAL_INT_ARRAY_TYPE: |
| 180 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: | 180 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: |
| 181 case EXTERNAL_FLOAT_ARRAY_TYPE: | 181 case EXTERNAL_FLOAT_ARRAY_TYPE: |
| 182 case EXTERNAL_DOUBLE_ARRAY_TYPE: | 182 case EXTERNAL_DOUBLE_ARRAY_TYPE: |
| 183 return GetVisitorIdForSize(kVisitDataObject, | 183 return GetVisitorIdForSize(kVisitDataObject, |
| 184 kVisitDataObjectGeneric, | 184 kVisitDataObjectGeneric, |
| 185 instance_size); | 185 instance_size); |
| 186 | 186 |
| 187 case FIXED_UINT8_ARRAY_TYPE: | |
| 188 case FIXED_INT8_ARRAY_TYPE: | |
| 189 case FIXED_UINT16_ARRAY_TYPE: | |
| 190 case FIXED_INT16_ARRAY_TYPE: | |
| 191 case FIXED_UINT32_ARRAY_TYPE: | |
| 192 case FIXED_INT32_ARRAY_TYPE: | |
| 193 case FIXED_FLOAT32_ARRAY_TYPE: | |
| 194 case FIXED_FLOAT64_ARRAY_TYPE: | |
| 195 case FIXED_UINT8_CLAMPED_ARRAY_TYPE: | |
| 196 return kVisitFixedTypedArray; | |
| 197 | |
| 198 #define MAKE_STRUCT_CASE(NAME, Name, name) \ | 187 #define MAKE_STRUCT_CASE(NAME, Name, name) \ |
| 199 case NAME##_TYPE: | 188 case NAME##_TYPE: |
| 200 STRUCT_LIST(MAKE_STRUCT_CASE) | 189 STRUCT_LIST(MAKE_STRUCT_CASE) |
| 201 #undef MAKE_STRUCT_CASE | 190 #undef MAKE_STRUCT_CASE |
| 202 if (instance_type == ALLOCATION_SITE_TYPE) { | 191 if (instance_type == ALLOCATION_SITE_TYPE) { |
| 203 return kVisitAllocationSite; | 192 return kVisitAllocationSite; |
| 204 } | 193 } |
| 205 | 194 |
| 206 return GetVisitorIdForSize(kVisitStruct, | 195 return GetVisitorIdForSize(kVisitStruct, |
| 207 kVisitStructGeneric, | 196 kVisitStructGeneric, |
| 208 instance_size); | 197 instance_size); |
| 209 | 198 |
| 210 default: | 199 default: |
| 211 UNREACHABLE(); | 200 UNREACHABLE(); |
| 212 return kVisitorIdCount; | 201 return kVisitorIdCount; |
| 213 } | 202 } |
| 214 } | 203 } |
| 215 | 204 |
| 216 } } // namespace v8::internal | 205 } } // namespace v8::internal |
| OLD | NEW |