v8/test
jochen 94492437d9 Fully deserialize the scope chain after parsing, not before
To avoid a dependency on the heap during parsing, we only create a scope chain
without linking to the associated ScopeInfo objects before parsing. This is
enough to avoid special cases during parsing of arrow functions / eval.

Looking at the outer scope's variables during parsing was only needed for hosting
sloppy block functions inside eval. To be able to do this now, we hoist for the
outer-most eval scope after parsing, in DeclarationScope::Analyze.

DeclarationScope::Analyze is also where we replace the outer scope chain with the
fully deserialized version, so variables can be resolved.

Also, this unifies background and foreground thread parsing, as we don't have to
worry about ScopeInfos getting accessed before we're back on the main thread.

BUG=v8:5215
R=verwaest@chromium.org,marja@chromium.org,adamk@chromium.org

Review-Url: https://codereview.chromium.org/2306413002
Cr-Commit-Position: refs/heads/master@{#39452}
2016-09-15 16:41:26 +00:00
..
benchmarks [gn] Move build to gypfiles 2016-04-29 10:11:11 +00:00
cctest Fully deserialize the scope chain after parsing, not before 2016-09-15 16:41:26 +00:00
common [wasm] C++ style: ErrorThrower& -> ErrorThrower* 2016-09-15 16:20:07 +00:00
fuzzer [wasm] C++ style: ErrorThrower& -> ErrorThrower* 2016-09-15 16:20:07 +00:00
inspector_protocol_parser_test [inspector] Remove inspector_protocol_parser_test target. 2016-08-11 16:45:14 +00:00
intl Remove --intl-extra flag 2016-09-15 02:55:33 +00:00
js-perf-test Remove the --ignition-generators flag. 2016-07-25 12:56:27 +00:00
memory [snapshot] support multiple contexts in the same snapshot. 2016-06-15 15:39:06 +00:00
message Reland of "[modules] Make duplicate export error deterministic." 2016-09-15 01:37:03 +00:00
mjsunit [V8][Wasm] Wasm throws. 2016-09-15 15:04:45 +00:00
mozilla [test] Deprecate test data download for most test suites 2016-08-08 12:39:48 +00:00
preparser [gn] Move build to gypfiles 2016-04-29 10:11:11 +00:00
promises-aplus Make test262 test runner check for which exception is thrown 2016-03-14 21:20:37 +00:00
simdjs [test] Deprecate test data download for most test suites 2016-08-08 12:39:48 +00:00
test262 [regexp] Avoid unneeded accesses to lastIndex 2016-09-14 07:39:44 +00:00
unittests Fully deserialize the scope chain after parsing, not before 2016-09-15 16:41:26 +00:00
webkit [turbofan] Also inline into try blocks. 2016-08-29 11:27:06 +00:00
bot_default.gyp [inspector] Remove inspector_protocol_parser_test target. 2016-08-11 16:45:14 +00:00
bot_default.isolate [inspector] Remove inspector_protocol_parser_test target. 2016-08-11 16:45:14 +00:00
BUILD.gn [inspector] Remove inspector_protocol_parser_test target. 2016-08-11 16:45:14 +00:00
default.gyp [inspector] Remove inspector_protocol_parser_test target. 2016-08-11 16:45:14 +00:00
default.isolate [inspector] Remove inspector_protocol_parser_test target. 2016-08-11 16:45:14 +00:00
optimize_for_size.gyp [gn] Move build to gypfiles 2016-04-29 10:11:11 +00:00
optimize_for_size.isolate [swarming] Roll luci-go/isolate to 5c67f7b670b5. 2016-01-19 17:03:56 +00:00
perf.gyp [gn] Move build to gypfiles 2016-04-29 10:11:11 +00:00
perf.isolate [Swarming] Isolate perf tests. 2016-02-15 11:17:18 +00:00