Conversation
sbc100
left a comment
There was a problem hiding this comment.
Do we still need the JS library technique of using {{{ makeGetValue }}} or can that now be removed in favor of this?
tests/test_other.py
Outdated
|
|
||
| def test_js_optimizer(self): | ||
| ACORN_PASSES = ['JSDCE', 'AJSDCE', 'applyImportAndExportNameChanges', 'emitDCEGraph', 'applyDCEGraphRemovals', 'growableHeap', 'unsignPointers', 'asanify'] | ||
| ACORN_PASSES = ['JSDCE', 'AJSDCE', 'applyImportAndExportNameChanges', 'emitDCEGraph', 'applyDCEGraphRemovals', 'growableHeap', 'unsignPointers', 'asanify', 'safeHeap'] |
There was a problem hiding this comment.
Time to split this one one-element-per-line, or at least multiple lines?
We can maybe remove it, yeah. There is some advantage to the makeGetValue notation, in that you don't need to write the |
I wasn't suggesting removing |
|
Oh, yes, it is redundant atm. Rather than remove it, though, I'd prefer to eventually remove |
Previously we instrumented the compiled code, and also code in JS libraries
using
{{{ makeGetValue }}}etc., but not arbitraryHEAP8etc. usage in userJS code. This fixed that by adding a
safeHeappass to the acorn optimizer.This found a few issues in our JS code too, which have been fixed in
recent PRs already.