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

Side by Side Diff: src/types.cc

Issue 181453002: Reset trunk to 3.24.35.4 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 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 | « src/types.h ('k') | src/typing.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 uint32_t u; 157 uint32_t u;
158 if (value->ToInt32(&i)) return Smi::IsValid(i) ? kSmi : kOtherSigned32; 158 if (value->ToInt32(&i)) return Smi::IsValid(i) ? kSmi : kOtherSigned32;
159 if (value->ToUint32(&u)) return kUnsigned32; 159 if (value->ToUint32(&u)) return kUnsigned32;
160 return kDouble; 160 return kDouble;
161 } 161 }
162 if (map->instance_type() == ODDBALL_TYPE) { 162 if (map->instance_type() == ODDBALL_TYPE) {
163 if (value->IsUndefined()) return kUndefined; 163 if (value->IsUndefined()) return kUndefined;
164 if (value->IsNull()) return kNull; 164 if (value->IsNull()) return kNull;
165 if (value->IsBoolean()) return kBoolean; 165 if (value->IsBoolean()) return kBoolean;
166 if (value->IsTheHole()) return kAny; // TODO(rossberg): kNone? 166 if (value->IsTheHole()) return kAny; // TODO(rossberg): kNone?
167 if (value->IsUninitialized()) return kNone;
168 UNREACHABLE(); 167 UNREACHABLE();
169 } 168 }
170 return LubBitset(map); 169 return LubBitset(map);
171 } 170 }
172 171
173 172
174 template<class Config> 173 template<class Config>
175 int TypeImpl<Config>::LubBitset(i::Map* map) { 174 int TypeImpl<Config>::LubBitset(i::Map* map) {
176 switch (map->instance_type()) { 175 switch (map->instance_type()) {
177 case STRING_TYPE: 176 case STRING_TYPE:
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 646
648 template TypeImpl<ZoneTypeConfig>::TypeHandle 647 template TypeImpl<ZoneTypeConfig>::TypeHandle
649 TypeImpl<ZoneTypeConfig>::Convert<HeapType>( 648 TypeImpl<ZoneTypeConfig>::Convert<HeapType>(
650 TypeImpl<HeapTypeConfig>::TypeHandle, TypeImpl<ZoneTypeConfig>::Region*); 649 TypeImpl<HeapTypeConfig>::TypeHandle, TypeImpl<ZoneTypeConfig>::Region*);
651 template TypeImpl<HeapTypeConfig>::TypeHandle 650 template TypeImpl<HeapTypeConfig>::TypeHandle
652 TypeImpl<HeapTypeConfig>::Convert<Type>( 651 TypeImpl<HeapTypeConfig>::Convert<Type>(
653 TypeImpl<ZoneTypeConfig>::TypeHandle, TypeImpl<HeapTypeConfig>::Region*); 652 TypeImpl<ZoneTypeConfig>::TypeHandle, TypeImpl<HeapTypeConfig>::Region*);
654 653
655 654
656 } } // namespace v8::internal 655 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/types.h ('k') | src/typing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698