Index: src/arm64/full-codegen-arm64.cc |
diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc |
index 5e2b129c5a832e6c2efb2ecca63aa4bb1d3e816a..5fbf283f009cd8772c9643ee6120797c407bd38d 100644 |
--- a/src/arm64/full-codegen-arm64.cc |
+++ b/src/arm64/full-codegen-arm64.cc |
@@ -1271,16 +1271,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. |
- Register iterator = x0; |
- __ JumpIfRoot(iterator, Heap::kUndefinedValueRootIndex, |
- loop_statement.break_label()); |
- __ JumpIfRoot(iterator, Heap::kNullValueRootIndex, |
- loop_statement.break_label()); |
- |
// var iterator = iterable[Symbol.iterator](); |
VisitForEffect(stmt->assign_iterator()); |