| 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 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 HeapObject::PrintHeader(os, "ExecutableAccessorInfo"); | 856 HeapObject::PrintHeader(os, "ExecutableAccessorInfo"); |
| 857 os << "\n - name: " << Brief(name()); | 857 os << "\n - name: " << Brief(name()); |
| 858 os << "\n - flag: " << Brief(flag()); | 858 os << "\n - flag: " << Brief(flag()); |
| 859 os << "\n - getter: " << Brief(getter()); | 859 os << "\n - getter: " << Brief(getter()); |
| 860 os << "\n - setter: " << Brief(setter()); | 860 os << "\n - setter: " << Brief(setter()); |
| 861 os << "\n - data: " << Brief(data()); | 861 os << "\n - data: " << Brief(data()); |
| 862 os << "\n"; | 862 os << "\n"; |
| 863 } | 863 } |
| 864 | 864 |
| 865 | 865 |
| 866 void DeclaredAccessorInfo::DeclaredAccessorInfoPrint( | |
| 867 std::ostream& os) { // NOLINT | |
| 868 HeapObject::PrintHeader(os, "DeclaredAccessorInfo"); | |
| 869 os << "\n - name: " << Brief(name()); | |
| 870 os << "\n - flag: " << Brief(flag()); | |
| 871 os << "\n - descriptor: " << Brief(descriptor()); | |
| 872 os << "\n"; | |
| 873 } | |
| 874 | |
| 875 | |
| 876 void DeclaredAccessorDescriptor::DeclaredAccessorDescriptorPrint( | |
| 877 std::ostream& os) { // NOLINT | |
| 878 HeapObject::PrintHeader(os, "DeclaredAccessorDescriptor"); | |
| 879 os << "\n - internal field: " << Brief(serialized_data()); | |
| 880 os << "\n"; | |
| 881 } | |
| 882 | |
| 883 | |
| 884 void Box::BoxPrint(std::ostream& os) { // NOLINT | 866 void Box::BoxPrint(std::ostream& os) { // NOLINT |
| 885 HeapObject::PrintHeader(os, "Box"); | 867 HeapObject::PrintHeader(os, "Box"); |
| 886 os << "\n - value: " << Brief(value()); | 868 os << "\n - value: " << Brief(value()); |
| 887 os << "\n"; | 869 os << "\n"; |
| 888 } | 870 } |
| 889 | 871 |
| 890 | 872 |
| 891 void AccessorPair::AccessorPairPrint(std::ostream& os) { // NOLINT | 873 void AccessorPair::AccessorPairPrint(std::ostream& os) { // NOLINT |
| 892 HeapObject::PrintHeader(os, "AccessorPair"); | 874 HeapObject::PrintHeader(os, "AccessorPair"); |
| 893 os << "\n - getter: " << Brief(getter()); | 875 os << "\n - getter: " << Brief(getter()); |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1208 } | 1190 } |
| 1209 } | 1191 } |
| 1210 | 1192 |
| 1211 | 1193 |
| 1212 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1194 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
| 1213 if (!map()->HasTransitionArray()) return; | 1195 if (!map()->HasTransitionArray()) return; |
| 1214 map()->transitions()->PrintTransitions(os, false); | 1196 map()->transitions()->PrintTransitions(os, false); |
| 1215 } | 1197 } |
| 1216 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1198 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
| 1217 } } // namespace v8::internal | 1199 } } // namespace v8::internal |
| OLD | NEW |