Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart |
| =================================================================== |
| --- sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (revision 14554) |
| +++ sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (working copy) |
| @@ -917,7 +917,9 @@ |
| bool visitLoopInfo(HLoopBlockInformation info) { |
| HExpressionInformation condition = info.condition; |
| - bool isConditionExpression = isJSCondition(condition); |
| + bool isConditionExpression = condition == null |
|
floitsch
2012/11/06 12:13:33
bool isConditionExpression = (condition == null) |
ngeoffray
2012/11/06 12:19:14
Done.
|
| + ? true |
| + : isJSCondition(condition); |
| js.Loop loop; |
| @@ -1044,7 +1046,9 @@ |
| if (info.updates != null) { |
| generateStatements(info.updates); |
| } |
| - if (isConditionExpression) { |
| + if (condition == null) { |
| + push(newLiteralBool(false)); |
| + } else if (isConditionExpression) { |
| push(generateExpression(condition)); |
| } else { |
| generateStatements(condition); |