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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 | 746 |
747 void SharedFunctionInfo::SharedFunctionInfoPrint(FILE* out) { | 747 void SharedFunctionInfo::SharedFunctionInfoPrint(FILE* out) { |
748 HeapObject::PrintHeader(out, "SharedFunctionInfo"); | 748 HeapObject::PrintHeader(out, "SharedFunctionInfo"); |
749 PrintF(out, " - name: "); | 749 PrintF(out, " - name: "); |
750 name()->ShortPrint(out); | 750 name()->ShortPrint(out); |
751 PrintF(out, "\n - expected_nof_properties: %d", expected_nof_properties()); | 751 PrintF(out, "\n - expected_nof_properties: %d", expected_nof_properties()); |
752 PrintF(out, "\n - instance class name = "); | 752 PrintF(out, "\n - instance class name = "); |
753 instance_class_name()->Print(out); | 753 instance_class_name()->Print(out); |
754 PrintF(out, "\n - code = "); | 754 PrintF(out, "\n - code = "); |
755 code()->ShortPrint(out); | 755 code()->ShortPrint(out); |
756 PrintF(out, "\n - source code = "); | 756 if (HasSourceCode()) { |
757 GetSourceCode()->ShortPrint(out); | 757 PrintF(out, "\n - source code = "); |
| 758 GetSourceCode()->ShortPrint(out); |
| 759 } |
758 // Script files are often large, hard to read. | 760 // Script files are often large, hard to read. |
759 // PrintF(out, "\n - script ="); | 761 // PrintF(out, "\n - script ="); |
760 // script()->Print(out); | 762 // script()->Print(out); |
761 PrintF(out, "\n - function token position = %d", function_token_position()); | 763 PrintF(out, "\n - function token position = %d", function_token_position()); |
762 PrintF(out, "\n - start position = %d", start_position()); | 764 PrintF(out, "\n - start position = %d", start_position()); |
763 PrintF(out, "\n - end position = %d", end_position()); | 765 PrintF(out, "\n - end position = %d", end_position()); |
764 PrintF(out, "\n - is expression = %d", is_expression()); | 766 PrintF(out, "\n - is expression = %d", is_expression()); |
765 PrintF(out, "\n - debug info = "); | 767 PrintF(out, "\n - debug info = "); |
766 debug_info()->ShortPrint(out); | 768 debug_info()->ShortPrint(out); |
767 PrintF(out, "\n - length = %d", length()); | 769 PrintF(out, "\n - length = %d", length()); |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 desc.Print(out); | 1013 desc.Print(out); |
1012 } | 1014 } |
1013 PrintF(out, "\n"); | 1015 PrintF(out, "\n"); |
1014 } | 1016 } |
1015 | 1017 |
1016 | 1018 |
1017 #endif // OBJECT_PRINT | 1019 #endif // OBJECT_PRINT |
1018 | 1020 |
1019 | 1021 |
1020 } } // namespace v8::internal | 1022 } } // namespace v8::internal |
OLD | NEW |