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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 case EXTERNAL_FLOAT_ARRAY_TYPE: | 175 case EXTERNAL_FLOAT_ARRAY_TYPE: |
176 case EXTERNAL_DOUBLE_ARRAY_TYPE: | 176 case EXTERNAL_DOUBLE_ARRAY_TYPE: |
177 return GetVisitorIdForSize(kVisitDataObject, | 177 return GetVisitorIdForSize(kVisitDataObject, |
178 kVisitDataObjectGeneric, | 178 kVisitDataObjectGeneric, |
179 instance_size); | 179 instance_size); |
180 | 180 |
181 #define MAKE_STRUCT_CASE(NAME, Name, name) \ | 181 #define MAKE_STRUCT_CASE(NAME, Name, name) \ |
182 case NAME##_TYPE: | 182 case NAME##_TYPE: |
183 STRUCT_LIST(MAKE_STRUCT_CASE) | 183 STRUCT_LIST(MAKE_STRUCT_CASE) |
184 #undef MAKE_STRUCT_CASE | 184 #undef MAKE_STRUCT_CASE |
| 185 if (instance_type == ALLOCATION_SITE_TYPE) { |
| 186 return kVisitAllocationSite; |
| 187 } |
| 188 |
185 return GetVisitorIdForSize(kVisitStruct, | 189 return GetVisitorIdForSize(kVisitStruct, |
186 kVisitStructGeneric, | 190 kVisitStructGeneric, |
187 instance_size); | 191 instance_size); |
188 | 192 |
189 default: | 193 default: |
190 UNREACHABLE(); | 194 UNREACHABLE(); |
191 return kVisitorIdCount; | 195 return kVisitorIdCount; |
192 } | 196 } |
193 } | 197 } |
194 | 198 |
195 } } // namespace v8::internal | 199 } } // namespace v8::internal |
OLD | NEW |