Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index 2a1f83d9e47ac16c98f71c4504ff46457412e6e5..afce4f78a8f7fdd8462fe37884daad75dae65e80 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -1719,7 +1719,8 @@ MaybeObject* StoreIC::Store(State state, |
// Strict mode doesn't allow setting non-existent global property. |
return ReferenceError("not_defined", name); |
} else if (FLAG_use_ic && |
- (lookup.IsNormal() || |
+ (!name->IsCacheable(isolate()) || |
+ lookup.IsNormal() || |
(lookup.IsField() && lookup.CanHoldValue(value)))) { |
Handle<Code> stub = strict_mode == kStrictMode |
? generic_stub_strict() : generic_stub(); |