Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 218859fc22a20ecca645ee6319ac07ad8c53b55a..832d905a2f0d17114061882ef7ce3a072e8d7a2b 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -4759,6 +4759,9 @@ bool HOptimizedGraphBuilder::PropertyAccessInfo::LookupInPrototypes() { |
Handle<Map> map = map_; |
while (map->prototype()->IsJSObject()) { |
holder_ = handle(JSObject::cast(map->prototype())); |
+ if (holder_->map()->is_deprecated()) { |
+ JSObject::TryMigrateInstance(holder_); |
+ } |
map = Handle<Map>(holder_->map()); |
if (!CanInlinePropertyAccess(*map)) { |
lookup_.NotFound(); |