v8/test
Ross McIlroy 162402f9c5 [Compile] Move decision of whether an IIFE is oneshot into parser.
The decision as to whether to optimize an IIFE as oneshot depends on
whether it's outer scope is the script scope. During lazy compile, we
might have discarded scopes which don't need a context between the IIFE
and the script scope, which means we might treat an IIFE as oneshot,
even though initial eager compile treated it as non-oneshot. Both
bytecode flushing and lazy source positions rely on us generating the
same bytecode during lazy compile as eager compile, so we move the
decision into the parser where it happens once and is then stored in
the SFI for any future lazy compiles.

BUG=v8:8395,v8:8510

Change-Id: I88f1e74ad95d47a2636c393ceb1318d7d610055d
Reviewed-on: https://chromium-review.googlesource.com/c/1421841
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Commit-Queue: Ross McIlroy <rmcilroy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58996}
2019-01-22 15:19:39 +00:00
..
benchmarks [Test] CSuite benchmark runner 2018-12-21 13:15:57 +00:00
cctest [Compile] Move decision of whether an IIFE is oneshot into parser. 2019-01-22 15:19:39 +00:00
common [test] Refactor AllocateAssemblerBuffer 2019-01-17 11:57:07 +00:00
debugger [nojit] Add a few flag implications based on --jitless 2019-01-15 11:20:19 +00:00
fuzzer [logger] Untangle log.h includes 2019-01-22 10:56:52 +00:00
inspector [inspector] An Error with no stack description should not be empty 2019-01-16 23:59:04 +00:00
intl [Intl] Move GetOptions('localeMatcher') earlier 2019-01-19 00:09:51 +00:00
js-perf-test [test] add performance tests for String#startsWith 2019-01-17 08:23:06 +00:00
memory [snapshot] Remove the builtins snapshot 2018-10-31 10:18:28 +00:00
message [platform] Allow to memory-map empty files 2019-01-21 16:02:47 +00:00
mjsunit [parser] Fix storing has_data bit for inner function preparse data 2019-01-21 18:04:34 +00:00
mkgrokdump [nojit] Don't allocate executable memory in jitless mode 2019-01-10 10:55:48 +00:00
mozilla Revert "[runtime] Reduce spread/apply call max arguments" 2018-11-30 09:54:47 +00:00
preparser [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
test262 Update test262. 2019-01-19 01:19:54 +00:00
torque Revert "[torque] Implement safe initialization of classes through hidden structs" 2019-01-22 10:29:08 +00:00
unittests [logger] Untangle log.h includes 2019-01-22 10:56:52 +00:00
wasm-js [wasm] fix js-api table/get-set 2019-01-19 09:15:37 +00:00
wasm-spec-tests [nojit] Don't allocate executable memory in jitless mode 2019-01-10 10:55:48 +00:00
webkit Fixed typos 2019-01-08 07:31:02 +00:00
BUILD.gn Reland "[wasm] Add a new wasm-js testsuite to run js-api tests" 2018-10-18 20:18:55 +00:00