Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index c66e343514430a3630b1640063b415a785301305..d249192a1709fd401be5f4c78d757046e4e04663 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -1200,7 +1200,7 @@ Handle<Code> LoadIC::CompileHandler(LookupIterator* lookup, |
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; |
+ if (GetSharedFunctionInfo()->HasDebugInfo()) break; |
Handle<JSFunction> function = Handle<JSFunction>::cast(getter); |
if (!receiver->IsJSObject() && !function->IsBuiltin() && |
is_sloppy(function->shared()->language_mode())) { |
@@ -1782,7 +1782,7 @@ Handle<Code> StoreIC::CompileHandler(LookupIterator* lookup, |
break; |
} |
// When debugging we need to go the slow path to flood the accessor. |
- if (!GetSharedFunctionInfo()->debug_info()->IsUndefined()) break; |
+ if (GetSharedFunctionInfo()->HasDebugInfo()) break; |
Handle<JSFunction> function = Handle<JSFunction>::cast(setter); |
CallOptimization call_optimization(function); |
NamedStoreHandlerCompiler compiler(isolate(), receiver_map(), holder); |