Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 6bb9fe218bc2bbc7be2aa2e9156c01b44e58d8e5..213118aed2d57504107e9b3cbd91d1e03fab005a 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -6692,6 +6692,12 @@ static bool IsFastLiteral(Handle<JSObject> boilerplate, |
int* max_properties, |
int* data_size, |
int* pointer_size) { |
+ if (boilerplate->map()->is_deprecated()) { |
+ Handle<Object> result = |
+ JSObject::TryMigrateInstance(boilerplate); |
+ if (result->IsSmi()) return false; |
+ } |
+ |
ASSERT(max_depth >= 0 && *max_properties >= 0); |
if (max_depth == 0) return false; |