Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index e312a853874f83d9e5952b6376331a0831f96d8a..ffabaf835e1ceb8732e3d4f525765f236f814aac 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -1281,6 +1281,8 @@ MaybeHandle<Object> StoreIC::Store(Handle<Object> object, |
Handle<String> name, |
Handle<Object> value, |
JSReceiver::StoreFromKeyed store_mode) { |
+ // TODO(verwaest): Let SetProperty do the migration, since storing a property |
+ // might deprecate the current map again, if value does not fit. |
if (MigrateDeprecated(object) || object->IsJSProxy()) { |
Handle<JSReceiver> receiver = Handle<JSReceiver>::cast(object); |
Handle<Object> result; |
@@ -1757,6 +1759,8 @@ KeyedAccessStoreMode KeyedStoreIC::GetStoreMode(Handle<JSObject> receiver, |
MaybeHandle<Object> KeyedStoreIC::Store(Handle<Object> object, |
Handle<Object> key, |
Handle<Object> value) { |
+ // TODO(verwaest): Let SetProperty do the migration, since storing a property |
+ // might deprecate the current map again, if value does not fit. |
if (MigrateDeprecated(object)) { |
Handle<Object> result; |
ASSIGN_RETURN_ON_EXCEPTION( |