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

Side by Side Diff: src/types.cc

Issue 232913002: Treat uninitialized as internal type. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | test/cctest/test-types.cc » ('j') | test/cctest/test-types.cc » ('J')
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 "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
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
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
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-types.cc » ('j') | test/cctest/test-types.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698