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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 case FREE_SPACE_TYPE: | 76 case FREE_SPACE_TYPE: |
77 return kVisitFreeSpace; | 77 return kVisitFreeSpace; |
78 | 78 |
79 case FIXED_ARRAY_TYPE: | 79 case FIXED_ARRAY_TYPE: |
80 return kVisitFixedArray; | 80 return kVisitFixedArray; |
81 | 81 |
82 case FIXED_DOUBLE_ARRAY_TYPE: | 82 case FIXED_DOUBLE_ARRAY_TYPE: |
83 return kVisitFixedDoubleArray; | 83 return kVisitFixedDoubleArray; |
84 | 84 |
| 85 |
85 case CONSTANT_POOL_ARRAY_TYPE: | 86 case CONSTANT_POOL_ARRAY_TYPE: |
86 return kVisitConstantPoolArray; | 87 return kVisitConstantPoolArray; |
87 | 88 |
88 case ODDBALL_TYPE: | 89 case ODDBALL_TYPE: |
89 return kVisitOddball; | 90 return kVisitOddball; |
90 | 91 |
91 case MAP_TYPE: | 92 case MAP_TYPE: |
92 return kVisitMap; | 93 return kVisitMap; |
93 | 94 |
94 case CODE_TYPE: | 95 case CODE_TYPE: |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 case EXTERNAL_SHORT_ARRAY_TYPE: | 178 case EXTERNAL_SHORT_ARRAY_TYPE: |
178 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: | 179 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: |
179 case EXTERNAL_INT_ARRAY_TYPE: | 180 case EXTERNAL_INT_ARRAY_TYPE: |
180 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: | 181 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: |
181 case EXTERNAL_FLOAT_ARRAY_TYPE: | 182 case EXTERNAL_FLOAT_ARRAY_TYPE: |
182 case EXTERNAL_DOUBLE_ARRAY_TYPE: | 183 case EXTERNAL_DOUBLE_ARRAY_TYPE: |
183 return GetVisitorIdForSize(kVisitDataObject, | 184 return GetVisitorIdForSize(kVisitDataObject, |
184 kVisitDataObjectGeneric, | 185 kVisitDataObjectGeneric, |
185 instance_size); | 186 instance_size); |
186 | 187 |
| 188 case FIXED_UINT8_ARRAY_TYPE: |
| 189 case FIXED_INT8_ARRAY_TYPE: |
| 190 case FIXED_UINT16_ARRAY_TYPE: |
| 191 case FIXED_INT16_ARRAY_TYPE: |
| 192 case FIXED_UINT32_ARRAY_TYPE: |
| 193 case FIXED_INT32_ARRAY_TYPE: |
| 194 case FIXED_FLOAT32_ARRAY_TYPE: |
| 195 case FIXED_FLOAT64_ARRAY_TYPE: |
| 196 case FIXED_UINT8_CLAMPED_ARRAY_TYPE: |
| 197 return kVisitFixedTypedArray; |
| 198 |
187 #define MAKE_STRUCT_CASE(NAME, Name, name) \ | 199 #define MAKE_STRUCT_CASE(NAME, Name, name) \ |
188 case NAME##_TYPE: | 200 case NAME##_TYPE: |
189 STRUCT_LIST(MAKE_STRUCT_CASE) | 201 STRUCT_LIST(MAKE_STRUCT_CASE) |
190 #undef MAKE_STRUCT_CASE | 202 #undef MAKE_STRUCT_CASE |
191 if (instance_type == ALLOCATION_SITE_TYPE) { | 203 if (instance_type == ALLOCATION_SITE_TYPE) { |
192 return kVisitAllocationSite; | 204 return kVisitAllocationSite; |
193 } | 205 } |
194 | 206 |
195 return GetVisitorIdForSize(kVisitStruct, | 207 return GetVisitorIdForSize(kVisitStruct, |
196 kVisitStructGeneric, | 208 kVisitStructGeneric, |
197 instance_size); | 209 instance_size); |
198 | 210 |
199 default: | 211 default: |
200 UNREACHABLE(); | 212 UNREACHABLE(); |
201 return kVisitorIdCount; | 213 return kVisitorIdCount; |
202 } | 214 } |
203 } | 215 } |
204 | 216 |
205 } } // namespace v8::internal | 217 } } // namespace v8::internal |
OLD | NEW |