Index: src/compiler/code-generator.cc |
diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc |
index 08a7d2ef081eddad742fda6a2874b9b45a30e051..086da560e4fcd80ecf3a322f987c85ecc82df132 100644 |
--- a/src/compiler/code-generator.cc |
+++ b/src/compiler/code-generator.cc |
@@ -312,6 +312,10 @@ void CodeGenerator::AssembleBlock(const InstructionBlock* block) { |
void CodeGenerator::AssembleInstruction(Instruction* instr, |
const InstructionBlock* block) { |
AssembleGaps(instr); |
+ DCHECK_IMPLIES( |
+ block->must_deconstruct_frame(), |
+ instr != code()->InstructionAt(block->last_instruction_index()) || |
+ instr->IsRet() || instr->IsJump()); |
if (instr->IsJump() && block->must_deconstruct_frame()) { |
AssembleDeconstructFrame(); |
} |