-
Notifications
You must be signed in to change notification settings - Fork 22
SpiderMonkey
arai-a edited this page Jun 17, 2020
·
17 revisions
- Clone
jsparagus(referred as$JSPARAGUSbelow) -
Setup development environment for Firefox.
- NOTE: While running
bootstrap.py, clonemozilla-centralormozilla-unified(referred as$MOZROOTbelow) next tojsparagus
- NOTE: While running
cd $JSPARAGUS
make all
cargo run --bin smoosh_tools build
cargo run --bin smoosh_tools build does the following internally:
- Modify
$MOZROOT/js/src/frontend/smoosh/Cargo.tomlto point local jsparagus clone - Run
./mach buildusing$JSPARAGUS/mozconfigs/smoosh-debug- the important config here is
--enable-smoosh
- the important config here is
cd $JSPARAGUS
cargo run --bin smoosh_tools shell
or, directly run the binary by:
$MOZROOT/obj-smoosh-debug/dist/bin/js --smoosh
cd $JSPARAGUS
cargo run --bin smoosh_tools test
cargo run --bin smoosh_tools test does the following internally:
- Run
./mach jstestusing$JSPARAGUS/mozconfigs/smoosh-debug - Run
./mach jit-testusing$JSPARAGUS/mozconfigs/smoosh-debug
cd $JSPARAGUS
cargo run --bin smoosh_tools bump
And then add the updated files and commit it.
cargo run --bin smoosh_tools bump does the following internally:
- Modify
$MOZROOT/js/src/frontend/smoosh/Cargo.tomlto point the latestci_generatedbranch HEAD - Run
./mach vendor rustto re-vendor jsparagus