| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 | 737 |
| 738 void Proxy::ProxyPrint() { | 738 void Proxy::ProxyPrint() { |
| 739 PrintF("proxy to %p", proxy()); | 739 PrintF("proxy to %p", proxy()); |
| 740 } | 740 } |
| 741 | 741 |
| 742 | 742 |
| 743 void Proxy::ProxyVerify() { | 743 void Proxy::ProxyVerify() { |
| 744 ASSERT(IsProxy()); | 744 ASSERT(IsProxy()); |
| 745 } | 745 } |
| 746 | 746 |
| 747 template<typename Shape, typename Key> | |
| 748 void Dictionary<Shape, Key>::Print() { | |
| 749 int capacity = HashTable<Shape, Key>::Capacity(); | |
| 750 for (int i = 0; i < capacity; i++) { | |
| 751 Object* k = HashTable<Shape, Key>::KeyAt(i); | |
| 752 if (HashTable<Shape, Key>::IsKey(k)) { | |
| 753 PrintF(" "); | |
| 754 if (k->IsString()) { | |
| 755 String::cast(k)->StringPrint(); | |
| 756 } else { | |
| 757 k->ShortPrint(); | |
| 758 } | |
| 759 PrintF(": "); | |
| 760 ValueAt(i)->ShortPrint(); | |
| 761 PrintF("\n"); | |
| 762 } | |
| 763 } | |
| 764 } | |
| 765 | |
| 766 // Template instantiations. | |
| 767 template void Dictionary<NumberDictionaryShape, uint32_t>::Print(); | |
| 768 template void Dictionary<StringDictionaryShape, String*>::Print(); | |
| 769 | 747 |
| 770 void AccessorInfo::AccessorInfoVerify() { | 748 void AccessorInfo::AccessorInfoVerify() { |
| 771 CHECK(IsAccessorInfo()); | 749 CHECK(IsAccessorInfo()); |
| 772 VerifyPointer(getter()); | 750 VerifyPointer(getter()); |
| 773 VerifyPointer(setter()); | 751 VerifyPointer(setter()); |
| 774 VerifyPointer(name()); | 752 VerifyPointer(name()); |
| 775 VerifyPointer(data()); | 753 VerifyPointer(data()); |
| 776 VerifyPointer(flag()); | 754 VerifyPointer(flag()); |
| 777 } | 755 } |
| 778 | 756 |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1112 } | 1090 } |
| 1113 current = hash; | 1091 current = hash; |
| 1114 } | 1092 } |
| 1115 return true; | 1093 return true; |
| 1116 } | 1094 } |
| 1117 | 1095 |
| 1118 | 1096 |
| 1119 #endif // DEBUG | 1097 #endif // DEBUG |
| 1120 | 1098 |
| 1121 } } // namespace v8::internal | 1099 } } // namespace v8::internal |
| OLD | NEW |