JavaScript:New to SpiderMonkey: Difference between revisions

Jump to navigation Jump to search
IRC => Matrix
m (Fix typo)
(IRC => Matrix)
Line 56: Line 56:


  cd SunSpider  
  cd SunSpider  
  ./sunspider --shell=../build_DBG.OBJ/dist/bin/js --run=30 --suite=sunspider-0.9.1  
  ./sunspider --shell=<path-to-shell>/dist/bin/js --run=30 --suite=sunspider-0.9.1  
  cd ..
  cd ..


===== Optimized build =====
===== Optimized build =====


Whoops, we benchmarked the debug version. Let's make an optimized build to test instead.
Whoops, we benchmarked the debug version. Let's make an optimized build. 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
  ac_add_options --disable-debug
cd build_OPT.OBJ
ac_add_options --enable-optimize
../configure --disable-debug --enable-optimize
make
cd ..


Repeat the sunspider steps above, and take note of the line that looks like:  
Repeat the sunspider steps above, and take note of the line that looks like:  
Line 98: Line 95:


  cd SunSpider  
  cd SunSpider  
  ./sunspider-compare-results --shell=../build_DBG.OBJ/js --suite=sunspider-0.9.1 FILE1-withoutPatch FILE2-withPatch
  ./sunspider-compare-results --shell=<path-to-shell>/dist/bin/js --suite=sunspider-0.9.1 FILE1-withoutPatch FILE2-withPatch


=== Get a real bug  ===
=== Get a real bug  ===
Line 104: Line 101:
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].
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 [irc://irc.mozilla.org/#jsapi #jsapi]). When it's done, repeat all the steps above. Then it's time to get your patch into the tree.
Fix the bug, updating the bug report with your progress, and asking questions as you go (either in the bug comments, or in the [https://chat.mozilla.org/#/room/#spidermonkey: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  ===
=== Submit a patch  ===
Confirmed users
33

edits

Navigation menu