OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 break; | 167 break; |
168 case JS_FUNCTION_PROXY_TYPE: | 168 case JS_FUNCTION_PROXY_TYPE: |
169 JSFunctionProxy::cast(this)->JSFunctionProxyPrint(out); | 169 JSFunctionProxy::cast(this)->JSFunctionProxyPrint(out); |
170 break; | 170 break; |
171 case JS_SET_TYPE: | 171 case JS_SET_TYPE: |
172 JSSet::cast(this)->JSSetPrint(out); | 172 JSSet::cast(this)->JSSetPrint(out); |
173 break; | 173 break; |
174 case JS_MAP_TYPE: | 174 case JS_MAP_TYPE: |
175 JSMap::cast(this)->JSMapPrint(out); | 175 JSMap::cast(this)->JSMapPrint(out); |
176 break; | 176 break; |
| 177 case JS_SET_ITERATOR_TYPE: |
| 178 JSSetIterator::cast(this)->JSSetIteratorPrint(out); |
| 179 break; |
| 180 case JS_MAP_ITERATOR_TYPE: |
| 181 JSMapIterator::cast(this)->JSMapIteratorPrint(out); |
| 182 break; |
177 case JS_WEAK_MAP_TYPE: | 183 case JS_WEAK_MAP_TYPE: |
178 JSWeakMap::cast(this)->JSWeakMapPrint(out); | 184 JSWeakMap::cast(this)->JSWeakMapPrint(out); |
179 break; | 185 break; |
180 case JS_WEAK_SET_TYPE: | 186 case JS_WEAK_SET_TYPE: |
181 JSWeakSet::cast(this)->JSWeakSetPrint(out); | 187 JSWeakSet::cast(this)->JSWeakSetPrint(out); |
182 break; | 188 break; |
183 case FOREIGN_TYPE: | 189 case FOREIGN_TYPE: |
184 Foreign::cast(this)->ForeignPrint(out); | 190 Foreign::cast(this)->ForeignPrint(out); |
185 break; | 191 break; |
186 case SHARED_FUNCTION_INFO_TYPE: | 192 case SHARED_FUNCTION_INFO_TYPE: |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 | 758 |
753 void JSMap::JSMapPrint(FILE* out) { | 759 void JSMap::JSMapPrint(FILE* out) { |
754 HeapObject::PrintHeader(out, "JSMap"); | 760 HeapObject::PrintHeader(out, "JSMap"); |
755 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map())); | 761 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map())); |
756 PrintF(out, " - table = "); | 762 PrintF(out, " - table = "); |
757 table()->ShortPrint(out); | 763 table()->ShortPrint(out); |
758 PrintF(out, "\n"); | 764 PrintF(out, "\n"); |
759 } | 765 } |
760 | 766 |
761 | 767 |
| 768 template<class Derived, class TableType> |
| 769 void OrderedHashTableIterator<Derived, TableType>:: |
| 770 OrderedHashTableIteratorPrint(FILE* out) { |
| 771 PrintF(out, " - table = "); |
| 772 table()->ShortPrint(out); |
| 773 PrintF(out, " - index = "); |
| 774 index()->ShortPrint(out); |
| 775 PrintF(out, " - count = "); |
| 776 count()->ShortPrint(out); |
| 777 PrintF(out, " - kind = "); |
| 778 kind()->ShortPrint(out); |
| 779 PrintF(out, " - next_iterator = "); |
| 780 next_iterator()->ShortPrint(out); |
| 781 PrintF(out, " - previous_iterator = "); |
| 782 previous_iterator()->ShortPrint(out); |
| 783 PrintF(out, "\n"); |
| 784 } |
| 785 |
| 786 |
| 787 void JSSetIterator::JSSetIteratorPrint(FILE* out) { |
| 788 HeapObject::PrintHeader(out, "JSSetIterator"); |
| 789 OrderedHashTableIteratorPrint(out); |
| 790 } |
| 791 |
| 792 |
| 793 void JSMapIterator::JSMapIteratorPrint(FILE* out) { |
| 794 HeapObject::PrintHeader(out, "JSMapIterator"); |
| 795 OrderedHashTableIteratorPrint(out); |
| 796 } |
| 797 |
| 798 |
762 void JSWeakMap::JSWeakMapPrint(FILE* out) { | 799 void JSWeakMap::JSWeakMapPrint(FILE* out) { |
763 HeapObject::PrintHeader(out, "JSWeakMap"); | 800 HeapObject::PrintHeader(out, "JSWeakMap"); |
764 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map())); | 801 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map())); |
765 PrintF(out, " - table = "); | 802 PrintF(out, " - table = "); |
766 table()->ShortPrint(out); | 803 table()->ShortPrint(out); |
767 PrintF(out, "\n"); | 804 PrintF(out, "\n"); |
768 } | 805 } |
769 | 806 |
770 | 807 |
771 void JSWeakSet::JSWeakSetPrint(FILE* out) { | 808 void JSWeakSet::JSWeakSetPrint(FILE* out) { |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1227 } | 1264 } |
1228 } | 1265 } |
1229 PrintF(out, "\n"); | 1266 PrintF(out, "\n"); |
1230 } | 1267 } |
1231 | 1268 |
1232 | 1269 |
1233 #endif // OBJECT_PRINT | 1270 #endif // OBJECT_PRINT |
1234 | 1271 |
1235 | 1272 |
1236 } } // namespace v8::internal | 1273 } } // namespace v8::internal |
OLD | NEW |