Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index 9f75af8eb3c27be29f79626fe66718d4ad1e5fb0..8977232bd74760eff3421fdebf73b950fd372e22 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -1210,6 +1210,8 @@ Handle<Code> LoadIC::CompileHandler(LookupIterator* lookup, |
isolate()); |
if (!getter->IsJSFunction()) break; |
if (!holder->HasFastProperties()) break; |
+ // When debugging we need to go the slow path to flood the accessor. |
+ if (!GetSharedFunctionInfo()->debug_info()->IsUndefined()) break; |
Handle<JSFunction> function = Handle<JSFunction>::cast(getter); |
if (!receiver->IsJSObject() && !function->IsBuiltin() && |
is_sloppy(function->shared()->language_mode())) { |
@@ -1786,6 +1788,8 @@ Handle<Code> StoreIC::CompileHandler(LookupIterator* lookup, |
TRACE_GENERIC_IC(isolate(), "StoreIC", "setter not a function"); |
break; |
} |
+ // When debugging we need to go the slow path to flood the accessor. |
+ if (!GetSharedFunctionInfo()->debug_info()->IsUndefined()) break; |
Handle<JSFunction> function = Handle<JSFunction>::cast(setter); |
CallOptimization call_optimization(function); |
NamedStoreHandlerCompiler compiler(isolate(), receiver_map(), holder); |