| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 case JS_BUILTINS_OBJECT_TYPE: | 106 case JS_BUILTINS_OBJECT_TYPE: |
| 107 case JS_MESSAGE_OBJECT_TYPE: | 107 case JS_MESSAGE_OBJECT_TYPE: |
| 108 return GetVisitorIdForSize(kVisitJSObject, | 108 return GetVisitorIdForSize(kVisitJSObject, |
| 109 kVisitJSObjectGeneric, | 109 kVisitJSObjectGeneric, |
| 110 instance_size); | 110 instance_size); |
| 111 | 111 |
| 112 case JS_FUNCTION_TYPE: | 112 case JS_FUNCTION_TYPE: |
| 113 return kVisitJSFunction; | 113 return kVisitJSFunction; |
| 114 | 114 |
| 115 case HEAP_NUMBER_TYPE: | 115 case HEAP_NUMBER_TYPE: |
| 116 case PIXEL_ARRAY_TYPE: | 116 case EXTERNAL_PIXEL_ARRAY_TYPE: |
| 117 case EXTERNAL_BYTE_ARRAY_TYPE: | 117 case EXTERNAL_BYTE_ARRAY_TYPE: |
| 118 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: | 118 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: |
| 119 case EXTERNAL_SHORT_ARRAY_TYPE: | 119 case EXTERNAL_SHORT_ARRAY_TYPE: |
| 120 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: | 120 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: |
| 121 case EXTERNAL_INT_ARRAY_TYPE: | 121 case EXTERNAL_INT_ARRAY_TYPE: |
| 122 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: | 122 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: |
| 123 case EXTERNAL_FLOAT_ARRAY_TYPE: | 123 case EXTERNAL_FLOAT_ARRAY_TYPE: |
| 124 return GetVisitorIdForSize(kVisitDataObject, | 124 return GetVisitorIdForSize(kVisitDataObject, |
| 125 kVisitDataObjectGeneric, | 125 kVisitDataObjectGeneric, |
| 126 instance_size); | 126 instance_size); |
| 127 | 127 |
| 128 #define MAKE_STRUCT_CASE(NAME, Name, name) \ | 128 #define MAKE_STRUCT_CASE(NAME, Name, name) \ |
| 129 case NAME##_TYPE: | 129 case NAME##_TYPE: |
| 130 STRUCT_LIST(MAKE_STRUCT_CASE) | 130 STRUCT_LIST(MAKE_STRUCT_CASE) |
| 131 #undef MAKE_STRUCT_CASE | 131 #undef MAKE_STRUCT_CASE |
| 132 return GetVisitorIdForSize(kVisitStruct, | 132 return GetVisitorIdForSize(kVisitStruct, |
| 133 kVisitStructGeneric, | 133 kVisitStructGeneric, |
| 134 instance_size); | 134 instance_size); |
| 135 | 135 |
| 136 default: | 136 default: |
| 137 UNREACHABLE(); | 137 UNREACHABLE(); |
| 138 return kVisitorIdCount; | 138 return kVisitorIdCount; |
| 139 } | 139 } |
| 140 } | 140 } |
| 141 | 141 |
| 142 } } // namespace v8::internal | 142 } } // namespace v8::internal |
| OLD | NEW |