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/objects.h" | 5 #include "src/objects.h" |
6 | 6 |
7 #include <iomanip> | 7 #include <iomanip> |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "src/disasm.h" | 10 #include "src/disasm.h" |
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1190 } | 1190 } |
1191 | 1191 |
1192 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT | 1192 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT |
1193 HeapObject::PrintHeader(os, "PrototypeInfo"); | 1193 HeapObject::PrintHeader(os, "PrototypeInfo"); |
1194 os << "\n - prototype users: " << Brief(prototype_users()); | 1194 os << "\n - prototype users: " << Brief(prototype_users()); |
1195 os << "\n - registry slot: " << registry_slot(); | 1195 os << "\n - registry slot: " << registry_slot(); |
1196 os << "\n - validity cell: " << Brief(validity_cell()); | 1196 os << "\n - validity cell: " << Brief(validity_cell()); |
1197 os << "\n"; | 1197 os << "\n"; |
1198 } | 1198 } |
1199 | 1199 |
| 1200 void Tuple3::Tuple3Print(std::ostream& os) { // NOLINT |
| 1201 HeapObject::PrintHeader(os, "Tuple3"); |
| 1202 os << "\n - value1: " << Brief(value1()); |
| 1203 os << "\n - value2: " << Brief(value2()); |
| 1204 os << "\n - value3: " << Brief(value3()); |
| 1205 os << "\n"; |
| 1206 } |
| 1207 |
1200 void ContextExtension::ContextExtensionPrint(std::ostream& os) { // NOLINT | 1208 void ContextExtension::ContextExtensionPrint(std::ostream& os) { // NOLINT |
1201 HeapObject::PrintHeader(os, "ContextExtension"); | 1209 HeapObject::PrintHeader(os, "ContextExtension"); |
1202 os << "\n - scope_info: " << Brief(scope_info()); | 1210 os << "\n - scope_info: " << Brief(scope_info()); |
1203 os << "\n - extension: " << Brief(extension()); | 1211 os << "\n - extension: " << Brief(extension()); |
1204 os << "\n"; | 1212 os << "\n"; |
1205 } | 1213 } |
1206 | 1214 |
1207 | 1215 |
1208 void AccessorPair::AccessorPairPrint(std::ostream& os) { // NOLINT | 1216 void AccessorPair::AccessorPairPrint(std::ostream& os) { // NOLINT |
1209 HeapObject::PrintHeader(os, "AccessorPair"); | 1217 HeapObject::PrintHeader(os, "AccessorPair"); |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1560 printf("Not a transition array\n"); | 1568 printf("Not a transition array\n"); |
1561 } else { | 1569 } else { |
1562 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1570 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1563 } | 1571 } |
1564 } | 1572 } |
1565 | 1573 |
1566 extern void _v8_internal_Print_StackTrace() { | 1574 extern void _v8_internal_Print_StackTrace() { |
1567 i::Isolate* isolate = i::Isolate::Current(); | 1575 i::Isolate* isolate = i::Isolate::Current(); |
1568 isolate->PrintStack(stdout); | 1576 isolate->PrintStack(stdout); |
1569 } | 1577 } |
OLD | NEW |