| 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 } | 382 } |
| 383 } | 383 } |
| 384 } | 384 } |
| 385 } | 385 } |
| 386 | 386 |
| 387 | 387 |
| 388 void JSObject::JSObjectPrint(OStream& os) { // NOLINT | 388 void JSObject::JSObjectPrint(OStream& os) { // NOLINT |
| 389 HeapObject::PrintHeader(os, "JSObject"); | 389 HeapObject::PrintHeader(os, "JSObject"); |
| 390 // Don't call GetElementsKind, its validation code can cause the printer to | 390 // Don't call GetElementsKind, its validation code can cause the printer to |
| 391 // fail when debugging. | 391 // fail when debugging. |
| 392 PrototypeIterator iter(GetIsolate(), this); |
| 392 os << " - map = " << reinterpret_cast<void*>(map()) << " [" | 393 os << " - map = " << reinterpret_cast<void*>(map()) << " [" |
| 393 << ElementsKindToString(this->map()->elements_kind()) | 394 << ElementsKindToString(this->map()->elements_kind()) |
| 394 << "]\n - prototype = " << reinterpret_cast<void*>(GetPrototype()) << "\n" | 395 << "]\n - prototype = " << reinterpret_cast<void*>(iter.GetCurrent()) |
| 395 << " {\n"; | 396 << "\n {\n"; |
| 396 PrintProperties(os); | 397 PrintProperties(os); |
| 397 PrintTransitions(os); | 398 PrintTransitions(os); |
| 398 PrintElements(os); | 399 PrintElements(os); |
| 399 os << " }\n"; | 400 os << " }\n"; |
| 400 } | 401 } |
| 401 | 402 |
| 402 | 403 |
| 403 void JSModule::JSModulePrint(OStream& os) { // NOLINT | 404 void JSModule::JSModulePrint(OStream& os) { // NOLINT |
| 404 HeapObject::PrintHeader(os, "JSModule"); | 405 HeapObject::PrintHeader(os, "JSModule"); |
| 405 os << " - map = " << reinterpret_cast<void*>(map()) << "\n" | 406 os << " - map = " << reinterpret_cast<void*>(map()) << "\n" |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1109 } | 1110 } |
| 1110 } | 1111 } |
| 1111 os << "\n"; | 1112 os << "\n"; |
| 1112 } | 1113 } |
| 1113 | 1114 |
| 1114 | 1115 |
| 1115 #endif // OBJECT_PRINT | 1116 #endif // OBJECT_PRINT |
| 1116 | 1117 |
| 1117 | 1118 |
| 1118 } } // namespace v8::internal | 1119 } } // namespace v8::internal |
| OLD | NEW |