Changes

Jump to: navigation, search

JavaScript:New to SpiderMonkey

145 bytes added, 15:17, 23 April 2020
IRC => Matrix
cd SunSpider
./sunspider --shell=../build_DBG.OBJ<path-to-shell>/dist/bin/js --run=30 --suite=sunspider-0.9.1
cd ..
===== Optimized build =====
Whoops, we benchmarked the debug version. Let's make an optimized build to test instead.Follow the [https://firefox-source-docs.mozilla.org/js/build.html#optimized-builds build instructions] and make sure your MOZCONFIG has:
mkdir build_OPT.OBJ cd build_OPT.OBJ ../configure ac_add_options --disable-debug ac_add_options --enable-optimize make cd ..
Repeat the sunspider steps above, and take note of the line that looks like:
cd SunSpider
./sunspider-compare-results --shell=..<path-to-shell>/build_DBG.OBJdist/bin/js --suite=sunspider-0.9.1 FILE1-withoutPatch FILE2-withPatch
=== Get a real bug ===
At this point, you've seen nearly everything you need to do hack on SpiderMonkey. So it's time to get a real bug to work on. You can get a bug on [http://www.joshmatthews.net/bugsahoy/?jseng=1&unowned=1 Bugs Ahoy].
Fix the bug, updating the bug report with your progress, and asking questions as you go (either in the bug comments, or in the [irchttps://ircchat.mozilla.org/#jsapi /room/#jsapispidermonkey:mozilla.org SpiderMonkey room]on Matrix). When it's done, repeat all the steps above. Then it's time to get your patch into the tree.
=== Submit a patch ===
Confirm
33
edits

Navigation menu