| 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/heap/objects-visiting.h" | 9 #include "src/heap/objects-visiting.h" |
| 10 #include "src/jsregexp.h" | 10 #include "src/jsregexp.h" |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 } | 840 } |
| 841 | 841 |
| 842 | 842 |
| 843 void PropertyCell::PropertyCellPrint(std::ostream& os) { // NOLINT | 843 void PropertyCell::PropertyCellPrint(std::ostream& os) { // NOLINT |
| 844 HeapObject::PrintHeader(os, "PropertyCell"); | 844 HeapObject::PrintHeader(os, "PropertyCell"); |
| 845 } | 845 } |
| 846 | 846 |
| 847 | 847 |
| 848 void WeakCell::WeakCellPrint(std::ostream& os) { // NOLINT | 848 void WeakCell::WeakCellPrint(std::ostream& os) { // NOLINT |
| 849 HeapObject::PrintHeader(os, "WeakCell"); | 849 HeapObject::PrintHeader(os, "WeakCell"); |
| 850 if (cleared()) { | |
| 851 os << "\n - cleared"; | |
| 852 } else { | |
| 853 os << "\n - value: " << Brief(value()); | |
| 854 } | |
| 855 } | 850 } |
| 856 | 851 |
| 857 | 852 |
| 858 void Code::CodePrint(std::ostream& os) { // NOLINT | 853 void Code::CodePrint(std::ostream& os) { // NOLINT |
| 859 HeapObject::PrintHeader(os, "Code"); | 854 HeapObject::PrintHeader(os, "Code"); |
| 860 #ifdef ENABLE_DISASSEMBLER | 855 #ifdef ENABLE_DISASSEMBLER |
| 861 if (FLAG_use_verbose_printer) { | 856 if (FLAG_use_verbose_printer) { |
| 862 Disassemble(NULL, os); | 857 Disassemble(NULL, os); |
| 863 } | 858 } |
| 864 #endif | 859 #endif |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1199 return SNPrintF(str, "#<%s>", s->PrivateSymbolToName()); | 1194 return SNPrintF(str, "#<%s>", s->PrivateSymbolToName()); |
| 1200 } else { | 1195 } else { |
| 1201 return SNPrintF(str, "<%s>", String::cast(s->name())->ToCString().get()); | 1196 return SNPrintF(str, "<%s>", String::cast(s->name())->ToCString().get()); |
| 1202 } | 1197 } |
| 1203 } | 1198 } |
| 1204 } | 1199 } |
| 1205 | 1200 |
| 1206 | 1201 |
| 1207 #endif // TRACE_MAPS | 1202 #endif // TRACE_MAPS |
| 1208 } } // namespace v8::internal | 1203 } } // namespace v8::internal |
| OLD | NEW |