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

Side by Side Diff: src/types.cc

Issue 102563004: Zonify types in compiler frontend (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 7 years 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.h » ('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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 } else if (size == 1) { 534 } else if (size == 1) {
535 return Config::union_get(unioned, 0); 535 return Config::union_get(unioned, 0);
536 } else { 536 } else {
537 Config::union_shrink(unioned, size); 537 Config::union_shrink(unioned, size);
538 return Config::from_union(unioned); 538 return Config::from_union(unioned);
539 } 539 }
540 } 540 }
541 541
542 542
543 // TODO(rossberg): this does not belong here. 543 // TODO(rossberg): this does not belong here.
544 Representation Representation::FromType(Handle<Type> type) { 544 Representation Representation::FromType(Type* type) {
545 if (type->Is(Type::None())) return Representation::None(); 545 if (type->Is(Type::None())) return Representation::None();
546 if (type->Is(Type::Smi())) return Representation::Smi(); 546 if (type->Is(Type::Smi())) return Representation::Smi();
547 if (type->Is(Type::Signed32())) return Representation::Integer32(); 547 if (type->Is(Type::Signed32())) return Representation::Integer32();
548 if (type->Is(Type::Number())) return Representation::Double(); 548 if (type->Is(Type::Number())) return Representation::Double();
549 return Representation::Tagged(); 549 return Representation::Tagged();
550 } 550 }
551 551
552 552
553 #ifdef OBJECT_PRINT 553 #ifdef OBJECT_PRINT
554 template<class Config> 554 template<class Config>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 template class TypeImpl<ZoneTypeConfig>; 615 template class TypeImpl<ZoneTypeConfig>;
616 template class TypeImpl<ZoneTypeConfig>::Iterator<i::Map>; 616 template class TypeImpl<ZoneTypeConfig>::Iterator<i::Map>;
617 template class TypeImpl<ZoneTypeConfig>::Iterator<i::Object>; 617 template class TypeImpl<ZoneTypeConfig>::Iterator<i::Object>;
618 618
619 template class TypeImpl<HeapTypeConfig>; 619 template class TypeImpl<HeapTypeConfig>;
620 template class TypeImpl<HeapTypeConfig>::Iterator<i::Map>; 620 template class TypeImpl<HeapTypeConfig>::Iterator<i::Map>;
621 template class TypeImpl<HeapTypeConfig>::Iterator<i::Object>; 621 template class TypeImpl<HeapTypeConfig>::Iterator<i::Object>;
622 622
623 623
624 } } // namespace v8::internal 624 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/types.h ('k') | src/typing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698