Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 99a0bf1f3c712d2e8ffedc9e0bc1d6eeae11dfaf..67a59638318844e977ebd41dc875b87bba26e457 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -14585,7 +14585,9 @@ bool Code::CanDeoptAt(Address pc) { |
for (int i = 0; i < deopt_data->DeoptCount(); i++) { |
if (deopt_data->Pc(i)->value() == -1) continue; |
Address address = code_start_address + deopt_data->Pc(i)->value(); |
- if (address == pc) return true; |
+ if (address == pc && deopt_data->AstId(i) != BailoutId::None()) { |
+ return true; |
+ } |
} |
return false; |
} |