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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 } | 493 } |
494 os << "\n - prototype: " << Brief(prototype()); | 494 os << "\n - prototype: " << Brief(prototype()); |
495 os << "\n - constructor: " << Brief(GetConstructor()); | 495 os << "\n - constructor: " << Brief(GetConstructor()); |
496 os << "\n - code cache: " << Brief(code_cache()); | 496 os << "\n - code cache: " << Brief(code_cache()); |
497 os << "\n - dependent code: " << Brief(dependent_code()); | 497 os << "\n - dependent code: " << Brief(dependent_code()); |
498 os << "\n - construction counter: " << construction_counter(); | 498 os << "\n - construction counter: " << construction_counter(); |
499 os << "\n"; | 499 os << "\n"; |
500 } | 500 } |
501 | 501 |
502 | 502 |
503 void CodeCache::CodeCachePrint(std::ostream& os) { // NOLINT | |
504 HeapObject::PrintHeader(os, "CodeCache"); | |
505 os << "\n - default_cache: " << Brief(default_cache()); | |
506 os << "\n - normal_type_cache: " << Brief(normal_type_cache()); | |
507 } | |
508 | |
509 | |
510 void PolymorphicCodeCache::PolymorphicCodeCachePrint( | |
511 std::ostream& os) { // NOLINT | |
512 HeapObject::PrintHeader(os, "PolymorphicCodeCache"); | |
513 os << "\n - cache: " << Brief(cache()); | |
514 } | |
515 | |
516 | |
517 void TypeFeedbackInfo::TypeFeedbackInfoPrint(std::ostream& os) { // NOLINT | 503 void TypeFeedbackInfo::TypeFeedbackInfoPrint(std::ostream& os) { // NOLINT |
518 HeapObject::PrintHeader(os, "TypeFeedbackInfo"); | 504 HeapObject::PrintHeader(os, "TypeFeedbackInfo"); |
519 os << "\n - ic_total_count: " << ic_total_count() | 505 os << "\n - ic_total_count: " << ic_total_count() |
520 << ", ic_with_type_info_count: " << ic_with_type_info_count() | 506 << ", ic_with_type_info_count: " << ic_with_type_info_count() |
521 << ", ic_generic_count: " << ic_generic_count() << "\n"; | 507 << ", ic_generic_count: " << ic_generic_count() << "\n"; |
522 } | 508 } |
523 | 509 |
524 | 510 |
525 void AliasedArgumentsEntry::AliasedArgumentsEntryPrint( | 511 void AliasedArgumentsEntry::AliasedArgumentsEntryPrint( |
526 std::ostream& os) { // NOLINT | 512 std::ostream& os) { // NOLINT |
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1330 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1316 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1331 Object* transitions = map()->raw_transitions(); | 1317 Object* transitions = map()->raw_transitions(); |
1332 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1318 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
1333 if (num_transitions == 0) return; | 1319 if (num_transitions == 0) return; |
1334 os << "\n - transitions"; | 1320 os << "\n - transitions"; |
1335 TransitionArray::PrintTransitions(os, transitions, false); | 1321 TransitionArray::PrintTransitions(os, transitions, false); |
1336 } | 1322 } |
1337 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1323 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1338 } // namespace internal | 1324 } // namespace internal |
1339 } // namespace v8 | 1325 } // namespace v8 |
OLD | NEW |