Reviewers: rossberg,

Message:
PTAL. The change to the AST is kinda nasty but seemed to be the smallest change
I could make to do the right thing (namely, shortcutting the loop if the
iterable is null or undefined, and otherwise binding the iterator to
iterable[@@iterator]()).

Description:
For-of calls [Symbol.iterator]() on RHS to get iterator

[email protected]
BUG=http://code.google.com/p/v8/issues/detail?id=2735

Please review this at https://codereview.chromium.org/332663004/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+136, -112 lines):
  M include/v8.h
  M src/arm/full-codegen-arm.cc
  M src/arm64/full-codegen-arm64.cc
  M src/array-iterator.js
  M src/ast.h
  M src/bootstrapper.cc
  M src/contexts.h
  M src/flag-definitions.h
  M src/generator.js
  M src/heap.h
  M src/ia32/full-codegen-ia32.cc
  M src/mips/full-codegen-mips.cc
  M src/parser.cc
  M src/x64/full-codegen-x64.cc
  M src/x87/full-codegen-x87.cc
  M test/mjsunit/harmony/iteration-semantics.js


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to