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

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

Issue 378533002: Another round of MSVC fixes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Struct Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen-gvn.h ('k') | no next file » | 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/disasm.h" 7 #include "src/disasm.h"
8 #include "src/disassembler.h" 8 #include "src/disassembler.h"
9 #include "src/jsregexp.h" 9 #include "src/jsregexp.h"
10 #include "src/objects-visiting.h" 10 #include "src/objects-visiting.h"
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 } 584 }
585 585
586 const char truncated_epilogue[] = "...<truncated>"; 586 const char truncated_epilogue[] = "...<truncated>";
587 int len = length(); 587 int len = length();
588 if (!FLAG_use_verbose_printer) { 588 if (!FLAG_use_verbose_printer) {
589 if (len > 100) { 589 if (len > 100) {
590 len = 100 - sizeof(truncated_epilogue); 590 len = 100 - sizeof(truncated_epilogue);
591 } 591 }
592 } 592 }
593 for (int i = 0; i < len; i++) { 593 for (int i = 0; i < len; i++) {
594 os.put(Get(i)); 594 os << AsUC16(Get(i));
595 } 595 }
596 if (len != length()) { 596 if (len != length()) {
597 os << truncated_epilogue; 597 os << truncated_epilogue;
598 } 598 }
599 599
600 if (!StringShape(this).IsInternalized()) os << "\""; 600 if (!StringShape(this).IsInternalized()) os << "\"";
601 } 601 }
602 602
603 603
604 void Name::NamePrint(OStream& os) { // NOLINT 604 void Name::NamePrint(OStream& os) { // NOLINT
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 } 1109 }
1110 } 1110 }
1111 os << "\n"; 1111 os << "\n";
1112 } 1112 }
1113 1113
1114 1114
1115 #endif // OBJECT_PRINT 1115 #endif // OBJECT_PRINT
1116 1116
1117 1117
1118 } } // namespace v8::internal 1118 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-gvn.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698