OLD | NEW |
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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 } | 209 } |
210 if (map->is_callable()) { | 210 if (map->is_callable()) { |
211 return kOtherCallable; | 211 return kOtherCallable; |
212 } | 212 } |
213 return kOtherObject; | 213 return kOtherObject; |
214 case JS_VALUE_TYPE: | 214 case JS_VALUE_TYPE: |
215 case JS_MESSAGE_OBJECT_TYPE: | 215 case JS_MESSAGE_OBJECT_TYPE: |
216 case JS_DATE_TYPE: | 216 case JS_DATE_TYPE: |
217 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: | 217 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
218 case JS_GENERATOR_OBJECT_TYPE: | 218 case JS_GENERATOR_OBJECT_TYPE: |
| 219 case JS_ASYNC_GENERATOR_OBJECT_TYPE: |
| 220 case JS_ASYNC_FROM_SYNC_ITERATOR_TYPE: |
219 case JS_MODULE_NAMESPACE_TYPE: | 221 case JS_MODULE_NAMESPACE_TYPE: |
220 case JS_ARRAY_BUFFER_TYPE: | 222 case JS_ARRAY_BUFFER_TYPE: |
221 case JS_ARRAY_TYPE: | 223 case JS_ARRAY_TYPE: |
222 case JS_REGEXP_TYPE: // TODO(rossberg): there should be a RegExp type. | 224 case JS_REGEXP_TYPE: // TODO(rossberg): there should be a RegExp type. |
223 case JS_TYPED_ARRAY_TYPE: | 225 case JS_TYPED_ARRAY_TYPE: |
224 case JS_DATA_VIEW_TYPE: | 226 case JS_DATA_VIEW_TYPE: |
225 case JS_SET_TYPE: | 227 case JS_SET_TYPE: |
226 case JS_MAP_TYPE: | 228 case JS_MAP_TYPE: |
227 case JS_SET_ITERATOR_TYPE: | 229 case JS_SET_ITERATOR_TYPE: |
228 case JS_MAP_ITERATOR_TYPE: | 230 case JS_MAP_ITERATOR_TYPE: |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 case ACCESS_CHECK_INFO_TYPE: | 315 case ACCESS_CHECK_INFO_TYPE: |
314 case INTERCEPTOR_INFO_TYPE: | 316 case INTERCEPTOR_INFO_TYPE: |
315 case CALL_HANDLER_INFO_TYPE: | 317 case CALL_HANDLER_INFO_TYPE: |
316 case OBJECT_TEMPLATE_INFO_TYPE: | 318 case OBJECT_TEMPLATE_INFO_TYPE: |
317 case ALLOCATION_MEMENTO_TYPE: | 319 case ALLOCATION_MEMENTO_TYPE: |
318 case TYPE_FEEDBACK_INFO_TYPE: | 320 case TYPE_FEEDBACK_INFO_TYPE: |
319 case ALIASED_ARGUMENTS_ENTRY_TYPE: | 321 case ALIASED_ARGUMENTS_ENTRY_TYPE: |
320 case BOX_TYPE: | 322 case BOX_TYPE: |
321 case PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE: | 323 case PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE: |
322 case PROMISE_REACTION_JOB_INFO_TYPE: | 324 case PROMISE_REACTION_JOB_INFO_TYPE: |
| 325 case ASYNC_GENERATOR_REQUEST_TYPE: |
323 case DEBUG_INFO_TYPE: | 326 case DEBUG_INFO_TYPE: |
324 case BREAK_POINT_INFO_TYPE: | 327 case BREAK_POINT_INFO_TYPE: |
325 case CELL_TYPE: | 328 case CELL_TYPE: |
326 case WEAK_CELL_TYPE: | 329 case WEAK_CELL_TYPE: |
327 case PROTOTYPE_INFO_TYPE: | 330 case PROTOTYPE_INFO_TYPE: |
328 case TUPLE2_TYPE: | 331 case TUPLE2_TYPE: |
329 case TUPLE3_TYPE: | 332 case TUPLE3_TYPE: |
330 case CONTEXT_EXTENSION_TYPE: | 333 case CONTEXT_EXTENSION_TYPE: |
331 case CONSTANT_ELEMENTS_PAIR_TYPE: | 334 case CONSTANT_ELEMENTS_PAIR_TYPE: |
332 UNREACHABLE(); | 335 UNREACHABLE(); |
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1064 return i::SmiValuesAre31Bits() ? kSigned31 : kSigned32; | 1067 return i::SmiValuesAre31Bits() ? kSigned31 : kSigned32; |
1065 } | 1068 } |
1066 | 1069 |
1067 BitsetType::bitset BitsetType::UnsignedSmall() { | 1070 BitsetType::bitset BitsetType::UnsignedSmall() { |
1068 return i::SmiValuesAre31Bits() ? kUnsigned30 : kUnsigned31; | 1071 return i::SmiValuesAre31Bits() ? kUnsigned30 : kUnsigned31; |
1069 } | 1072 } |
1070 | 1073 |
1071 } // namespace compiler | 1074 } // namespace compiler |
1072 } // namespace internal | 1075 } // namespace internal |
1073 } // namespace v8 | 1076 } // namespace v8 |
OLD | NEW |