Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index cd66945ab708b8323a1f3a28f5c976818c9b4c82..aa50271689788da3c0bcca20787295f3883cb0ab 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -1331,8 +1331,8 @@ void BytecodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
// The loop |
VisitIterationHeader(stmt, &loop_builder); |
builder()->SetExpressionAsStatementPosition(stmt->each()); |
- builder()->ForInDone(index, cache_length); |
- loop_builder.BreakIfTrue(); |
+ builder()->ForInContinue(index, cache_length); |
+ loop_builder.BreakIfFalse(); |
DCHECK(Register::AreContiguous(cache_type, cache_array)); |
FeedbackVectorSlot slot = stmt->ForInFeedbackSlot(); |
builder()->ForInNext(receiver, index, cache_type, feedback_index(slot)); |