| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 4ebcb2a7b4730b2c11fe99e9822661ebb22eace1..85b14f46a49751b1c4e400497ca85dc5e9e67295 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -10155,8 +10155,9 @@ void SharedFunctionInfo::DisableOptimization(BailoutReason reason) {
|
| // regenerated and set on the shared function info it is marked as
|
| // non-optimizable if optimization is disabled for the shared
|
| // function info.
|
| + DCHECK(reason != kNoReason);
|
| set_optimization_disabled(true);
|
| - set_bailout_reason(reason);
|
| + set_disable_optimization_reason(reason);
|
| // Code should be the lazy compilation stub or else unoptimized. If the
|
| // latter, disable optimization for the code too.
|
| DCHECK(code()->kind() == Code::FUNCTION || code()->kind() == Code::BUILTIN);
|
|
|