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

Side by Side Diff: src/types.cc

Issue 381063002: Switch type of the-hole to be internal. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | 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 "src/types.h" 5 #include "src/types.h"
6 6
7 #include "src/string-stream.h" 7 #include "src/string-stream.h"
8 #include "src/types-inl.h" 8 #include "src/types-inl.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 case EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE: 174 case EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE:
175 case SHORT_EXTERNAL_INTERNALIZED_STRING_TYPE: 175 case SHORT_EXTERNAL_INTERNALIZED_STRING_TYPE:
176 case SHORT_EXTERNAL_ASCII_INTERNALIZED_STRING_TYPE: 176 case SHORT_EXTERNAL_ASCII_INTERNALIZED_STRING_TYPE:
177 case SHORT_EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE: 177 case SHORT_EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE:
178 return kString; 178 return kString;
179 case SYMBOL_TYPE: 179 case SYMBOL_TYPE:
180 return kSymbol; 180 return kSymbol;
181 case ODDBALL_TYPE: { 181 case ODDBALL_TYPE: {
182 Heap* heap = map->GetHeap(); 182 Heap* heap = map->GetHeap();
183 if (map == heap->undefined_map()) return kUndefined; 183 if (map == heap->undefined_map()) return kUndefined;
184 if (map == heap->the_hole_map()) return kAny; // TODO(rossberg): kNone?
185 if (map == heap->null_map()) return kNull; 184 if (map == heap->null_map()) return kNull;
186 if (map == heap->boolean_map()) return kBoolean; 185 if (map == heap->boolean_map()) return kBoolean;
187 ASSERT(map == heap->uninitialized_map() || 186 ASSERT(map == heap->the_hole_map() ||
187 map == heap->uninitialized_map() ||
188 map == heap->no_interceptor_result_sentinel_map() || 188 map == heap->no_interceptor_result_sentinel_map() ||
189 map == heap->termination_exception_map() || 189 map == heap->termination_exception_map() ||
190 map == heap->arguments_marker_map()); 190 map == heap->arguments_marker_map());
191 return kInternal & kTaggedPtr; 191 return kInternal & kTaggedPtr;
192 } 192 }
193 case HEAP_NUMBER_TYPE: 193 case HEAP_NUMBER_TYPE:
194 return kNumber & kTaggedPtr; 194 return kNumber & kTaggedPtr;
195 case JS_VALUE_TYPE: 195 case JS_VALUE_TYPE:
196 case JS_DATE_TYPE: 196 case JS_DATE_TYPE:
197 case JS_OBJECT_TYPE: 197 case JS_OBJECT_TYPE:
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 template class TypeImpl<HeapTypeConfig>::Iterator<i::Object>; 963 template class TypeImpl<HeapTypeConfig>::Iterator<i::Object>;
964 964
965 template TypeImpl<ZoneTypeConfig>::TypeHandle 965 template TypeImpl<ZoneTypeConfig>::TypeHandle
966 TypeImpl<ZoneTypeConfig>::Convert<HeapType>( 966 TypeImpl<ZoneTypeConfig>::Convert<HeapType>(
967 TypeImpl<HeapTypeConfig>::TypeHandle, TypeImpl<ZoneTypeConfig>::Region*); 967 TypeImpl<HeapTypeConfig>::TypeHandle, TypeImpl<ZoneTypeConfig>::Region*);
968 template TypeImpl<HeapTypeConfig>::TypeHandle 968 template TypeImpl<HeapTypeConfig>::TypeHandle
969 TypeImpl<HeapTypeConfig>::Convert<Type>( 969 TypeImpl<HeapTypeConfig>::Convert<Type>(
970 TypeImpl<ZoneTypeConfig>::TypeHandle, TypeImpl<HeapTypeConfig>::Region*); 970 TypeImpl<ZoneTypeConfig>::TypeHandle, TypeImpl<HeapTypeConfig>::Region*);
971 971
972 } } // namespace v8::internal 972 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698