Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index 50a3a277a3bfa21746e172a14f9a00b9054a9320..e75e253d8e8270bf4d79be5b90e81855dc18abbf 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -1921,7 +1921,9 @@ MaybeObject* KeyedStoreIC::Store(State state, |
// Do not use ICs for objects that require access checks (including |
rafaelw
2012/11/07 09:10:10
Maybe update comment?
Michael Starzinger
2012/11/07 11:08:29
+1
rossberg
2012/11/07 12:23:49
Done.
|
// the global object). |
- bool use_ic = FLAG_use_ic && !object->IsAccessCheckNeeded(); |
+ bool use_ic = FLAG_use_ic && !object->IsAccessCheckNeeded() && |
+ !(FLAG_harmony_observation && object->IsJSObject() && |
+ JSObject::cast(*object)->map()->is_observed()); |
ASSERT(!(use_ic && object->IsJSGlobalProxy())); |
if (use_ic) { |