Index: src/frames.cc |
=================================================================== |
--- src/frames.cc (revision 4215) |
+++ src/frames.cc (working copy) |
@@ -346,6 +346,7 @@ |
void StackFrame::Cook() { |
Code* code = this->code(); |
+ ASSERT(code->IsCode()); |
for (StackHandlerIterator it(this, top_handler()); !it.done(); it.Advance()) { |
it.handler()->Cook(code); |
} |
@@ -356,6 +357,7 @@ |
void StackFrame::Uncook() { |
Code* code = this->code(); |
+ ASSERT(code->IsCode()); |
for (StackHandlerIterator it(this, top_handler()); !it.done(); it.Advance()) { |
it.handler()->Uncook(code); |
} |