Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index c8c418622a749d58bae5ad2ac3482d8ec3193a26..58d446be62c397dba79040ce8d223d99ff79443f 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -1171,6 +1171,7 @@ void TransitionArray::PrintTransitions(std::ostream& os, |
} |
for (int i = 0; i < number_of_transitions(); i++) { |
Name* key = GetKey(i); |
+ Map* target = GetTarget(i); |
os << " "; |
#ifdef OBJECT_PRINT |
key->NamePrint(os); |
@@ -1181,12 +1182,12 @@ void TransitionArray::PrintTransitions(std::ostream& os, |
if (key == GetHeap()->frozen_symbol()) { |
os << " (transition to frozen)"; |
} else if (key == GetHeap()->elements_transition_symbol()) { |
- os << " (transition to " |
- << ElementsKindToString(GetTarget(i)->elements_kind()) << ")"; |
+ os << " (transition to " << ElementsKindToString(target->elements_kind()) |
+ << ")"; |
} else if (key == GetHeap()->observed_symbol()) { |
os << " (transition to Object.observe)"; |
} else { |
- PropertyDetails details = GetTargetDetails(i); |
+ PropertyDetails details = GetTargetDetails(key, target); |
switch (details.type()) { |
case FIELD: { |
os << " (transition to field)"; |
@@ -1201,7 +1202,7 @@ void TransitionArray::PrintTransitions(std::ostream& os, |
} |
os << ", attrs: " << details.attributes(); |
} |
- os << " -> " << Brief(GetTarget(i)) << "\n"; |
+ os << " -> " << Brief(target) << "\n"; |
} |
} |