OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/objects.h" | 5 #include "src/objects.h" |
6 | 6 |
7 #include <iomanip> | 7 #include <iomanip> |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 os << "\n - stack_frames: " << Brief(stack_frames()); | 851 os << "\n - stack_frames: " << Brief(stack_frames()); |
852 JSObjectPrintBody(os, this); | 852 JSObjectPrintBody(os, this); |
853 } | 853 } |
854 | 854 |
855 | 855 |
856 void String::StringPrint(std::ostream& os) { // NOLINT | 856 void String::StringPrint(std::ostream& os) { // NOLINT |
857 if (StringShape(this).IsInternalized()) { | 857 if (StringShape(this).IsInternalized()) { |
858 os << "#"; | 858 os << "#"; |
859 } else if (StringShape(this).IsCons()) { | 859 } else if (StringShape(this).IsCons()) { |
860 os << "c\""; | 860 os << "c\""; |
861 } else if (StringShape(this).IsThin()) { | |
862 os << ">\""; | |
863 } else { | 861 } else { |
864 os << "\""; | 862 os << "\""; |
865 } | 863 } |
866 | 864 |
867 const char truncated_epilogue[] = "...<truncated>"; | 865 const char truncated_epilogue[] = "...<truncated>"; |
868 int len = length(); | 866 int len = length(); |
869 if (!FLAG_use_verbose_printer) { | 867 if (!FLAG_use_verbose_printer) { |
870 if (len > 100) { | 868 if (len > 100) { |
871 len = 100 - sizeof(truncated_epilogue); | 869 len = 100 - sizeof(truncated_epilogue); |
872 } | 870 } |
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1704 printf("Not a transition array\n"); | 1702 printf("Not a transition array\n"); |
1705 } else { | 1703 } else { |
1706 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1704 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1707 } | 1705 } |
1708 } | 1706 } |
1709 | 1707 |
1710 extern void _v8_internal_Print_StackTrace() { | 1708 extern void _v8_internal_Print_StackTrace() { |
1711 i::Isolate* isolate = i::Isolate::Current(); | 1709 i::Isolate* isolate = i::Isolate::Current(); |
1712 isolate->PrintStack(stdout); | 1710 isolate->PrintStack(stdout); |
1713 } | 1711 } |
OLD | NEW |