Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 5a6286593eacb53c32adbec9ffa5e6ed0731a69f..b868952fd829cf0a4877a7a599fda2522711e7da 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -11974,12 +11974,9 @@ bool JSFunction::Inlines(SharedFunctionInfo* candidate) { |
void JSFunction::MarkForOptimization() { |
Isolate* isolate = GetIsolate(); |
- // Do not optimize if function contains break points. |
- if (shared()->HasDebugInfo()) return; |
DCHECK(!IsOptimized()); |
DCHECK(shared()->allows_lazy_compilation() || |
!shared()->optimization_disabled()); |
- DCHECK(!shared()->HasDebugInfo()); |
set_code_no_write_barrier( |
isolate->builtins()->builtin(Builtins::kCompileOptimized)); |
// No write barrier required, since the builtin is part of the root set. |