| 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 "src/disasm.h" | 7 #include "src/disasm.h" |
| 8 #include "src/disassembler.h" | 8 #include "src/disassembler.h" |
| 9 #include "src/interpreter/bytecodes.h" | 9 #include "src/interpreter/bytecodes.h" |
| 10 #include "src/objects-inl.h" | 10 #include "src/objects-inl.h" |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 int nof_transitions = TransitionArray::NumberOfTransitions(raw_transitions()); | 477 int nof_transitions = TransitionArray::NumberOfTransitions(raw_transitions()); |
| 478 if (nof_transitions > 0) { | 478 if (nof_transitions > 0) { |
| 479 os << "\n - transitions #" << nof_transitions << ": " | 479 os << "\n - transitions #" << nof_transitions << ": " |
| 480 << Brief(raw_transitions()); | 480 << Brief(raw_transitions()); |
| 481 TransitionArray::PrintTransitions(os, raw_transitions(), false); | 481 TransitionArray::PrintTransitions(os, raw_transitions(), false); |
| 482 } | 482 } |
| 483 os << "\n - prototype: " << Brief(prototype()); | 483 os << "\n - prototype: " << Brief(prototype()); |
| 484 os << "\n - constructor: " << Brief(GetConstructor()); | 484 os << "\n - constructor: " << Brief(GetConstructor()); |
| 485 os << "\n - code cache: " << Brief(code_cache()); | 485 os << "\n - code cache: " << Brief(code_cache()); |
| 486 os << "\n - dependent code: " << Brief(dependent_code()); | 486 os << "\n - dependent code: " << Brief(dependent_code()); |
| 487 os << "\n - counter: " << counter(); | 487 os << "\n - construction counter: " << construction_counter(); |
| 488 os << "\n"; | 488 os << "\n"; |
| 489 } | 489 } |
| 490 | 490 |
| 491 | 491 |
| 492 void CodeCache::CodeCachePrint(std::ostream& os) { // NOLINT | 492 void CodeCache::CodeCachePrint(std::ostream& os) { // NOLINT |
| 493 HeapObject::PrintHeader(os, "CodeCache"); | 493 HeapObject::PrintHeader(os, "CodeCache"); |
| 494 os << "\n - default_cache: " << Brief(default_cache()); | 494 os << "\n - default_cache: " << Brief(default_cache()); |
| 495 os << "\n - normal_type_cache: " << Brief(normal_type_cache()); | 495 os << "\n - normal_type_cache: " << Brief(normal_type_cache()); |
| 496 } | 496 } |
| 497 | 497 |
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1313 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1313 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
| 1314 Object* transitions = map()->raw_transitions(); | 1314 Object* transitions = map()->raw_transitions(); |
| 1315 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1315 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
| 1316 if (num_transitions == 0) return; | 1316 if (num_transitions == 0) return; |
| 1317 os << "\n - transitions"; | 1317 os << "\n - transitions"; |
| 1318 TransitionArray::PrintTransitions(os, transitions, false); | 1318 TransitionArray::PrintTransitions(os, transitions, false); |
| 1319 } | 1319 } |
| 1320 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1320 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
| 1321 } // namespace internal | 1321 } // namespace internal |
| 1322 } // namespace v8 | 1322 } // namespace v8 |
| OLD | NEW |