Commit da97b701 authored by mtrofin's avatar mtrofin Committed by Commit bot

[turbofan] Frame deconstruction self-validation.

BUG=

Review URL: https://codereview.chromium.org/1848783003

Cr-Commit-Position: refs/heads/master@{#35178}
parent 3cb6a22a
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment