| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 | 792 |
| 793 PrintF("Global Handle Statistics:\n"); | 793 PrintF("Global Handle Statistics:\n"); |
| 794 PrintF(" allocated memory = %" V8_PTR_PREFIX "dB\n", sizeof(Node) * total); | 794 PrintF(" allocated memory = %" V8_PTR_PREFIX "dB\n", sizeof(Node) * total); |
| 795 PrintF(" # weak = %d\n", weak); | 795 PrintF(" # weak = %d\n", weak); |
| 796 PrintF(" # pending = %d\n", pending); | 796 PrintF(" # pending = %d\n", pending); |
| 797 PrintF(" # near_death = %d\n", near_death); | 797 PrintF(" # near_death = %d\n", near_death); |
| 798 PrintF(" # free = %d\n", destroyed); | 798 PrintF(" # free = %d\n", destroyed); |
| 799 PrintF(" # total = %d\n", total); | 799 PrintF(" # total = %d\n", total); |
| 800 } | 800 } |
| 801 | 801 |
| 802 |
| 802 void GlobalHandles::Print() { | 803 void GlobalHandles::Print() { |
| 803 PrintF("Global handles:\n"); | 804 PrintF("Global handles:\n"); |
| 804 for (NodeIterator it(this); !it.done(); it.Advance()) { | 805 for (NodeIterator it(this); !it.done(); it.Advance()) { |
| 805 PrintF(" handle %p to %p%s\n", | 806 PrintF(" handle %p to %p%s\n", |
| 806 reinterpret_cast<void*>(it.node()->location()), | 807 reinterpret_cast<void*>(it.node()->location()), |
| 807 reinterpret_cast<void*>(it.node()->object()), | 808 reinterpret_cast<void*>(it.node()->object()), |
| 808 it.node()->IsWeak() ? " (weak)" : ""); | 809 it.node()->IsWeak() ? " (weak)" : ""); |
| 809 } | 810 } |
| 810 } | 811 } |
| 811 | 812 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1000 } | 1001 } |
| 1001 } | 1002 } |
| 1002 object_group_connections_.Clear(); | 1003 object_group_connections_.Clear(); |
| 1003 object_group_connections_.Initialize(kObjectGroupConnectionsCapacity); | 1004 object_group_connections_.Initialize(kObjectGroupConnectionsCapacity); |
| 1004 retainer_infos_.Clear(); | 1005 retainer_infos_.Clear(); |
| 1005 implicit_ref_connections_.Clear(); | 1006 implicit_ref_connections_.Clear(); |
| 1006 } | 1007 } |
| 1007 | 1008 |
| 1008 | 1009 |
| 1009 } } // namespace v8::internal | 1010 } } // namespace v8::internal |
| OLD | NEW |