Changes

Jump to: navigation, search

JavaScript:New to SpiderMonkey

651 bytes removed, 15:10, 23 April 2020
Use mach-based workflow
=== Build the js shell ===
Most of the time, you'll be working with the Javascript JavaScript shell, instead of the full Firefox browser. So build See the shell[https:   cd spidermonkey/js/src cp configure.in configure && chmod +x configure # or autoconf2.13 or autoconf-2.13 mkdir build_DBG.OBJ cd build_DBG.OBJ ../configure firefox-source-enable-debug --disable-optimize make # or make -j8 cd .. If this doesn't work, refer to [https://developerdocs.mozilla.org/enjs/SpiderMonkey/Build_Documentation the build.html SpiderMonkey build documentation]for how to do that.
=== Fix something ===
Having made the change, build the shell again.
make -C build_DBG.OBJ/mach build
==== Testing your changes ====
It builds. Hurray. Time to run the tests to check you haven't broken anything.
./mach jit-test/jit_test.py build_DBG.OBJ/dist/bin/js(The location of the shell has changed, it used to be build_DBG.OBJ/js)
The jit-tests are pretty quick, and should give you an idea if you've gotten something wrong. Assuming nothing goes wrong, try the ref-tests:
tests./mach jstests.py build_DBG.OBJ/dist/bin/js
Note that some of these tests fail depending on the timezone and locale they're run in, so if you get any errors that don't seem related to your changes, re-run the tests with a shell build without your changes applied and compare the results.
==== Benchmark your changes ====
Confirm
33
edits

Navigation menu