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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 } | 499 } |
500 os << "\n - prototype: " << Brief(prototype()); | 500 os << "\n - prototype: " << Brief(prototype()); |
501 os << "\n - constructor: " << Brief(GetConstructor()); | 501 os << "\n - constructor: " << Brief(GetConstructor()); |
502 os << "\n - code cache: " << Brief(code_cache()); | 502 os << "\n - code cache: " << Brief(code_cache()); |
503 os << "\n - dependent code: " << Brief(dependent_code()); | 503 os << "\n - dependent code: " << Brief(dependent_code()); |
504 os << "\n - construction counter: " << construction_counter(); | 504 os << "\n - construction counter: " << construction_counter(); |
505 os << "\n"; | 505 os << "\n"; |
506 } | 506 } |
507 | 507 |
508 | 508 |
509 void CodeCache::CodeCachePrint(std::ostream& os) { // NOLINT | |
510 HeapObject::PrintHeader(os, "CodeCache"); | |
511 os << "\n - default_cache: " << Brief(default_cache()); | |
512 os << "\n - normal_type_cache: " << Brief(normal_type_cache()); | |
513 } | |
514 | |
515 | |
516 void PolymorphicCodeCache::PolymorphicCodeCachePrint( | |
517 std::ostream& os) { // NOLINT | |
518 HeapObject::PrintHeader(os, "PolymorphicCodeCache"); | |
519 os << "\n - cache: " << Brief(cache()); | |
520 } | |
521 | |
522 | |
523 void TypeFeedbackInfo::TypeFeedbackInfoPrint(std::ostream& os) { // NOLINT | 509 void TypeFeedbackInfo::TypeFeedbackInfoPrint(std::ostream& os) { // NOLINT |
524 HeapObject::PrintHeader(os, "TypeFeedbackInfo"); | 510 HeapObject::PrintHeader(os, "TypeFeedbackInfo"); |
525 os << "\n - ic_total_count: " << ic_total_count() | 511 os << "\n - ic_total_count: " << ic_total_count() |
526 << ", ic_with_type_info_count: " << ic_with_type_info_count() | 512 << ", ic_with_type_info_count: " << ic_with_type_info_count() |
527 << ", ic_generic_count: " << ic_generic_count() << "\n"; | 513 << ", ic_generic_count: " << ic_generic_count() << "\n"; |
528 } | 514 } |
529 | 515 |
530 | 516 |
531 void AliasedArgumentsEntry::AliasedArgumentsEntryPrint( | 517 void AliasedArgumentsEntry::AliasedArgumentsEntryPrint( |
532 std::ostream& os) { // NOLINT | 518 std::ostream& os) { // NOLINT |
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1336 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1322 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1337 Object* transitions = map()->raw_transitions(); | 1323 Object* transitions = map()->raw_transitions(); |
1338 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1324 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
1339 if (num_transitions == 0) return; | 1325 if (num_transitions == 0) return; |
1340 os << "\n - transitions"; | 1326 os << "\n - transitions"; |
1341 TransitionArray::PrintTransitions(os, transitions, false); | 1327 TransitionArray::PrintTransitions(os, transitions, false); |
1342 } | 1328 } |
1343 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1329 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1344 } // namespace internal | 1330 } // namespace internal |
1345 } // namespace v8 | 1331 } // namespace v8 |
OLD | NEW |