Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index f79e23017e33cc5d1d774f1d4d98836b79cb0ac1..daacbd6026eed0c50623f7279312e78c03ef0159 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -1241,15 +1241,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 iterable is null or undefined. |
- __ CompareRoot(rax, Heap::kUndefinedValueRootIndex); |
- __ j(equal, loop_statement.break_label()); |
- __ CompareRoot(rax, Heap::kNullValueRootIndex); |
- __ j(equal, loop_statement.break_label()); |
- |
// var iterator = iterable[Symbol.iterator](); |
VisitForEffect(stmt->assign_iterator()); |