| 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 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 825 void PropertyCell::PropertyCellPrint(std::ostream& os) { // NOLINT | 825 void PropertyCell::PropertyCellPrint(std::ostream& os) { // NOLINT |
| 826 HeapObject::PrintHeader(os, "PropertyCell"); | 826 HeapObject::PrintHeader(os, "PropertyCell"); |
| 827 } | 827 } |
| 828 | 828 |
| 829 | 829 |
| 830 void WeakCell::WeakCellPrint(std::ostream& os) { // NOLINT | 830 void WeakCell::WeakCellPrint(std::ostream& os) { // NOLINT |
| 831 HeapObject::PrintHeader(os, "WeakCell"); | 831 HeapObject::PrintHeader(os, "WeakCell"); |
| 832 if (cleared()) { | 832 if (cleared()) { |
| 833 os << "\n - cleared"; | 833 os << "\n - cleared"; |
| 834 } else { | 834 } else { |
| 835 os << "\n - value: " << Brief(value()); | 835 os << "\n - value: " << Brief(value(GetHeap())); |
| 836 } | 836 } |
| 837 } | 837 } |
| 838 | 838 |
| 839 | 839 |
| 840 void Code::CodePrint(std::ostream& os) { // NOLINT | 840 void Code::CodePrint(std::ostream& os) { // NOLINT |
| 841 HeapObject::PrintHeader(os, "Code"); | 841 HeapObject::PrintHeader(os, "Code"); |
| 842 #ifdef ENABLE_DISASSEMBLER | 842 #ifdef ENABLE_DISASSEMBLER |
| 843 if (FLAG_use_verbose_printer) { | 843 if (FLAG_use_verbose_printer) { |
| 844 Disassemble(NULL, os); | 844 Disassemble(NULL, os); |
| 845 } | 845 } |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 } | 1184 } |
| 1185 } | 1185 } |
| 1186 | 1186 |
| 1187 | 1187 |
| 1188 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1188 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
| 1189 if (!map()->HasTransitionArray()) return; | 1189 if (!map()->HasTransitionArray()) return; |
| 1190 map()->transitions()->PrintTransitions(os, false); | 1190 map()->transitions()->PrintTransitions(os, false); |
| 1191 } | 1191 } |
| 1192 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1192 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
| 1193 } } // namespace v8::internal | 1193 } } // namespace v8::internal |
| OLD | NEW |