Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index e974a0e3740c828b4635822b22d5b3e35b86ded5..811b2ffbd1d963abe14460119c93c00d5c1d8ffb 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1542,6 +1542,13 @@ MaybeObject* JSObject::MigrateInstance() { |
} |
+MaybeObject* JSObject::TryMigrateInstance() { |
+ Map* new_map = map()->CurrentMapForDeprecated(); |
+ if (new_map == NULL) return Smi::FromInt(0); |
+ return MigrateToMap(new_map); |
+} |
+ |
+ |
Handle<String> JSObject::ExpectedTransitionKey(Handle<Map> map) { |
AssertNoAllocation no_gc; |
if (!map->HasTransitionArray()) return Handle<String>::null(); |