emscripten/tests/optimizer
Alon Zakai bec573bd3a
Implement SAFE_HEAP using acorn, and use it on user JS (#12450)
Previously we instrumented the compiled code, and also code in JS libraries
using {{{ makeGetValue }}} etc., but not arbitrary HEAP8 etc. usage in user
JS code. This fixed that by adding a safeHeap pass to the acorn optimizer.

This found a few issues in our JS code too, which have been fixed in
recent PRs already.
2020-10-07 11:41:23 -07:00
..
3154-output.js
3154.js
AJSDCE-output.js AJSDCE improvement: ignore trivial constructors (#10985) 2020-04-23 14:13:11 -07:00
AJSDCE.js AJSDCE improvement: ignore trivial constructors (#10985) 2020-04-23 14:13:11 -07:00
JSDCE-fors-output.js Use ESTree-based optimizer for core JS passes, to support ES6+ inputs (#7973) 2019-02-08 13:59:52 -08:00
JSDCE-fors.js Use ESTree-based optimizer for core JS passes, to support ES6+ inputs (#7973) 2019-02-08 13:59:52 -08:00
JSDCE-hasOwnProperty-output.js Use ESTree-based optimizer for core JS passes, to support ES6+ inputs (#7973) 2019-02-08 13:59:52 -08:00
JSDCE-hasOwnProperty.js
JSDCE-output.js Fix JSDCE of *.x (#10679) 2020-03-23 10:01:22 -07:00
JSDCE.js Fix JSDCE of *.x (#10679) 2020-03-23 10:01:22 -07:00
applyDCEGraphRemovals-output.js Use ESTree-based optimizer for core JS passes, to support ES6+ inputs (#7973) 2019-02-08 13:59:52 -08:00
applyDCEGraphRemovals.js Make asmLibraryArg a local variable "var asmLibraryArg = ...;" (#7989) 2019-02-05 20:51:38 +02:00
applyImportAndExportNameChanges-output.js Use ESTree-based optimizer for core JS passes, to support ES6+ inputs (#7973) 2019-02-08 13:59:52 -08:00
applyImportAndExportNameChanges.js Make asmLibraryArg a local variable "var asmLibraryArg = ...;" (#7989) 2019-02-05 20:51:38 +02:00
applyImportAndExportNameChanges2-output.js Use ESTree-based optimizer for core JS passes, to support ES6+ inputs (#7973) 2019-02-08 13:59:52 -08:00
applyImportAndExportNameChanges2.js Use ESTree-based optimizer for core JS passes, to support ES6+ inputs (#7973) 2019-02-08 13:59:52 -08:00
constructor-output.js Rewrite minifyGlobals JS optimizer pass (#12329) 2020-09-24 18:53:26 -07:00
constructor.js JS optimizer: properly minify special JS names like "constructor" (#11790) 2020-08-04 14:24:54 -07:00
emitDCEGraph-output.js
emitDCEGraph.js Fix an acorn optimizer regression from #10724 (#10749) 2020-03-21 14:29:03 -07:00
emitDCEGraph2-output.js
emitDCEGraph2.js Make asmLibraryArg a local variable "var asmLibraryArg = ...;" (#7989) 2019-02-05 20:51:38 +02:00
emitDCEGraph3-output.js
emitDCEGraph3.js Make asmLibraryArg a local variable "var asmLibraryArg = ...;" (#7989) 2019-02-05 20:51:38 +02:00
emitDCEGraph4-output.js
emitDCEGraph4.js Make asmLibraryArg a local variable "var asmLibraryArg = ...;" (#7989) 2019-02-05 20:51:38 +02:00
emitDCEGraph5-output.js
emitDCEGraph5.js Make asmLibraryArg a local variable "var asmLibraryArg = ...;" (#7989) 2019-02-05 20:51:38 +02:00
emittedJSPreservesParens-output.js Bugfix for uglify's reordering of multiplications (#8027) 2019-02-13 14:48:25 -08:00
emittedJSPreservesParens.js Bugfix for uglify's reordering of multiplications (#8027) 2019-02-13 14:48:25 -08:00
minimal-runtime-2-emitDCEGraph-output.js Properly metadce wasm exports in minimal runtime with asm = without var (#10724) 2020-03-19 09:29:32 -07:00
minimal-runtime-2-emitDCEGraph.js Properly metadce wasm exports in minimal runtime with asm = without var (#10724) 2020-03-19 09:29:32 -07:00
minimal-runtime-applyDCEGraphRemovals-output.js Clear out asm assignments in minimal runtime metadce (#10725) 2020-03-19 10:34:25 -07:00
minimal-runtime-applyDCEGraphRemovals.js Clear out asm assignments in minimal runtime metadce (#10725) 2020-03-19 10:34:25 -07:00
minimal-runtime-emitDCEGraph-output.js Properly handle metadce of MINIMAL_RUNTIME exports (#10663) 2020-03-17 14:38:02 -07:00
minimal-runtime-emitDCEGraph.js Properly handle metadce of MINIMAL_RUNTIME exports (#10663) 2020-03-17 14:38:02 -07:00
standalone-emitDCEGraph-output.js Warn on missing functions in metadce scanning instead of crashing (#10273) 2020-01-28 15:51:28 -08:00
standalone-emitDCEGraph.js Warn on missing functions in metadce scanning instead of crashing (#10273) 2020-01-28 15:51:28 -08:00
test-asanify-output.js ASan coverage for JavaScript too (#11147) 2020-05-14 09:20:55 -07:00
test-asanify.js ASan coverage for JavaScript too (#11147) 2020-05-14 09:20:55 -07:00
test-growableHeap-output.js Use wrapper functions for growable heap views (#9970) 2019-12-09 15:42:09 -08:00
test-growableHeap.js Use wrapper functions for growable heap views (#9970) 2019-12-09 15:42:09 -08:00
test-js-optimizer-asm-last-output.js Regex in fixDotZero was fixed to accept hex numbers that end in a-f (#8076) 2019-02-13 10:37:05 -08:00
test-js-optimizer-asm-last-output2.js Regex in fixDotZero was fixed to accept hex numbers that end in a-f (#8076) 2019-02-13 10:37:05 -08:00
test-js-optimizer-asm-last-output3.js Regex in fixDotZero was fixed to accept hex numbers that end in a-f (#8076) 2019-02-13 10:37:05 -08:00
test-js-optimizer-asm-last.js Regex in fixDotZero was fixed to accept hex numbers that end in a-f (#8076) 2019-02-13 10:37:05 -08:00
test-js-optimizer-asm-output.js
test-js-optimizer-asm-relocate-output.js
test-js-optimizer-asm-relocate.js
test-js-optimizer-asm.js
test-js-optimizer-minifyLocals-output.js Fix minifyLocals on functions with special JS names; see #11273 (#11417) 2020-06-15 17:25:23 -07:00
test-js-optimizer-minifyLocals.js Fix minifyLocals on functions with special JS names; see #11273 (#11417) 2020-06-15 17:25:23 -07:00
test-js-optimizer-output.js
test-js-optimizer.js
test-safeHeap-output.js Implement SAFE_HEAP using acorn, and use it on user JS (#12450) 2020-10-07 11:41:23 -07:00
test-safeHeap.js Implement SAFE_HEAP using acorn, and use it on user JS (#12450) 2020-10-07 11:41:23 -07:00
test-unsignPointers-output.js Add internal CAN_ADDRESS_2GB flag which is set for 2GB+ heap support (#10601) 2020-03-25 17:40:05 -07:00
test-unsignPointers.js Add internal CAN_ADDRESS_2GB flag which is set for 2GB+ heap support (#10601) 2020-03-25 17:40:05 -07:00
wasm2js-output.js Rewrite minifyGlobals JS optimizer pass (#12329) 2020-09-24 18:53:26 -07:00
wasm2js.js Rewrite minifyGlobals JS optimizer pass (#12329) 2020-09-24 18:53:26 -07:00