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

Side by Side Diff: src/compiler/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 | « src/code-stub-assembler.cc ('k') | src/contexts.h » ('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/compiler/types.h" 7 #include "src/compiler/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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 case JS_ARRAY_BUFFER_TYPE: 208 case JS_ARRAY_BUFFER_TYPE:
209 case JS_ARRAY_TYPE: 209 case JS_ARRAY_TYPE:
210 case JS_REGEXP_TYPE: // TODO(rossberg): there should be a RegExp type. 210 case JS_REGEXP_TYPE: // TODO(rossberg): there should be a RegExp type.
211 case JS_TYPED_ARRAY_TYPE: 211 case JS_TYPED_ARRAY_TYPE:
212 case JS_DATA_VIEW_TYPE: 212 case JS_DATA_VIEW_TYPE:
213 case JS_SET_TYPE: 213 case JS_SET_TYPE:
214 case JS_MAP_TYPE: 214 case JS_MAP_TYPE:
215 case JS_SET_ITERATOR_TYPE: 215 case JS_SET_ITERATOR_TYPE:
216 case JS_MAP_ITERATOR_TYPE: 216 case JS_MAP_ITERATOR_TYPE:
217 case JS_STRING_ITERATOR_TYPE: 217 case JS_STRING_ITERATOR_TYPE:
218
219 case JS_TYPED_ARRAY_KEY_ITERATOR_TYPE:
220 case JS_FAST_ARRAY_KEY_ITERATOR_TYPE:
221 case JS_GENERIC_ARRAY_KEY_ITERATOR_TYPE:
222 case JS_UINT8_ARRAY_KEY_VALUE_ITERATOR_TYPE:
223 case JS_INT8_ARRAY_KEY_VALUE_ITERATOR_TYPE:
224 case JS_UINT16_ARRAY_KEY_VALUE_ITERATOR_TYPE:
225 case JS_INT16_ARRAY_KEY_VALUE_ITERATOR_TYPE:
226 case JS_UINT32_ARRAY_KEY_VALUE_ITERATOR_TYPE:
227 case JS_INT32_ARRAY_KEY_VALUE_ITERATOR_TYPE:
228 case JS_FLOAT32_ARRAY_KEY_VALUE_ITERATOR_TYPE:
229 case JS_FLOAT64_ARRAY_KEY_VALUE_ITERATOR_TYPE:
230 case JS_UINT8_CLAMPED_ARRAY_KEY_VALUE_ITERATOR_TYPE:
231 case JS_FAST_SMI_ARRAY_KEY_VALUE_ITERATOR_TYPE:
232 case JS_FAST_HOLEY_SMI_ARRAY_KEY_VALUE_ITERATOR_TYPE:
233 case JS_FAST_ARRAY_KEY_VALUE_ITERATOR_TYPE:
234 case JS_FAST_HOLEY_ARRAY_KEY_VALUE_ITERATOR_TYPE:
235 case JS_FAST_DOUBLE_ARRAY_KEY_VALUE_ITERATOR_TYPE:
236 case JS_FAST_HOLEY_DOUBLE_ARRAY_KEY_VALUE_ITERATOR_TYPE:
237 case JS_GENERIC_ARRAY_KEY_VALUE_ITERATOR_TYPE:
238 case JS_UINT8_ARRAY_VALUE_ITERATOR_TYPE:
239 case JS_INT8_ARRAY_VALUE_ITERATOR_TYPE:
240 case JS_UINT16_ARRAY_VALUE_ITERATOR_TYPE:
241 case JS_INT16_ARRAY_VALUE_ITERATOR_TYPE:
242 case JS_UINT32_ARRAY_VALUE_ITERATOR_TYPE:
243 case JS_INT32_ARRAY_VALUE_ITERATOR_TYPE:
244 case JS_FLOAT32_ARRAY_VALUE_ITERATOR_TYPE:
245 case JS_FLOAT64_ARRAY_VALUE_ITERATOR_TYPE:
246 case JS_UINT8_CLAMPED_ARRAY_VALUE_ITERATOR_TYPE:
247 case JS_FAST_SMI_ARRAY_VALUE_ITERATOR_TYPE:
248 case JS_FAST_HOLEY_SMI_ARRAY_VALUE_ITERATOR_TYPE:
249 case JS_FAST_ARRAY_VALUE_ITERATOR_TYPE:
250 case JS_FAST_HOLEY_ARRAY_VALUE_ITERATOR_TYPE:
251 case JS_FAST_DOUBLE_ARRAY_VALUE_ITERATOR_TYPE:
252 case JS_FAST_HOLEY_DOUBLE_ARRAY_VALUE_ITERATOR_TYPE:
253 case JS_GENERIC_ARRAY_VALUE_ITERATOR_TYPE:
254
218 case JS_WEAK_MAP_TYPE: 255 case JS_WEAK_MAP_TYPE:
219 case JS_WEAK_SET_TYPE: 256 case JS_WEAK_SET_TYPE:
220 case JS_PROMISE_TYPE: 257 case JS_PROMISE_TYPE:
221 case JS_BOUND_FUNCTION_TYPE: 258 case JS_BOUND_FUNCTION_TYPE:
222 DCHECK(!map->is_undetectable()); 259 DCHECK(!map->is_undetectable());
223 return kOtherObject; 260 return kOtherObject;
224 case JS_FUNCTION_TYPE: 261 case JS_FUNCTION_TYPE:
225 DCHECK(!map->is_undetectable()); 262 DCHECK(!map->is_undetectable());
226 return kFunction; 263 return kFunction;
227 case JS_PROXY_TYPE: 264 case JS_PROXY_TYPE:
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after
1009 return i::SmiValuesAre31Bits() ? kSigned31 : kSigned32; 1046 return i::SmiValuesAre31Bits() ? kSigned31 : kSigned32;
1010 } 1047 }
1011 1048
1012 BitsetType::bitset BitsetType::UnsignedSmall() { 1049 BitsetType::bitset BitsetType::UnsignedSmall() {
1013 return i::SmiValuesAre31Bits() ? kUnsigned30 : kUnsigned31; 1050 return i::SmiValuesAre31Bits() ? kUnsigned30 : kUnsigned31;
1014 } 1051 }
1015 1052
1016 } // namespace compiler 1053 } // namespace compiler
1017 } // namespace internal 1054 } // namespace internal
1018 } // namespace v8 1055 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698