diff --git a/src/compiler.cc b/src/compiler.cc index 6be922ceed..bac0a25096 100644 --- a/src/compiler.cc +++ b/src/compiler.cc @@ -708,20 +708,12 @@ void CodeGenSelector::VisitSwitchStatement(SwitchStatement* stmt) { void CodeGenSelector::VisitDoWhileStatement(DoWhileStatement* stmt) { - // We do not handle loops with breaks or continue statements in their - // body. We will bailout when we hit those statements in the body. - ProcessExpression(stmt->cond(), Expression::kTest); - CHECK_BAILOUT; - Visit(stmt->body()); + BAILOUT("DoWhileStatement"); } void CodeGenSelector::VisitWhileStatement(WhileStatement* stmt) { - // We do not handle loops with breaks or continue statements in their - // body. We will bailout when we hit those statements in the body. - ProcessExpression(stmt->cond(), Expression::kTest); - CHECK_BAILOUT; - Visit(stmt->body()); + BAILOUT("WhileStatement"); }