| 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 MUTABLE_HEAP_NUMBER_TYPE: |
| 174 #define EXTERNAL_ARRAY_CASE(Type, type, TYPE, ctype, size) \ | 175 #define EXTERNAL_ARRAY_CASE(Type, type, TYPE, ctype, size) \ |
| 175 case EXTERNAL_##TYPE##_ARRAY_TYPE: | 176 case EXTERNAL_##TYPE##_ARRAY_TYPE: |
| 176 | 177 |
| 177 TYPED_ARRAYS(EXTERNAL_ARRAY_CASE) | 178 TYPED_ARRAYS(EXTERNAL_ARRAY_CASE) |
| 178 return GetVisitorIdForSize(kVisitDataObject, | 179 return GetVisitorIdForSize(kVisitDataObject, |
| 179 kVisitDataObjectGeneric, | 180 kVisitDataObjectGeneric, |
| 180 instance_size); | 181 instance_size); |
| 181 #undef EXTERNAL_ARRAY_CASE | 182 #undef EXTERNAL_ARRAY_CASE |
| 182 | 183 |
| 183 case FIXED_UINT8_ARRAY_TYPE: | 184 case FIXED_UINT8_ARRAY_TYPE: |
| (...skipping 21 matching lines...) Expand all Loading... |
| 205 kVisitStructGeneric, | 206 kVisitStructGeneric, |
| 206 instance_size); | 207 instance_size); |
| 207 | 208 |
| 208 default: | 209 default: |
| 209 UNREACHABLE(); | 210 UNREACHABLE(); |
| 210 return kVisitorIdCount; | 211 return kVisitorIdCount; |
| 211 } | 212 } |
| 212 } | 213 } |
| 213 | 214 |
| 214 } } // namespace v8::internal | 215 } } // namespace v8::internal |
| OLD | NEW |