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 "types.h" | 5 #include "types.h" |
6 | 6 |
7 #include "string-stream.h" | 7 #include "string-stream.h" |
8 #include "types-inl.h" | 8 #include "types-inl.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 case SHORT_EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE: | 170 case SHORT_EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE: |
171 return kString; | 171 return kString; |
172 case SYMBOL_TYPE: | 172 case SYMBOL_TYPE: |
173 return kSymbol; | 173 return kSymbol; |
174 case ODDBALL_TYPE: { | 174 case ODDBALL_TYPE: { |
175 Heap* heap = map->GetHeap(); | 175 Heap* heap = map->GetHeap(); |
176 if (map == heap->undefined_map()) return kUndefined; | 176 if (map == heap->undefined_map()) return kUndefined; |
177 if (map == heap->the_hole_map()) return kAny; // TODO(rossberg): kNone? | 177 if (map == heap->the_hole_map()) return kAny; // TODO(rossberg): kNone? |
178 if (map == heap->null_map()) return kNull; | 178 if (map == heap->null_map()) return kNull; |
179 if (map == heap->boolean_map()) return kBoolean; | 179 if (map == heap->boolean_map()) return kBoolean; |
180 if (map == heap->uninitialized_map()) return kNone; | 180 ASSERT(map == heap->uninitialized_map() || |
181 ASSERT(map == heap->no_interceptor_result_sentinel_map() || | 181 map == heap->no_interceptor_result_sentinel_map() || |
182 map == heap->termination_exception_map() || | 182 map == heap->termination_exception_map() || |
183 map == heap->arguments_marker_map()); | 183 map == heap->arguments_marker_map()); |
184 return kInternal & kTaggedPtr; | 184 return kInternal & kTaggedPtr; |
185 } | 185 } |
186 case HEAP_NUMBER_TYPE: | 186 case HEAP_NUMBER_TYPE: |
187 return kFloat & kTaggedPtr; | 187 return kFloat & kTaggedPtr; |
188 case JS_VALUE_TYPE: | 188 case JS_VALUE_TYPE: |
189 case JS_DATE_TYPE: | 189 case JS_DATE_TYPE: |
190 case JS_OBJECT_TYPE: | 190 case JS_OBJECT_TYPE: |
191 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: | 191 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 template class TypeImpl<HeapTypeConfig>::Iterator<i::Object>; | 688 template class TypeImpl<HeapTypeConfig>::Iterator<i::Object>; |
689 | 689 |
690 template TypeImpl<ZoneTypeConfig>::TypeHandle | 690 template TypeImpl<ZoneTypeConfig>::TypeHandle |
691 TypeImpl<ZoneTypeConfig>::Convert<HeapType>( | 691 TypeImpl<ZoneTypeConfig>::Convert<HeapType>( |
692 TypeImpl<HeapTypeConfig>::TypeHandle, TypeImpl<ZoneTypeConfig>::Region*); | 692 TypeImpl<HeapTypeConfig>::TypeHandle, TypeImpl<ZoneTypeConfig>::Region*); |
693 template TypeImpl<HeapTypeConfig>::TypeHandle | 693 template TypeImpl<HeapTypeConfig>::TypeHandle |
694 TypeImpl<HeapTypeConfig>::Convert<Type>( | 694 TypeImpl<HeapTypeConfig>::Convert<Type>( |
695 TypeImpl<ZoneTypeConfig>::TypeHandle, TypeImpl<HeapTypeConfig>::Region*); | 695 TypeImpl<ZoneTypeConfig>::TypeHandle, TypeImpl<HeapTypeConfig>::Region*); |
696 | 696 |
697 } } // namespace v8::internal | 697 } } // namespace v8::internal |
OLD | NEW |