Index: src/ia32/codegen-ia32.cc |
=================================================================== |
--- src/ia32/codegen-ia32.cc (revision 4177) |
+++ src/ia32/codegen-ia32.cc (working copy) |
@@ -3766,7 +3766,7 @@ |
// Set the type of the loop variable to smi before compiling the test |
// expression if we are in a fast smi loop condition. |
- if (node->is_fast_smi_loop()) { |
+ if (node->is_fast_smi_loop() && has_valid_frame()) { |
// Set number type of the loop variable to smi. |
Slot* slot = node->loop_variable()->slot(); |
ASSERT(slot->type() == Slot::LOCAL); |