Remove BinAST prototype
Categories
(Core :: JavaScript Engine, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: tcampbell, Assigned: tcampbell)
References
Details
Attachments
(6 files, 2 obsolete files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
119 bytes,
text/plain
|
arai
:
review+
|
Details |
The BinAST code in tree is a prototype that is not practical to ship in its current form and interferes with ongoing work. Until the ongoing SmooshMonkey and Stencil work ships, we should remove the BinAST prototype from tree to avoid wasting time maintaining an intermediate form.
Any future BinAST work will likely be based on the upcoming SmooshMonkey parser/emitter. The encoder and reference designs continue to live on in https://github.com/binast for the meanwhile.
Code to remove:
- js/src/frontend/BinAST* and all code guarded by
JS_BUILD_BINAST
- These will all need major rewrites before we ship them
- js/src/jsapi-test/tests/binast
- These are mostly auto-generated with a few hand-written tests
- js/src/jit-test/tests/binast
- These were auto-generated for normal jit-tests
- Vendored Rust code used by js/src/frontend/binast
- These remain on external repositories
Automation to remove:
- The BinAST tests in
SM(p)
andSM(cgc)
builds - The Raptor
Rap(inst-b)
,Rap(inst-b-c)
performance tasks
Assignee | ||
Comment 1•8 months ago
|
||
Remove the BinAST tests from following jobs:
- SM(p)
- SM(cgc)
Remove the BinAST performance tests:
- binast-instagram
Skip the WPT BinAST tests
Updated•8 months ago
|
Assignee | ||
Comment 2•8 months ago
|
||
Depends on D77919
Assignee | ||
Comment 3•8 months ago
|
||
Remove directories:
js/src/jsapi-tests/binast/
js/src/jit-test/tests/binast/
Remove additional tests:
js/src/fuzz-tests/testBinASTReader.cpp
js/src/jsapi-tests/testBinASTReader.cpp
Depends on D77920
Assignee | ||
Comment 4•8 months ago
|
||
Also remove js/src/frontend/BinAST* sources.
Depends on D77944
Assignee | ||
Comment 5•8 months ago
|
||
Depends on D77945
Assignee | ||
Comment 6•8 months ago
|
||
Depends on D77946
Comment 7•8 months ago
|
||
(CC-ing the persons who worked on BinAST)
Ted, any reason why this bug should be confidential?
Assignee | ||
Comment 8•8 months ago
|
||
I'm waiting on a few more discussions to happen and final approval that this is the best approach. I'll make sure the bug is open before any reviews actually start. These patches were to understand the scope of change.
Updated•8 months ago
|
Assignee | ||
Comment 9•7 months ago
|
||
We intend to remove the prototype code to reduce development complexity of Bug 1619282 and Bug 1601332. In future we will revisit what we will about BinAST implementation (which would likely be based on the new frontend).
Assignee | ||
Updated•7 months ago
|
Updated•7 months ago
|
Assignee | ||
Comment 10•7 months ago
|
||
Removing the jit-tests will need to happen manually (because it is too big for Lando) by removing the following paths:
js/src/jsapi-tests/binast/
js/src/jit-test/tests/binast/
I'll need a sheriff to do this manually once the rest of this lands. This does not need to happen at the same time though.
Assignee | ||
Comment 11•7 months ago
|
||
Marking leave-open until Comment 10 is handled.
Comment 12•7 months ago
|
||
Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ad613fa94a83 Stop running BinAST tests in automation r=perftest-reviewers,Bebe,sfink https://hg.mozilla.org/integration/autoland/rev/1c245d4e8244 Disable BinAST prototype r=arai https://hg.mozilla.org/integration/autoland/rev/bcc2728b5ca5 Remove code guarded by JS_BUILD_BINAST r=arai https://hg.mozilla.org/integration/autoland/rev/d210a60ad435 Remove more references to BinAST code r=arai https://hg.mozilla.org/integration/autoland/rev/d307b00c7e1b Remove BinAST Rust modules r=arai,emilio
Comment 13•7 months ago
|
||
Backed out for build bustages
backout: https://hg.mozilla.org/integration/autoland/rev/fa6512a9584891f866030fe0d70abbf4d86f7451
failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=306646121&repo=autoland&lineNumber=18724
Assignee | ||
Comment 14•7 months ago
|
||
The dom staticpref include in nsJSUtils.h
ends up being used in other places. This was regressed by Bug 1508306, but I'll put the header back in this stack so this can be landed.
Comment 15•7 months ago
|
||
Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6ea7e854f8c7 Stop running BinAST tests in automation r=perftest-reviewers,Bebe,sfink https://hg.mozilla.org/integration/autoland/rev/37322ca8d1ed Disable BinAST prototype r=arai https://hg.mozilla.org/integration/autoland/rev/2035099033f2 Remove code guarded by JS_BUILD_BINAST r=arai https://hg.mozilla.org/integration/autoland/rev/0a60834b51a7 Remove more references to BinAST code r=arai https://hg.mozilla.org/integration/autoland/rev/36790714faf2 Remove BinAST Rust modules r=arai,emilio
Assignee | ||
Comment 16•7 months ago
|
||
Comment 17•7 months ago
|
||
bugherder |
Assignee | ||
Comment 18•7 months ago
|
||
Here is the patch to remove the jit-test. It removes the follow directories:
- js/src/jsapi-tests/binast/
- js/src/jit-test/tests/binast/
You should be able to r+ this on bugzilla and we will have a sheriff graft from try to autoland.
Comment 19•7 months ago
|
||
Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b2ce549cea27 Add missing StaticPrefs_dom.h include in DocumentLoadListener r=necko-reviewers,nika,valentin
Comment 20•7 months ago
|
||
Backed out for causing build bustages on PermissionDelegateHandler.cpp.
Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=306749697&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/c7fc7af7052239d58cfd6bcd6e2f2fa31de2b561
Updated•7 months ago
|
Assignee | ||
Comment 21•7 months ago
|
||
Will leave the StaticPrefs_dom.h
header alone. Too many accidental uses have slipped into the unified builds depending on chunking.
Comment 22•7 months ago
|
||
Comment on attachment 9157489 [details] Bug 1642708 - Remove generated BinAST tests sorry for the delay.
Comment 23•7 months ago
|
||
Pushed by ncsoregi@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d98c157b7e08 Remove generated BinAST tests. r=arai CLOSED TREE
Assignee | ||
Comment 24•7 months ago
|
||
After this last patch merges to m-c, this issue can be closed out.
Comment 25•7 months ago
|
||
bugherder |
Description
•