v8/test/mjsunit/harmony
mstarzinger@chromium.org 2816f19680 Add parser support for generators.
This patchset begins by adding support for "yield", which is unlike other tokens
in JS. In a generator, whether strict or classic, it is a syntactic keyword.
In classic mode it is an identifier. In strict mode it is reserved.

This patch adds YIELD as a token to the scanner, and adapts the preparser and
parser appropriately. It also parses "function*", indicating that a function is
actually a generator, for both eagerly and lazily parsed functions.

Currently "yield" just compiles as "return".

BUG=v8:2355
TEST=mjsunit/harmony/generators-parsing

Review URL: https://codereview.chromium.org/12646003
Patch from Andy Wingo <wingo@igalia.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14116 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2013-04-02 17:34:59 +00:00
..
block-conflicts.js Allocate block-scoped global bindings to global context. 2012-08-28 11:25:08 +00:00
block-const-assign.js Statically check for assignments to const in harmony mode. 2011-12-05 14:43:28 +00:00
block-early-errors.js Make let/const outside of the extended mode early errors (under harmony flag). 2011-11-29 06:38:04 +00:00
block-for.js Introduce extended mode. 2011-11-24 15:17:04 +00:00
block-lazy-compile.js Preliminary code for block scopes and block contexts. 2011-08-11 16:29:28 +00:00
block-leave.js Introduce extended mode. 2011-11-24 15:17:04 +00:00
block-let-crankshaft.js Optimize functions on a second thread. 2012-07-19 18:58:23 +00:00
block-let-declaration.js Introduce extended mode. 2011-11-24 15:17:04 +00:00
block-let-semantics.js Introduce extended mode. 2011-11-24 15:17:04 +00:00
block-scoping.js Introduce extended mode. 2011-11-24 15:17:04 +00:00
collections.js ES6: Add support for Set and Map clear method 2012-11-09 09:01:29 +00:00
debug-blockscopes.js Make sure that names of temporaries do not clash with real variables. 2012-10-05 12:47:34 +00:00
debug-evaluate-blockscopes.js Introduce extended mode. 2011-11-24 15:17:04 +00:00
debug-function-scopes.js Issue 2081: Expose function's (closure's) inner context in debugger. 2012-04-26 20:16:53 +00:00
generators-parsing.js Add parser support for generators. 2013-04-02 17:34:59 +00:00
module-linking.js Get rid of static module allocation, do it in code. 2012-11-22 10:25:22 +00:00
module-parsing.js Reject local module declarations. 2012-10-05 09:14:08 +00:00
module-recompile.js Implement proper module linking. 2012-07-09 08:59:03 +00:00
module-resolution.js Implement proper module linking. 2012-07-09 08:59:03 +00:00
object-observe.js ES6 symbols: prevent reflection, proxy, and observe APIs from leaking symbols 2013-03-22 17:27:44 +00:00
proxies-example-membrane.js A more holistic test case for proxies. 2011-11-10 16:24:43 +00:00
proxies-for.js Implement for-in loop for proxies. 2011-10-24 15:56:18 +00:00
proxies-function.js Fix handling of function proxies in higher-order array and string methods, 2012-01-20 13:59:37 +00:00
proxies-hash.js Implement Harmony sets and maps. 2011-10-25 14:14:56 +00:00
proxies-json.js Add fast path for FastProperty objects in JSON.stringify. 2012-11-05 12:59:35 +00:00
proxies-symbols.js ES6 symbols: prevent reflection, proxy, and observe APIs from leaking symbols 2013-03-22 17:27:44 +00:00
proxies.js Make __proto__ a foreign callback on Object.prototype. 2013-02-26 10:46:00 +00:00
symbols.js Always allocate symbols in old space. 2013-03-28 13:52:31 +00:00
typedarrays.js First steps towards implementing ArrayBuffer &co in V8 2013-03-28 12:50:18 +00:00
typeof.js Implement Harmony semantics for typeof null (behind a flag). 2011-08-10 12:12:06 +00:00