Index: src/arm/codegen-arm.cc |
diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc |
index d273e75988dcddde14ec8a50cdd2f5543fa28497..5156302bddbf7e2171fe8d89d8ed112cea9ac5eb 100644 |
--- a/src/arm/codegen-arm.cc |
+++ b/src/arm/codegen-arm.cc |
@@ -175,7 +175,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; |
{ |
CodeGenState state(this); |
@@ -339,7 +339,7 @@ void CodeGenerator::Generate(CompilationInfo* info) { |
} |
// Adjust for function-level loop nesting. |
- ASSERT(loop_nesting_ == info->loop_nesting()); |
+ ASSERT(loop_nesting_ == info->is_in_loop()? 1 : 0); |
loop_nesting_ = 0; |
// Code generation state must be reset. |