Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 03ceab9a875c96ad374c1ce5fd39165bfd36f7c5..6aa2772853903b8d93120fb86a8a32b18caa8f26 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -1207,15 +1207,6 @@ void FullCodeGenerator::VisitForOfStatement(ForOfStatement* stmt) { |
Iteration loop_statement(this, stmt); |
increment_loop_depth(); |
- // var iterable = subject |
- VisitForAccumulatorValue(stmt->assign_iterable()); |
- |
- // As with for-in, skip the loop if the iterator is null or undefined. |
- __ CompareRoot(eax, Heap::kUndefinedValueRootIndex); |
- __ j(equal, loop_statement.break_label()); |
- __ CompareRoot(eax, Heap::kNullValueRootIndex); |
- __ j(equal, loop_statement.break_label()); |
- |
// var iterator = iterable[Symbol.iterator](); |
VisitForEffect(stmt->assign_iterator()); |