| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index 33fa0f4806a556e5f33c8f8735d7b56eb2f2c556..3124817b1d886b0022d8a98e254bfe4ab63b27a8 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -3274,6 +3274,10 @@ void HGraphBuilder::VisitForInStatement(ForInStatement* stmt) {
|
| return Bailout("ForInStatement optimization is disabled");
|
| }
|
|
|
| + if (!oracle()->IsForInFastCase(stmt)) {
|
| + return Bailout("ForInStatement is not fast case");
|
| + }
|
| +
|
| if (!stmt->each()->IsVariableProxy() ||
|
| !stmt->each()->AsVariableProxy()->var()->IsStackLocal()) {
|
| return Bailout("ForInStatement with non-local each variable");
|
|
|