• wingo@igalia.com's avatar
    Implement yield* (delegating yield) · 25c1d78e
    wingo@igalia.com authored
    Ideally this would have been implemented via desugaring at parse-time,
    but yield* is an expression, and its desugaring includes statements like
    while and try/catch.  We'd have to have BlockExpression in the AST to
    support that, and it's not worth it for this feature.
    
    So instead we implement all of the logic in
    FullCodeGenerator::VisitYield.  Delegating yield AST nodes now have a
    try handler index, for the try/catch.  Otherwise the implementation is
    straightforward.
    
    R=mstarzinger@chromium.org
    BUG=v8:2355
    TEST=mjsunit/harmony/generators-iteration
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14666 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    25c1d78e
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
include Loading commit data...
preparser Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
Makefile.nacl Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...