hermes-windows/test/Optimizer
Aakash Patel 084cda1a2c Disable FuncSigOpts for generators and async functions.
Summary:
FuncSigOpts was optimizing all analyzable calls to generators and
async functions and replacing all arguments with `undefined`.
It does this because it doesn't see the use of parameters in the
inner function when analyzing the callsites for the outer function,
and thinks they are all unused.

Disable FuncSigOpts for generators and async functions because
they should be considered to be users of all their parameters.

Reviewed By: tmikov

Differential Revision: D26243257

fbshipit-source-id: c2e04ba80c1748163d2db48e1fa655d3496a5244
2021-02-04 14:19:44 -08:00
..
cjs use Hermes private builtins 2019-11-26 00:32:21 -08:00
es6 re-enable TDZDedup for the new TDZ scheme 2021-01-14 07:32:36 -08:00
SSA.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
auto-inline.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
bang_const.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
bug-simplifycfg.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
callee.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
cant-inline.js fix optimizations broken by copyRestArgs 2019-11-26 00:32:22 -08:00
codemotion.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
const_vars.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
cse_simple.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
custom_opt_pipeline.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
dead_code.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
dead_functions.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
dedup_jumptables.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
dump_use_list.js Specify -O0 in tests explicitly 2019-11-11 11:31:34 -08:00
func_sig_opts.js Disable FuncSigOpts for generators and async functions. 2021-02-04 14:19:44 -08:00
global_promotion.js.d Run license linter on all files 2020-11-18 10:49:09 -08:00
global_props.js Specify -O0 in tests explicitly 2019-11-11 11:31:34 -08:00
global_props.js.d Run license linter on all files 2020-11-18 10:49:09 -08:00
idom_crash.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
increment.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
init_once.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
irgen_materialize_bug.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
irgen_var_for_in.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
load_store_capture_vars.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
loadstore.js Specify -O0 in tests explicitly 2019-11-11 11:31:34 -08:00
lowering_to_loops.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
no_capture_store.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
non-strict-opts.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
nonstrict_readonly_globals.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
optimize_nan.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
phi_inder.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
promotion_on_switch.js Avoid /dev/null in LIT tests 2019-11-06 17:02:28 -08:00
recreate_cheap_values.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
regress_cfg1.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
regress_instsimplify_phi.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
regress_mem2reg_duplicate_phi_branches.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
regress_mem2reg_load.js don't promote loads from modified allocas 2019-12-26 17:49:05 -08:00
regress_no_stores.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
side_effect_bugs.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
simplify-this.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
simplify.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
simplify_switch.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
single_store_optz.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
stack-after-inline.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
stack-promotion-global-scope.js eliminate ThrowIfEmpty if operand can't be empty 2021-01-14 07:32:35 -08:00
switch_stmt.js Fix backward branching in SwitchImm. 2020-08-14 13:50:33 -07:00
toint.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
trampoline.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
type_infer.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
type_infer_fun_returns.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
unreachable_blocks.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
uselist_crash.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00
variables.js Specify -O0 in tests explicitly 2019-11-11 11:31:34 -08:00
void_const.js Codemod apply new JS license lint to Hermes 2019-10-21 12:36:13 -07:00