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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
590 | 590 |
591 | 591 |
592 void TypeFeedbackVector::TypeFeedbackVectorPrint(std::ostream& os) { // NOLINT | 592 void TypeFeedbackVector::TypeFeedbackVectorPrint(std::ostream& os) { // NOLINT |
593 HeapObject::PrintHeader(os, "TypeFeedbackVector"); | 593 HeapObject::PrintHeader(os, "TypeFeedbackVector"); |
594 os << " - length: " << length(); | 594 os << " - length: " << length(); |
595 if (length() == 0) { | 595 if (length() == 0) { |
596 os << " (empty)\n"; | 596 os << " (empty)\n"; |
597 return; | 597 return; |
598 } | 598 } |
599 | 599 |
600 /* | |
Benedikt Meurer
2015/12/09 07:23:02
Nit: Please remove the dead code. We have git for
mvstanton
2015/12/09 07:37:31
doh! Done.
| |
600 os << "\n - ics with type info: " << ic_with_type_info_count(); | 601 os << "\n - ics with type info: " << ic_with_type_info_count(); |
601 os << "\n - generic ics: " << ic_generic_count(); | 602 os << "\n - generic ics: " << ic_generic_count(); |
603 */ | |
602 | 604 |
603 TypeFeedbackMetadataIterator iter(metadata()); | 605 TypeFeedbackMetadataIterator iter(metadata()); |
604 while (iter.HasNext()) { | 606 while (iter.HasNext()) { |
605 FeedbackVectorSlot slot = iter.Next(); | 607 FeedbackVectorSlot slot = iter.Next(); |
606 FeedbackVectorSlotKind kind = iter.kind(); | 608 FeedbackVectorSlotKind kind = iter.kind(); |
607 | 609 |
608 os << "\n Slot " << slot << " " << kind << " "; | 610 os << "\n Slot " << slot << " " << kind << " "; |
609 switch (kind) { | 611 switch (kind) { |
610 case FeedbackVectorSlotKind::LOAD_IC: { | 612 case FeedbackVectorSlotKind::LOAD_IC: { |
611 LoadICNexus nexus(this, slot); | 613 LoadICNexus nexus(this, slot); |
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1313 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1315 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1314 Object* transitions = map()->raw_transitions(); | 1316 Object* transitions = map()->raw_transitions(); |
1315 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1317 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
1316 if (num_transitions == 0) return; | 1318 if (num_transitions == 0) return; |
1317 os << "\n - transitions"; | 1319 os << "\n - transitions"; |
1318 TransitionArray::PrintTransitions(os, transitions, false); | 1320 TransitionArray::PrintTransitions(os, transitions, false); |
1319 } | 1321 } |
1320 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1322 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1321 } // namespace internal | 1323 } // namespace internal |
1322 } // namespace v8 | 1324 } // namespace v8 |
OLD | NEW |