| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 | 465 |
| 466 void CodeCache::CodeCachePrint(FILE* out) { | 466 void CodeCache::CodeCachePrint(FILE* out) { |
| 467 HeapObject::PrintHeader(out, "CodeCache"); | 467 HeapObject::PrintHeader(out, "CodeCache"); |
| 468 PrintF(out, "\n - default_cache: "); | 468 PrintF(out, "\n - default_cache: "); |
| 469 default_cache()->ShortPrint(out); | 469 default_cache()->ShortPrint(out); |
| 470 PrintF(out, "\n - normal_type_cache: "); | 470 PrintF(out, "\n - normal_type_cache: "); |
| 471 normal_type_cache()->ShortPrint(out); | 471 normal_type_cache()->ShortPrint(out); |
| 472 } | 472 } |
| 473 | 473 |
| 474 | 474 |
| 475 void PolymorphicCodeCache::PolymorphicCodeCachePrint(FILE* out) { |
| 476 HeapObject::PrintHeader(out, "PolymorphicCodeCache"); |
| 477 PrintF(out, "\n - cache: "); |
| 478 cache()->ShortPrint(out); |
| 479 } |
| 480 |
| 481 |
| 475 void FixedArray::FixedArrayPrint(FILE* out) { | 482 void FixedArray::FixedArrayPrint(FILE* out) { |
| 476 HeapObject::PrintHeader(out, "FixedArray"); | 483 HeapObject::PrintHeader(out, "FixedArray"); |
| 477 PrintF(out, " - length: %d", length()); | 484 PrintF(out, " - length: %d", length()); |
| 478 for (int i = 0; i < length(); i++) { | 485 for (int i = 0; i < length(); i++) { |
| 479 PrintF(out, "\n [%d]: ", i); | 486 PrintF(out, "\n [%d]: ", i); |
| 480 get(i)->ShortPrint(out); | 487 get(i)->ShortPrint(out); |
| 481 } | 488 } |
| 482 PrintF(out, "\n"); | 489 PrintF(out, "\n"); |
| 483 } | 490 } |
| 484 | 491 |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 desc.Print(out); | 827 desc.Print(out); |
| 821 } | 828 } |
| 822 PrintF(out, "\n"); | 829 PrintF(out, "\n"); |
| 823 } | 830 } |
| 824 | 831 |
| 825 | 832 |
| 826 #endif // OBJECT_PRINT | 833 #endif // OBJECT_PRINT |
| 827 | 834 |
| 828 | 835 |
| 829 } } // namespace v8::internal | 836 } } // namespace v8::internal |
| OLD | NEW |