Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: src/objects-printer.cc

Issue 2627783006: Version 5.7.442.2 (cherry-pick) (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/objects-inl.h ('k') | src/ppc/code-stubs-ppc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/ppc/code-stubs-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698