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/ostreams.h" | 10 #include "src/ostreams.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 return kNone; | 144 return kNone; |
145 } | 145 } |
146 | 146 |
147 Type::bitset BitsetType::Lub(i::Map* map) { | 147 Type::bitset BitsetType::Lub(i::Map* map) { |
148 DisallowHeapAllocation no_allocation; | 148 DisallowHeapAllocation no_allocation; |
149 switch (map->instance_type()) { | 149 switch (map->instance_type()) { |
150 case STRING_TYPE: | 150 case STRING_TYPE: |
151 case ONE_BYTE_STRING_TYPE: | 151 case ONE_BYTE_STRING_TYPE: |
152 case CONS_STRING_TYPE: | 152 case CONS_STRING_TYPE: |
153 case CONS_ONE_BYTE_STRING_TYPE: | 153 case CONS_ONE_BYTE_STRING_TYPE: |
| 154 case THIN_STRING_TYPE: |
| 155 case THIN_ONE_BYTE_STRING_TYPE: |
154 case SLICED_STRING_TYPE: | 156 case SLICED_STRING_TYPE: |
155 case SLICED_ONE_BYTE_STRING_TYPE: | 157 case SLICED_ONE_BYTE_STRING_TYPE: |
156 case EXTERNAL_STRING_TYPE: | 158 case EXTERNAL_STRING_TYPE: |
157 case EXTERNAL_ONE_BYTE_STRING_TYPE: | 159 case EXTERNAL_ONE_BYTE_STRING_TYPE: |
158 case EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE: | 160 case EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE: |
159 case SHORT_EXTERNAL_STRING_TYPE: | 161 case SHORT_EXTERNAL_STRING_TYPE: |
160 case SHORT_EXTERNAL_ONE_BYTE_STRING_TYPE: | 162 case SHORT_EXTERNAL_ONE_BYTE_STRING_TYPE: |
161 case SHORT_EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE: | 163 case SHORT_EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE: |
162 return kOtherString; | 164 return kOtherString; |
163 case INTERNALIZED_STRING_TYPE: | 165 case INTERNALIZED_STRING_TYPE: |
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1062 return i::SmiValuesAre31Bits() ? kSigned31 : kSigned32; | 1064 return i::SmiValuesAre31Bits() ? kSigned31 : kSigned32; |
1063 } | 1065 } |
1064 | 1066 |
1065 BitsetType::bitset BitsetType::UnsignedSmall() { | 1067 BitsetType::bitset BitsetType::UnsignedSmall() { |
1066 return i::SmiValuesAre31Bits() ? kUnsigned30 : kUnsigned31; | 1068 return i::SmiValuesAre31Bits() ? kUnsigned30 : kUnsigned31; |
1067 } | 1069 } |
1068 | 1070 |
1069 } // namespace compiler | 1071 } // namespace compiler |
1070 } // namespace internal | 1072 } // namespace internal |
1071 } // namespace v8 | 1073 } // namespace v8 |
OLD | NEW |