| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |