| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index f41407f2864f4ef28206870ffc99c36ae86b827b..432b7b87e9c2766d0b4d3fd6912b2b70ef610033 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -14471,7 +14471,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;
|
| }
|
|
|