| Index: src/compiler/frame-elider.cc
|
| diff --git a/src/compiler/frame-elider.cc b/src/compiler/frame-elider.cc
|
| index bb35643f5dc965c612bc0d9a73f5982a4b9b0aff..a111d32652c05656077490a3a58b3d28d0e41b32 100644
|
| --- a/src/compiler/frame-elider.cc
|
| +++ b/src/compiler/frame-elider.cc
|
| @@ -17,13 +17,13 @@ void FrameElider::Run() {
|
| MarkDeConstruction();
|
| }
|
|
|
| -
|
| void FrameElider::MarkBlocks() {
|
| for (InstructionBlock* block : instruction_blocks()) {
|
| if (block->needs_frame()) continue;
|
| for (int i = block->code_start(); i < block->code_end(); ++i) {
|
| - if (InstructionAt(i)->IsCall() ||
|
| - InstructionAt(i)->opcode() == ArchOpcode::kArchDeoptimize) {
|
| + const Instruction* instr = InstructionAt(i);
|
| + if (instr->IsCall() || instr->IsDeoptimizeCall() ||
|
| + instr->arch_opcode() == ArchOpcode::kArchStackPointer) {
|
| block->mark_needs_frame();
|
| break;
|
| }
|
| @@ -50,6 +50,8 @@ void FrameElider::MarkDeConstruction() {
|
| for (RpoNumber& succ : block->successors()) {
|
| if (!InstructionBlockAt(succ)->needs_frame()) {
|
| DCHECK_EQ(1U, block->SuccessorCount());
|
| + DCHECK(!code_->InstructionAt(block->last_instruction_index())
|
| + ->IsBranch());
|
| block->mark_must_deconstruct_frame();
|
| }
|
| }
|
|
|