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

Side by Side Diff: src/compiler/types.cc

Issue 2622833002: WIP [esnext] implement async iteration proposal (Closed)
Patch Set: Make (most of) for-await-of work (no IteratorClose yet..) Created 3 years, 11 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
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/objects-inl.h" 10 #include "src/objects-inl.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 } 207 }
208 if (map->is_callable()) { 208 if (map->is_callable()) {
209 return kOtherCallable; 209 return kOtherCallable;
210 } 210 }
211 return kOtherObject; 211 return kOtherObject;
212 case JS_VALUE_TYPE: 212 case JS_VALUE_TYPE:
213 case JS_MESSAGE_OBJECT_TYPE: 213 case JS_MESSAGE_OBJECT_TYPE:
214 case JS_DATE_TYPE: 214 case JS_DATE_TYPE:
215 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 215 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
216 case JS_GENERATOR_OBJECT_TYPE: 216 case JS_GENERATOR_OBJECT_TYPE:
217 case JS_ASYNC_GENERATOR_OBJECT_TYPE:
218 case JS_ASYNC_FROM_SYNC_ITERATOR_TYPE:
217 case JS_MODULE_NAMESPACE_TYPE: 219 case JS_MODULE_NAMESPACE_TYPE:
218 case JS_ARRAY_BUFFER_TYPE: 220 case JS_ARRAY_BUFFER_TYPE:
219 case JS_ARRAY_TYPE: 221 case JS_ARRAY_TYPE:
220 case JS_REGEXP_TYPE: // TODO(rossberg): there should be a RegExp type. 222 case JS_REGEXP_TYPE: // TODO(rossberg): there should be a RegExp type.
221 case JS_TYPED_ARRAY_TYPE: 223 case JS_TYPED_ARRAY_TYPE:
222 case JS_DATA_VIEW_TYPE: 224 case JS_DATA_VIEW_TYPE:
223 case JS_SET_TYPE: 225 case JS_SET_TYPE:
224 case JS_MAP_TYPE: 226 case JS_MAP_TYPE:
225 case JS_SET_ITERATOR_TYPE: 227 case JS_SET_ITERATOR_TYPE:
226 case JS_MAP_ITERATOR_TYPE: 228 case JS_MAP_ITERATOR_TYPE:
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 case ACCESS_CHECK_INFO_TYPE: 313 case ACCESS_CHECK_INFO_TYPE:
312 case INTERCEPTOR_INFO_TYPE: 314 case INTERCEPTOR_INFO_TYPE:
313 case CALL_HANDLER_INFO_TYPE: 315 case CALL_HANDLER_INFO_TYPE:
314 case OBJECT_TEMPLATE_INFO_TYPE: 316 case OBJECT_TEMPLATE_INFO_TYPE:
315 case ALLOCATION_MEMENTO_TYPE: 317 case ALLOCATION_MEMENTO_TYPE:
316 case TYPE_FEEDBACK_INFO_TYPE: 318 case TYPE_FEEDBACK_INFO_TYPE:
317 case ALIASED_ARGUMENTS_ENTRY_TYPE: 319 case ALIASED_ARGUMENTS_ENTRY_TYPE:
318 case BOX_TYPE: 320 case BOX_TYPE:
319 case PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE: 321 case PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE:
320 case PROMISE_REACTION_JOB_INFO_TYPE: 322 case PROMISE_REACTION_JOB_INFO_TYPE:
323 case ASYNC_GENERATOR_REQUEST_TYPE:
321 case DEBUG_INFO_TYPE: 324 case DEBUG_INFO_TYPE:
322 case BREAK_POINT_INFO_TYPE: 325 case BREAK_POINT_INFO_TYPE:
323 case CELL_TYPE: 326 case CELL_TYPE:
324 case WEAK_CELL_TYPE: 327 case WEAK_CELL_TYPE:
325 case PROTOTYPE_INFO_TYPE: 328 case PROTOTYPE_INFO_TYPE:
326 case TUPLE2_TYPE: 329 case TUPLE2_TYPE:
327 case TUPLE3_TYPE: 330 case TUPLE3_TYPE:
328 case CONTEXT_EXTENSION_TYPE: 331 case CONTEXT_EXTENSION_TYPE:
329 case CONSTANT_ELEMENTS_PAIR_TYPE: 332 case CONSTANT_ELEMENTS_PAIR_TYPE:
330 UNREACHABLE(); 333 UNREACHABLE();
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 return i::SmiValuesAre31Bits() ? kSigned31 : kSigned32; 1065 return i::SmiValuesAre31Bits() ? kSigned31 : kSigned32;
1063 } 1066 }
1064 1067
1065 BitsetType::bitset BitsetType::UnsignedSmall() { 1068 BitsetType::bitset BitsetType::UnsignedSmall() {
1066 return i::SmiValuesAre31Bits() ? kUnsigned30 : kUnsigned31; 1069 return i::SmiValuesAre31Bits() ? kUnsigned30 : kUnsigned31;
1067 } 1070 }
1068 1071
1069 } // namespace compiler 1072 } // namespace compiler
1070 } // namespace internal 1073 } // namespace internal
1071 } // namespace v8 1074 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698