Generator object "next" method takes optional send value
authorwingo@igalia.com <wingo@igalia.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 10 Jun 2013 09:26:18 +0000 (09:26 +0000)
committerwingo@igalia.com <wingo@igalia.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 10 Jun 2013 09:26:18 +0000 (09:26 +0000)
commitf88bca95766ae004051e44be5bc269e4b630dafc
treecc6921dd7c8e9c24bb93124ca95ccf6a92116579
parent601e1cf0d5048b39ca552e878f8ec00b702a0dec
Generator object "next" method takes optional send value

Update the generators implementation to make "next" also do the job of
what was previously called "send" by taking an optional argument.
Remove send, and do a bunch of renamings.

R=rossberg@chromium.org
BUG=v8:2355, v8:2715

Review URL: https://codereview.chromium.org/16136011

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15028 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
13 files changed:
src/arm/full-codegen-arm.cc
src/full-codegen.cc
src/generator.js
src/heap.h
src/hydrogen.cc
src/ia32/full-codegen-ia32.cc
src/objects.h
src/runtime.cc
src/runtime.h
src/x64/full-codegen-x64.cc
test/mjsunit/harmony/generators-iteration.js
test/mjsunit/harmony/generators-objects.js
test/mjsunit/harmony/generators-runtime.js