| Index: src/arm64/lithium-codegen-arm64.cc
|
| diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc
|
| index 7cb6cb64bdd3b80ebb31a1be1b380891d7dc7039..b8f2e6935c9539e3af16590d9700c8ab258ae646 100644
|
| --- a/src/arm64/lithium-codegen-arm64.cc
|
| +++ b/src/arm64/lithium-codegen-arm64.cc
|
| @@ -981,7 +981,6 @@ void LCodeGen::DeoptimizeBranch(
|
| }
|
|
|
| DCHECK(environment->HasBeenRegistered());
|
| - DCHECK(info()->IsOptimizing() || info()->IsStub());
|
| int id = environment->deoptimization_index();
|
| Address entry =
|
| Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type);
|
| @@ -1132,7 +1131,7 @@ void LCodeGen::DeoptimizeIfBitClear(Register rt, int bit, LInstruction* instr,
|
|
|
|
|
| void LCodeGen::EnsureSpaceForLazyDeopt(int space_needed) {
|
| - if (!info()->IsStub()) {
|
| + if (info()->ShouldEnsureSpaceForLazyDeopt()) {
|
| // Ensure that we have enough space after the previous lazy-bailout
|
| // instruction for patching the code here.
|
| intptr_t current_pc = masm()->pc_offset();
|
|
|