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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 return GetVisitorIdForSize(kVisitStruct, | 122 return GetVisitorIdForSize(kVisitStruct, |
123 kVisitStructGeneric, | 123 kVisitStructGeneric, |
124 JSFunctionProxy::kSize); | 124 JSFunctionProxy::kSize); |
125 | 125 |
126 case FOREIGN_TYPE: | 126 case FOREIGN_TYPE: |
127 return GetVisitorIdForSize(kVisitDataObject, | 127 return GetVisitorIdForSize(kVisitDataObject, |
128 kVisitDataObjectGeneric, | 128 kVisitDataObjectGeneric, |
129 Foreign::kSize); | 129 Foreign::kSize); |
130 | 130 |
131 case SYMBOL_TYPE: | 131 case SYMBOL_TYPE: |
132 return GetVisitorIdForSize(kVisitDataObject, | 132 return kVisitSymbol; |
133 kVisitDataObjectGeneric, | |
134 Symbol::kSize); | |
135 | 133 |
136 case FILLER_TYPE: | 134 case FILLER_TYPE: |
137 return kVisitDataObjectGeneric; | 135 return kVisitDataObjectGeneric; |
138 | 136 |
139 case JS_OBJECT_TYPE: | 137 case JS_OBJECT_TYPE: |
140 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: | 138 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
141 case JS_MODULE_TYPE: | 139 case JS_MODULE_TYPE: |
142 case JS_VALUE_TYPE: | 140 case JS_VALUE_TYPE: |
143 case JS_DATE_TYPE: | 141 case JS_DATE_TYPE: |
144 case JS_ARRAY_TYPE: | 142 case JS_ARRAY_TYPE: |
(...skipping 30 matching lines...) Expand all Loading... |
175 kVisitStructGeneric, | 173 kVisitStructGeneric, |
176 instance_size); | 174 instance_size); |
177 | 175 |
178 default: | 176 default: |
179 UNREACHABLE(); | 177 UNREACHABLE(); |
180 return kVisitorIdCount; | 178 return kVisitorIdCount; |
181 } | 179 } |
182 } | 180 } |
183 | 181 |
184 } } // namespace v8::internal | 182 } } // namespace v8::internal |
OLD | NEW |