| 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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 os << "\n - instance descriptors " << (owns_descriptors() ? "(own) " : "") | 429 os << "\n - instance descriptors " << (owns_descriptors() ? "(own) " : "") |
| 430 << "#" << NumberOfOwnDescriptors() << ": " | 430 << "#" << NumberOfOwnDescriptors() << ": " |
| 431 << Brief(instance_descriptors()); | 431 << Brief(instance_descriptors()); |
| 432 if (FLAG_unbox_double_fields) { | 432 if (FLAG_unbox_double_fields) { |
| 433 os << "\n - layout descriptor: " << Brief(layout_descriptor()); | 433 os << "\n - layout descriptor: " << Brief(layout_descriptor()); |
| 434 } | 434 } |
| 435 if (HasTransitionArray()) { | 435 if (HasTransitionArray()) { |
| 436 os << "\n - transitions: " << Brief(transitions()); | 436 os << "\n - transitions: " << Brief(transitions()); |
| 437 } | 437 } |
| 438 os << "\n - prototype: " << Brief(prototype()); | 438 os << "\n - prototype: " << Brief(prototype()); |
| 439 os << "\n - constructor: " << Brief(constructor()); | 439 os << "\n - constructor: " << Brief(GetConstructor()); |
| 440 os << "\n - code cache: " << Brief(code_cache()); | 440 os << "\n - code cache: " << Brief(code_cache()); |
| 441 os << "\n - dependent code: " << Brief(dependent_code()); | 441 os << "\n - dependent code: " << Brief(dependent_code()); |
| 442 os << "\n"; | 442 os << "\n"; |
| 443 } | 443 } |
| 444 | 444 |
| 445 | 445 |
| 446 void CodeCache::CodeCachePrint(std::ostream& os) { // NOLINT | 446 void CodeCache::CodeCachePrint(std::ostream& os) { // NOLINT |
| 447 HeapObject::PrintHeader(os, "CodeCache"); | 447 HeapObject::PrintHeader(os, "CodeCache"); |
| 448 os << "\n - default_cache: " << Brief(default_cache()); | 448 os << "\n - default_cache: " << Brief(default_cache()); |
| 449 os << "\n - normal_type_cache: " << Brief(normal_type_cache()); | 449 os << "\n - normal_type_cache: " << Brief(normal_type_cache()); |
| (...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 } | 1185 } |
| 1186 } | 1186 } |
| 1187 | 1187 |
| 1188 | 1188 |
| 1189 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1189 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
| 1190 if (!map()->HasTransitionArray()) return; | 1190 if (!map()->HasTransitionArray()) return; |
| 1191 map()->transitions()->PrintTransitions(os, false); | 1191 map()->transitions()->PrintTransitions(os, false); |
| 1192 } | 1192 } |
| 1193 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1193 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
| 1194 } } // namespace v8::internal | 1194 } } // namespace v8::internal |
| OLD | NEW |