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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 } | 547 } |
548 | 548 |
549 | 549 |
550 void PolymorphicCodeCache::PolymorphicCodeCachePrint(FILE* out) { | 550 void PolymorphicCodeCache::PolymorphicCodeCachePrint(FILE* out) { |
551 HeapObject::PrintHeader(out, "PolymorphicCodeCache"); | 551 HeapObject::PrintHeader(out, "PolymorphicCodeCache"); |
552 PrintF(out, "\n - cache: "); | 552 PrintF(out, "\n - cache: "); |
553 cache()->ShortPrint(out); | 553 cache()->ShortPrint(out); |
554 } | 554 } |
555 | 555 |
556 | 556 |
| 557 void TypeFeedbackInfo::TypeFeedbackInfoPrint(FILE* out) { |
| 558 HeapObject::PrintHeader(out, "TypeFeedbackInfo"); |
| 559 PrintF(out, "\n - ic_total_count: %d, ic_with_typeinfo_count: %d", |
| 560 ic_total_count(), ic_with_typeinfo_count()); |
| 561 PrintF(out, "\n - type_feedback_cells: "); |
| 562 type_feedback_cells()->FixedArrayPrint(out); |
| 563 } |
| 564 |
| 565 |
557 void FixedArray::FixedArrayPrint(FILE* out) { | 566 void FixedArray::FixedArrayPrint(FILE* out) { |
558 HeapObject::PrintHeader(out, "FixedArray"); | 567 HeapObject::PrintHeader(out, "FixedArray"); |
559 PrintF(out, " - length: %d", length()); | 568 PrintF(out, " - length: %d", length()); |
560 for (int i = 0; i < length(); i++) { | 569 for (int i = 0; i < length(); i++) { |
561 PrintF(out, "\n [%d]: ", i); | 570 PrintF(out, "\n [%d]: ", i); |
562 get(i)->ShortPrint(out); | 571 get(i)->ShortPrint(out); |
563 } | 572 } |
564 PrintF(out, "\n"); | 573 PrintF(out, "\n"); |
565 } | 574 } |
566 | 575 |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 desc.Print(out); | 978 desc.Print(out); |
970 } | 979 } |
971 PrintF(out, "\n"); | 980 PrintF(out, "\n"); |
972 } | 981 } |
973 | 982 |
974 | 983 |
975 #endif // OBJECT_PRINT | 984 #endif // OBJECT_PRINT |
976 | 985 |
977 | 986 |
978 } } // namespace v8::internal | 987 } } // namespace v8::internal |
OLD | NEW |