Index: src/ia32/codegen-ia32.cc |
diff --git a/src/ia32/codegen-ia32.cc b/src/ia32/codegen-ia32.cc |
index c006b869514b21d87c052802db55c5d26bbd55fe..b3ca0c41de47969f414963e62514ef150d6a1462 100644 |
--- a/src/ia32/codegen-ia32.cc |
+++ b/src/ia32/codegen-ia32.cc |
@@ -179,7 +179,7 @@ void CodeGenerator::Generate(CompilationInfo* info) { |
// Adjust for function-level loop nesting. |
ASSERT_EQ(0, loop_nesting_); |
- loop_nesting_ = info->loop_nesting(); |
+ loop_nesting_ = info->is_in_loop() ? 1 : 0; |
JumpTarget::set_compiling_deferred_code(false); |
@@ -358,7 +358,7 @@ void CodeGenerator::Generate(CompilationInfo* info) { |
} |
// Adjust for function-level loop nesting. |
- ASSERT_EQ(loop_nesting_, info->loop_nesting()); |
+ ASSERT_EQ(loop_nesting_, info->is_in_loop() ? 1 : 0); |
loop_nesting_ = 0; |
// Code generation state must be reset. |