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

Side by Side Diff: src/types.cc

Issue 224723007: Properly pass dim to recursive calls in TypePrint(). (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 | 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 "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 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 break; 641 break;
642 case SEMANTIC_DIM: 642 case SEMANTIC_DIM:
643 BitsetTypePrint(out, bitset & kSemantic); 643 BitsetTypePrint(out, bitset & kSemantic);
644 break; 644 break;
645 case REPRESENTATION_DIM: 645 case REPRESENTATION_DIM:
646 BitsetTypePrint(out, bitset & kRepresentation); 646 BitsetTypePrint(out, bitset & kRepresentation);
647 break; 647 break;
648 } 648 }
649 } else if (this->IsConstant()) { 649 } else if (this->IsConstant()) {
650 PrintF(out, "Constant(%p : ", static_cast<void*>(*this->AsConstant())); 650 PrintF(out, "Constant(%p : ", static_cast<void*>(*this->AsConstant()));
651 Config::from_bitset(this->LubBitset())->TypePrint(out); 651 Config::from_bitset(this->LubBitset())->TypePrint(out, dim);
652 PrintF(out, ")"); 652 PrintF(out, ")");
653 } else if (this->IsClass()) { 653 } else if (this->IsClass()) {
654 PrintF(out, "Class(%p < ", static_cast<void*>(*this->AsClass())); 654 PrintF(out, "Class(%p < ", static_cast<void*>(*this->AsClass()));
655 Config::from_bitset(this->LubBitset())->TypePrint(out); 655 Config::from_bitset(this->LubBitset())->TypePrint(out, dim);
656 PrintF(out, ")"); 656 PrintF(out, ")");
657 } else if (this->IsUnion()) { 657 } else if (this->IsUnion()) {
658 PrintF(out, "("); 658 PrintF(out, "(");
659 UnionedHandle unioned = this->AsUnion(); 659 UnionedHandle unioned = this->AsUnion();
660 for (int i = 0; i < Config::union_length(unioned); ++i) { 660 for (int i = 0; i < Config::union_length(unioned); ++i) {
661 TypeHandle type_i = Config::union_get(unioned, i); 661 TypeHandle type_i = Config::union_get(unioned, i);
662 if (i > 0) PrintF(out, " | "); 662 if (i > 0) PrintF(out, " | ");
663 type_i->TypePrint(out, dim); 663 type_i->TypePrint(out, dim);
664 } 664 }
665 PrintF(out, ")"); 665 PrintF(out, ")");
(...skipping 10 matching lines...) Expand all
676 template class TypeImpl<HeapTypeConfig>::Iterator<i::Object>; 676 template class TypeImpl<HeapTypeConfig>::Iterator<i::Object>;
677 677
678 template TypeImpl<ZoneTypeConfig>::TypeHandle 678 template TypeImpl<ZoneTypeConfig>::TypeHandle
679 TypeImpl<ZoneTypeConfig>::Convert<HeapType>( 679 TypeImpl<ZoneTypeConfig>::Convert<HeapType>(
680 TypeImpl<HeapTypeConfig>::TypeHandle, TypeImpl<ZoneTypeConfig>::Region*); 680 TypeImpl<HeapTypeConfig>::TypeHandle, TypeImpl<ZoneTypeConfig>::Region*);
681 template TypeImpl<HeapTypeConfig>::TypeHandle 681 template TypeImpl<HeapTypeConfig>::TypeHandle
682 TypeImpl<HeapTypeConfig>::Convert<Type>( 682 TypeImpl<HeapTypeConfig>::Convert<Type>(
683 TypeImpl<ZoneTypeConfig>::TypeHandle, TypeImpl<HeapTypeConfig>::Region*); 683 TypeImpl<ZoneTypeConfig>::TypeHandle, TypeImpl<HeapTypeConfig>::Region*);
684 684
685 } } // namespace v8::internal 685 } } // 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