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

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

Issue 2458643002: [turbofan] Handle inlining of API getters/setters. (Closed)
Patch Set: Update. Created 4 years, 1 month 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/compiler/js-native-context-specialization.cc ('k') | no next file » | 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 case JS_FUNCTION_TYPE: 261 case JS_FUNCTION_TYPE:
262 DCHECK(!map->is_undetectable()); 262 DCHECK(!map->is_undetectable());
263 return kFunction; 263 return kFunction;
264 case JS_PROXY_TYPE: 264 case JS_PROXY_TYPE:
265 DCHECK(!map->is_undetectable()); 265 DCHECK(!map->is_undetectable());
266 return kProxy; 266 return kProxy;
267 case MAP_TYPE: 267 case MAP_TYPE:
268 case ALLOCATION_SITE_TYPE: 268 case ALLOCATION_SITE_TYPE:
269 case ACCESSOR_INFO_TYPE: 269 case ACCESSOR_INFO_TYPE:
270 case SHARED_FUNCTION_INFO_TYPE: 270 case SHARED_FUNCTION_INFO_TYPE:
271 case FUNCTION_TEMPLATE_INFO_TYPE:
271 case ACCESSOR_PAIR_TYPE: 272 case ACCESSOR_PAIR_TYPE:
272 case FIXED_ARRAY_TYPE: 273 case FIXED_ARRAY_TYPE:
273 case FIXED_DOUBLE_ARRAY_TYPE: 274 case FIXED_DOUBLE_ARRAY_TYPE:
274 case BYTE_ARRAY_TYPE: 275 case BYTE_ARRAY_TYPE:
275 case BYTECODE_ARRAY_TYPE: 276 case BYTECODE_ARRAY_TYPE:
276 case TRANSITION_ARRAY_TYPE: 277 case TRANSITION_ARRAY_TYPE:
277 case FOREIGN_TYPE: 278 case FOREIGN_TYPE:
278 case SCRIPT_TYPE: 279 case SCRIPT_TYPE:
279 case CODE_TYPE: 280 case CODE_TYPE:
280 case PROPERTY_CELL_TYPE: 281 case PROPERTY_CELL_TYPE:
281 case MODULE_TYPE: 282 case MODULE_TYPE:
282 return kOtherInternal; 283 return kOtherInternal;
283 284
284 // Remaining instance types are unsupported for now. If any of them do 285 // Remaining instance types are unsupported for now. If any of them do
285 // require bit set types, they should get kOtherInternal. 286 // require bit set types, they should get kOtherInternal.
286 case MUTABLE_HEAP_NUMBER_TYPE: 287 case MUTABLE_HEAP_NUMBER_TYPE:
287 case FREE_SPACE_TYPE: 288 case FREE_SPACE_TYPE:
288 #define FIXED_TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \ 289 #define FIXED_TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \
289 case FIXED_##TYPE##_ARRAY_TYPE: 290 case FIXED_##TYPE##_ARRAY_TYPE:
290 291
291 TYPED_ARRAYS(FIXED_TYPED_ARRAY_CASE) 292 TYPED_ARRAYS(FIXED_TYPED_ARRAY_CASE)
292 #undef FIXED_TYPED_ARRAY_CASE 293 #undef FIXED_TYPED_ARRAY_CASE
293 case FILLER_TYPE: 294 case FILLER_TYPE:
294 case ACCESS_CHECK_INFO_TYPE: 295 case ACCESS_CHECK_INFO_TYPE:
295 case INTERCEPTOR_INFO_TYPE: 296 case INTERCEPTOR_INFO_TYPE:
296 case CALL_HANDLER_INFO_TYPE: 297 case CALL_HANDLER_INFO_TYPE:
297 case FUNCTION_TEMPLATE_INFO_TYPE:
298 case OBJECT_TEMPLATE_INFO_TYPE: 298 case OBJECT_TEMPLATE_INFO_TYPE:
299 case SIGNATURE_INFO_TYPE: 299 case SIGNATURE_INFO_TYPE:
300 case TYPE_SWITCH_INFO_TYPE: 300 case TYPE_SWITCH_INFO_TYPE:
301 case ALLOCATION_MEMENTO_TYPE: 301 case ALLOCATION_MEMENTO_TYPE:
302 case TYPE_FEEDBACK_INFO_TYPE: 302 case TYPE_FEEDBACK_INFO_TYPE:
303 case ALIASED_ARGUMENTS_ENTRY_TYPE: 303 case ALIASED_ARGUMENTS_ENTRY_TYPE:
304 case BOX_TYPE: 304 case BOX_TYPE:
305 case PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE: 305 case PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE:
306 case PROMISE_REACTION_JOB_INFO_TYPE: 306 case PROMISE_REACTION_JOB_INFO_TYPE:
307 case DEBUG_INFO_TYPE: 307 case DEBUG_INFO_TYPE:
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 return i::SmiValuesAre31Bits() ? kSigned31 : kSigned32; 1046 return i::SmiValuesAre31Bits() ? kSigned31 : kSigned32;
1047 } 1047 }
1048 1048
1049 BitsetType::bitset BitsetType::UnsignedSmall() { 1049 BitsetType::bitset BitsetType::UnsignedSmall() {
1050 return i::SmiValuesAre31Bits() ? kUnsigned30 : kUnsigned31; 1050 return i::SmiValuesAre31Bits() ? kUnsigned30 : kUnsigned31;
1051 } 1051 }
1052 1052
1053 } // namespace compiler 1053 } // namespace compiler
1054 } // namespace internal 1054 } // namespace internal
1055 } // namespace v8 1055 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698