Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index b154674a0e70060c8ecfad8aafbc56b8c44e9f43..4021c277a60541a8fe750884bd5e985625d84482 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -724,10 +724,15 @@ void TypeFeedbackMetadata::TypeFeedbackMetadataPrint( |
os << "\n - slot_count: " << slot_count(); |
TypeFeedbackMetadataIterator iter(this); |
+ int parameter_index = 0; |
while (iter.HasNext()) { |
FeedbackVectorSlot slot = iter.Next(); |
FeedbackVectorSlotKind kind = iter.kind(); |
os << "\n Slot " << slot << " " << kind; |
+ if (TypeFeedbackMetadata::SlotRequiresParameter(kind)) { |
+ int parameter_value = this->GetParameter(parameter_index++); |
+ os << " [" << parameter_value << "]"; |
+ } |
} |
os << "\n"; |
} |
@@ -748,6 +753,7 @@ void TypeFeedbackVector::TypeFeedbackVectorPrint(std::ostream& os) { // NOLINT |
return; |
} |
+ int parameter_index = 0; |
TypeFeedbackMetadataIterator iter(metadata()); |
while (iter.HasNext()) { |
FeedbackVectorSlot slot = iter.Next(); |
@@ -796,6 +802,12 @@ void TypeFeedbackVector::TypeFeedbackVectorPrint(std::ostream& os) { // NOLINT |
os << Code::ICState2String(nexus.StateFromFeedback()); |
break; |
} |
+ case FeedbackVectorSlotKind::CREATE_CLOSURE: { |
+ // TODO(mvstanton): Integrate this into the iterator. |
+ int parameter_value = metadata()->GetParameter(parameter_index++); |
+ os << "[" << parameter_value << "]"; |
+ break; |
+ } |
case FeedbackVectorSlotKind::GENERAL: |
break; |
case FeedbackVectorSlotKind::INVALID: |