Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: src/ast/ast-types.cc

Issue 2405253006: [builtins] implement Array.prototype[@@iterator] in TFJ builtins (Closed)
Patch Set: latest round Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | src/ast/prettyprinter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <iomanip> 5 #include <iomanip>
6 6
7 #include "src/ast/ast-types.h" 7 #include "src/ast/ast-types.h"
8 8
9 #include "src/handles-inl.h" 9 #include "src/handles-inl.h"
10 #include "src/ostreams.h" 10 #include "src/ostreams.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 case JS_ARRAY_BUFFER_TYPE: 213 case JS_ARRAY_BUFFER_TYPE:
214 case JS_ARRAY_TYPE: 214 case JS_ARRAY_TYPE:
215 case JS_REGEXP_TYPE: // TODO(rossberg): there should be a RegExp type. 215 case JS_REGEXP_TYPE: // TODO(rossberg): there should be a RegExp type.
216 case JS_TYPED_ARRAY_TYPE: 216 case JS_TYPED_ARRAY_TYPE:
217 case JS_DATA_VIEW_TYPE: 217 case JS_DATA_VIEW_TYPE:
218 case JS_SET_TYPE: 218 case JS_SET_TYPE:
219 case JS_MAP_TYPE: 219 case JS_MAP_TYPE:
220 case JS_SET_ITERATOR_TYPE: 220 case JS_SET_ITERATOR_TYPE:
221 case JS_MAP_ITERATOR_TYPE: 221 case JS_MAP_ITERATOR_TYPE:
222 case JS_STRING_ITERATOR_TYPE: 222 case JS_STRING_ITERATOR_TYPE:
223
224 case JS_TYPED_ARRAY_KEY_ITERATOR_TYPE:
225 case JS_FAST_ARRAY_KEY_ITERATOR_TYPE:
226 case JS_GENERIC_ARRAY_KEY_ITERATOR_TYPE:
227 case JS_UINT8_ARRAY_KEY_VALUE_ITERATOR_TYPE:
228 case JS_INT8_ARRAY_KEY_VALUE_ITERATOR_TYPE:
229 case JS_UINT16_ARRAY_KEY_VALUE_ITERATOR_TYPE:
230 case JS_INT16_ARRAY_KEY_VALUE_ITERATOR_TYPE:
231 case JS_UINT32_ARRAY_KEY_VALUE_ITERATOR_TYPE:
232 case JS_INT32_ARRAY_KEY_VALUE_ITERATOR_TYPE:
233 case JS_FLOAT32_ARRAY_KEY_VALUE_ITERATOR_TYPE:
234 case JS_FLOAT64_ARRAY_KEY_VALUE_ITERATOR_TYPE:
235 case JS_UINT8_CLAMPED_ARRAY_KEY_VALUE_ITERATOR_TYPE:
236 case JS_FAST_SMI_ARRAY_KEY_VALUE_ITERATOR_TYPE:
237 case JS_FAST_HOLEY_SMI_ARRAY_KEY_VALUE_ITERATOR_TYPE:
238 case JS_FAST_ARRAY_KEY_VALUE_ITERATOR_TYPE:
239 case JS_FAST_HOLEY_ARRAY_KEY_VALUE_ITERATOR_TYPE:
240 case JS_FAST_DOUBLE_ARRAY_KEY_VALUE_ITERATOR_TYPE:
241 case JS_FAST_HOLEY_DOUBLE_ARRAY_KEY_VALUE_ITERATOR_TYPE:
242 case JS_GENERIC_ARRAY_KEY_VALUE_ITERATOR_TYPE:
243 case JS_UINT8_ARRAY_VALUE_ITERATOR_TYPE:
244 case JS_INT8_ARRAY_VALUE_ITERATOR_TYPE:
245 case JS_UINT16_ARRAY_VALUE_ITERATOR_TYPE:
246 case JS_INT16_ARRAY_VALUE_ITERATOR_TYPE:
247 case JS_UINT32_ARRAY_VALUE_ITERATOR_TYPE:
248 case JS_INT32_ARRAY_VALUE_ITERATOR_TYPE:
249 case JS_FLOAT32_ARRAY_VALUE_ITERATOR_TYPE:
250 case JS_FLOAT64_ARRAY_VALUE_ITERATOR_TYPE:
251 case JS_UINT8_CLAMPED_ARRAY_VALUE_ITERATOR_TYPE:
252 case JS_FAST_SMI_ARRAY_VALUE_ITERATOR_TYPE:
253 case JS_FAST_HOLEY_SMI_ARRAY_VALUE_ITERATOR_TYPE:
254 case JS_FAST_ARRAY_VALUE_ITERATOR_TYPE:
255 case JS_FAST_HOLEY_ARRAY_VALUE_ITERATOR_TYPE:
256 case JS_FAST_DOUBLE_ARRAY_VALUE_ITERATOR_TYPE:
257 case JS_FAST_HOLEY_DOUBLE_ARRAY_VALUE_ITERATOR_TYPE:
258 case JS_GENERIC_ARRAY_VALUE_ITERATOR_TYPE:
259
223 case JS_WEAK_MAP_TYPE: 260 case JS_WEAK_MAP_TYPE:
224 case JS_WEAK_SET_TYPE: 261 case JS_WEAK_SET_TYPE:
225 case JS_PROMISE_TYPE: 262 case JS_PROMISE_TYPE:
226 case JS_BOUND_FUNCTION_TYPE: 263 case JS_BOUND_FUNCTION_TYPE:
227 DCHECK(!map->is_undetectable()); 264 DCHECK(!map->is_undetectable());
228 return kOtherObject; 265 return kOtherObject;
229 case JS_FUNCTION_TYPE: 266 case JS_FUNCTION_TYPE:
230 DCHECK(!map->is_undetectable()); 267 DCHECK(!map->is_undetectable());
231 return kFunction; 268 return kFunction;
232 case JS_PROXY_TYPE: 269 case JS_PROXY_TYPE:
(...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 #undef CONSTRUCT_SIMD_TYPE 1302 #undef CONSTRUCT_SIMD_TYPE
1266 1303
1267 // ----------------------------------------------------------------------------- 1304 // -----------------------------------------------------------------------------
1268 // Instantiations. 1305 // Instantiations.
1269 1306
1270 template class AstType::Iterator<i::Map>; 1307 template class AstType::Iterator<i::Map>;
1271 template class AstType::Iterator<i::Object>; 1308 template class AstType::Iterator<i::Object>;
1272 1309
1273 } // namespace internal 1310 } // namespace internal
1274 } // namespace v8 1311 } // namespace v8
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/ast/prettyprinter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698