Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index 095b61498623e01b0c6d48c1f0bc8ee6e7343733..77e01967f6a80fe405c3a12f7043d2da88b66d88 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -1733,7 +1733,7 @@ Handle<Code> StoreIC::ComputeStoreMonomorphic(LookupResult* lookup, |
DescriptorArray* target_descriptors = transition->instance_descriptors(); |
PropertyDetails details = target_descriptors->GetDetails(descriptor); |
- if (details.type() != FIELD || details.attributes() != NONE) break; |
+ if (details.type() == CALLBACKS || details.attributes() != NONE) break; |
return isolate()->stub_cache()->ComputeStoreTransition( |
name, receiver, lookup, transition, strict_mode); |
@@ -2099,7 +2099,7 @@ Handle<Code> KeyedStoreIC::ComputeStoreMonomorphic(LookupResult* lookup, |
DescriptorArray* target_descriptors = transition->instance_descriptors(); |
PropertyDetails details = target_descriptors->GetDetails(descriptor); |
- if (details.type() == FIELD && details.attributes() == NONE) { |
+ if (details.type() != CALLBACKS && details.attributes() == NONE) { |
return isolate()->stub_cache()->ComputeKeyedStoreTransition( |
name, receiver, lookup, transition, strict_mode); |
} |