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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 kVisitSymbol; | 132 return kVisitSymbol; |
133 | 133 |
134 case FILLER_TYPE: | 134 case FILLER_TYPE: |
135 return kVisitDataObjectGeneric; | 135 return kVisitDataObjectGeneric; |
136 | 136 |
| 137 case JS_ARRAY_BUFFER_TYPE: |
| 138 return kVisitJSArrayBuffer; |
| 139 |
| 140 case JS_TYPED_ARRAY_TYPE: |
| 141 return kVisitJSTypedArray; |
| 142 |
137 case JS_OBJECT_TYPE: | 143 case JS_OBJECT_TYPE: |
138 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: | 144 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
139 case JS_GENERATOR_OBJECT_TYPE: | 145 case JS_GENERATOR_OBJECT_TYPE: |
140 case JS_MODULE_TYPE: | 146 case JS_MODULE_TYPE: |
141 case JS_VALUE_TYPE: | 147 case JS_VALUE_TYPE: |
142 case JS_DATE_TYPE: | 148 case JS_DATE_TYPE: |
143 case JS_ARRAY_TYPE: | 149 case JS_ARRAY_TYPE: |
144 case JS_GLOBAL_PROXY_TYPE: | 150 case JS_GLOBAL_PROXY_TYPE: |
145 case JS_GLOBAL_OBJECT_TYPE: | 151 case JS_GLOBAL_OBJECT_TYPE: |
146 case JS_BUILTINS_OBJECT_TYPE: | 152 case JS_BUILTINS_OBJECT_TYPE: |
147 case JS_MESSAGE_OBJECT_TYPE: | 153 case JS_MESSAGE_OBJECT_TYPE: |
148 case JS_ARRAY_BUFFER_TYPE: | 154 return GetVisitorIdForSize(kVisitJSObject, |
149 case JS_TYPED_ARRAY_TYPE: | |
150 return GetVisitorIdForSize(kVisitJSObject, | |
151 kVisitJSObjectGeneric, | 155 kVisitJSObjectGeneric, |
152 instance_size); | 156 instance_size); |
153 | 157 |
154 case JS_FUNCTION_TYPE: | 158 case JS_FUNCTION_TYPE: |
155 return kVisitJSFunction; | 159 return kVisitJSFunction; |
156 | 160 |
157 case HEAP_NUMBER_TYPE: | 161 case HEAP_NUMBER_TYPE: |
158 case EXTERNAL_PIXEL_ARRAY_TYPE: | 162 case EXTERNAL_PIXEL_ARRAY_TYPE: |
159 case EXTERNAL_BYTE_ARRAY_TYPE: | 163 case EXTERNAL_BYTE_ARRAY_TYPE: |
160 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: | 164 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: |
(...skipping 15 matching lines...) Expand all Loading... |
176 kVisitStructGeneric, | 180 kVisitStructGeneric, |
177 instance_size); | 181 instance_size); |
178 | 182 |
179 default: | 183 default: |
180 UNREACHABLE(); | 184 UNREACHABLE(); |
181 return kVisitorIdCount; | 185 return kVisitorIdCount; |
182 } | 186 } |
183 } | 187 } |
184 | 188 |
185 } } // namespace v8::internal | 189 } } // namespace v8::internal |
OLD | NEW |