Index: src/macro-assembler.h |
diff --git a/src/macro-assembler.h b/src/macro-assembler.h |
index 230c68ab0e47a67826a7ddcf51b083b76fe423b3..97f9dbdde52f3c8508b2d1b83f284bdf15a38ae6 100644 |
--- a/src/macro-assembler.h |
+++ b/src/macro-assembler.h |
@@ -124,6 +124,7 @@ class FrameScope { |
// scope, the MacroAssembler is still marked as being in a frame scope, and |
// the code will be generated again when it goes out of scope. |
void GenerateLeaveFrame() { |
+ ASSERT(type_ != StackFrame::MANUAL && type_ != StackFrame::NONE); |
masm_->LeaveFrame(type_); |
} |