v8/test
adamk 7485da7ace Don't crash when preparsing destructured arguments
This adds the materialized literal count accumulated while parsing the
parameters (in the parser proper) to that accumulated by the preparser.

This should have been caught in cctest/test-parsing, but it's not covered
because the parsing tests call directly into the preparser rather than
using Parser::ParseFunctionLiteral (which fully-parses the parameters
and then calls into the preparser to skip over the function body).

Note that this further-inflates the materialized literal count for
functions with destructured arguments, since some of the counted
literals are actually binding patterns. But that's not specific to
binding patterns in formal parameters: it happens in function bodies, too.

BUG=v8:4400,v8:4407
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#30868}
2015-09-22 17:43:43 +00:00
..
benchmarks [test] Key variant flags by variant name everywhere. 2015-07-29 07:14:30 +00:00
cctest [turbofan] Add support for reinterpreting integers as floating point and vice versa. 2015-09-21 14:01:05 +00:00
intl Reland "[test] Fix cctest path separators on Windows" 2015-09-17 13:01:12 +00:00
js-perf-test Remove on-by-default flag --harmony-object 2015-09-18 18:37:57 +00:00
memory Correctly name memory stat for context snapshot size. 2015-04-10 22:36:02 +00:00
message Reland "[test] Fix cctest path separators on Windows" 2015-09-17 13:01:12 +00:00
mjsunit Don't crash when preparsing destructured arguments 2015-09-22 17:43:43 +00:00
mozilla Reland "[test] Fix cctest path separators on Windows" 2015-09-17 13:01:12 +00:00
preparser [test] Key variant flags by variant name everywhere. 2015-07-29 07:14:30 +00:00
promises-aplus Remove unnecessary coupling between Promise tests and Object.observe 2015-07-21 17:17:07 +00:00
simdjs Remove on-by-default flag --harmony-object 2015-09-18 18:37:57 +00:00
test262 Reland "[test] Fix cctest path separators on Windows" 2015-09-17 13:01:12 +00:00
test262-es6 Stage sloppy block-scoped functions (Annex B 3.3) 2015-09-21 16:30:34 +00:00
unittests [turbofan] Get rid of type lower bounds. 2015-09-16 11:55:43 +00:00
webkit Reland "[test] Fix cctest path separators on Windows" 2015-09-17 13:01:12 +00:00