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 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 os << "\n - stack_frames: " << Brief(stack_frames()); | 831 os << "\n - stack_frames: " << Brief(stack_frames()); |
832 JSObjectPrintBody(os, this); | 832 JSObjectPrintBody(os, this); |
833 } | 833 } |
834 | 834 |
835 | 835 |
836 void String::StringPrint(std::ostream& os) { // NOLINT | 836 void String::StringPrint(std::ostream& os) { // NOLINT |
837 if (StringShape(this).IsInternalized()) { | 837 if (StringShape(this).IsInternalized()) { |
838 os << "#"; | 838 os << "#"; |
839 } else if (StringShape(this).IsCons()) { | 839 } else if (StringShape(this).IsCons()) { |
840 os << "c\""; | 840 os << "c\""; |
| 841 } else if (StringShape(this).IsThin()) { |
| 842 os << ">\""; |
841 } else { | 843 } else { |
842 os << "\""; | 844 os << "\""; |
843 } | 845 } |
844 | 846 |
845 const char truncated_epilogue[] = "...<truncated>"; | 847 const char truncated_epilogue[] = "...<truncated>"; |
846 int len = length(); | 848 int len = length(); |
847 if (!FLAG_use_verbose_printer) { | 849 if (!FLAG_use_verbose_printer) { |
848 if (len > 100) { | 850 if (len > 100) { |
849 len = 100 - sizeof(truncated_epilogue); | 851 len = 100 - sizeof(truncated_epilogue); |
850 } | 852 } |
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1680 printf("Not a transition array\n"); | 1682 printf("Not a transition array\n"); |
1681 } else { | 1683 } else { |
1682 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1684 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1683 } | 1685 } |
1684 } | 1686 } |
1685 | 1687 |
1686 extern void _v8_internal_Print_StackTrace() { | 1688 extern void _v8_internal_Print_StackTrace() { |
1687 i::Isolate* isolate = i::Isolate::Current(); | 1689 i::Isolate* isolate = i::Isolate::Current(); |
1688 isolate->PrintStack(stdout); | 1690 isolate->PrintStack(stdout); |
1689 } | 1691 } |
OLD | NEW |