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

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

Issue 2581683003: Introduce {ConstantElementsPair} struct for type safety. (Closed)
Patch Set: Re-cemment bytecode tests. Created 4 years 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/ostreams.h" 10 #include "src/ostreams.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 case PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE: 320 case PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE:
321 case PROMISE_REACTION_JOB_INFO_TYPE: 321 case PROMISE_REACTION_JOB_INFO_TYPE:
322 case DEBUG_INFO_TYPE: 322 case DEBUG_INFO_TYPE:
323 case BREAK_POINT_INFO_TYPE: 323 case BREAK_POINT_INFO_TYPE:
324 case CELL_TYPE: 324 case CELL_TYPE:
325 case WEAK_CELL_TYPE: 325 case WEAK_CELL_TYPE:
326 case PROTOTYPE_INFO_TYPE: 326 case PROTOTYPE_INFO_TYPE:
327 case TUPLE2_TYPE: 327 case TUPLE2_TYPE:
328 case TUPLE3_TYPE: 328 case TUPLE3_TYPE:
329 case CONTEXT_EXTENSION_TYPE: 329 case CONTEXT_EXTENSION_TYPE:
330 case CONSTANT_ELEMENTS_PAIR_TYPE:
330 UNREACHABLE(); 331 UNREACHABLE();
331 return kNone; 332 return kNone;
332 } 333 }
333 UNREACHABLE(); 334 UNREACHABLE();
334 return kNone; 335 return kNone;
335 } 336 }
336 337
337 Type::bitset BitsetType::Lub(i::Object* value) { 338 Type::bitset BitsetType::Lub(i::Object* value) {
338 DisallowHeapAllocation no_allocation; 339 DisallowHeapAllocation no_allocation;
339 if (value->IsNumber()) { 340 if (value->IsNumber()) {
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 return i::SmiValuesAre31Bits() ? kSigned31 : kSigned32; 1063 return i::SmiValuesAre31Bits() ? kSigned31 : kSigned32;
1063 } 1064 }
1064 1065
1065 BitsetType::bitset BitsetType::UnsignedSmall() { 1066 BitsetType::bitset BitsetType::UnsignedSmall() {
1066 return i::SmiValuesAre31Bits() ? kUnsigned30 : kUnsigned31; 1067 return i::SmiValuesAre31Bits() ? kUnsigned30 : kUnsigned31;
1067 } 1068 }
1068 1069
1069 } // namespace compiler 1070 } // namespace compiler
1070 } // namespace internal 1071 } // namespace internal
1071 } // namespace v8 1072 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-operator.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | src/objects-printer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698