Index: src/crankshaft/typing.cc |
diff --git a/src/crankshaft/typing.cc b/src/crankshaft/typing.cc |
index 5dd187bbca73a24799be3e057e061d94129b35e4..49bc2c7ded92daf1fbc583db0636887354d7b354 100644 |
--- a/src/crankshaft/typing.cc |
+++ b/src/crankshaft/typing.cc |
@@ -350,6 +350,13 @@ void AstTyper::VisitNativeFunctionLiteral(NativeFunctionLiteral* expr) { |
} |
+void AstTyper::VisitDoExpression(DoExpression* expr) { |
+ RECURSE(VisitBlock(expr->block())); |
+ RECURSE(VisitVariableProxy(expr->result())); |
+ NarrowType(expr, expr->result()->bounds()); |
+} |
+ |
+ |
void AstTyper::VisitConditional(Conditional* expr) { |
// Collect type feedback. |
expr->condition()->RecordToBooleanTypeFeedback(oracle()); |