Revision 297275 of SpiderMonkey

  • Revision slug: SpiderMonkey
  • Revision title: SpiderMonkey
  • Revision id: 297275
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment
Tags: 

Revision Content

SpiderMonkey is Mozilla's JavaScript engine written in C/C++. It is used in various Mozilla products, including Firefox, and is available under MPL/GPL/LGPL tri-license.

SpiderMonkey 1.8.5 is the most recent standalone source code release.  It implements JavaScript 1.8.5, and it is largely the same engine that shipped with Firefox 4. You can download full source code here: http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz (MD5 checksum: a4574365938222adca0a6bd33329cb32).

Documentation

General

SpiderMonkey Build Documentation
How to get SpiderMonkey source code, build it, and run the test suite.
Introduction to the JavaScript shell
How to get, build, and use the JavaScript shell.
Running Automated JavaScript Tests
How to run the JavaScript test suites.
Creating JavaScript tests
How to add tests to the JavaScript test suites.
New to SpiderMonkey
A guide to hacking on SpiderMonkey.
Setting up CDT to work on SpiderMonkey
How to configure Eclipse to work on the SpiderMonkey code.

JSAPI

JSAPI User Guide
This guide provides an overview of SpiderMonkey and describes how you can embed engine calls in your applications to make them JavaScript-aware.
JSAPI Phrasebook
Shows the JSAPI translation of some commonly used JavaScript expressions and statements.
JSAPI Reference
SpiderMonkey API reference.
Bytecode Reference
SpiderMonkey bytecode reference.
JS Debugger API Guide
A user guide to the new JavaScript Debugger API introduced in Gecko 8.0 {{ geckoRelease("8.0") }}.
JS Debugger API Reference
API reference for the Debugger object introduced in SpiderMonkey 1.8.6, which corresponds to Gecko 8.0 {{ geckoRelease("8.0") }}.

Tips, tricks and philosophy

How to embed the JavaScript engine
A bare-bones tutorial about embedding SpiderMonkey.
SpiderMonkey Garbage Collection Tips
Tips on avoiding garbage collector pitfalls.
SpiderMonkey Internals
A design overview and a file-by-file walkthrough of the implementation.
SpiderMonkey Internals: GC
Separate internals article on the GC.
SpiderMonkey Internals: Thread Safety
How SpiderMonkey's request model works inside.

Community

Join the user mailing list: {{ DiscussionList("dev-tech-js-engine", "mozilla.dev.tech.js-engine") }}

Join the internals mailing list: {{ DiscussionList("dev-tech-js-internals", "mozilla.dev.tech.js-internals") }}

Questions? Ask on IRC!

See also SpiderMonkey tag on StackOverflow.

Bugs? File them!

Revision Source

<p><strong>SpiderMonkey</strong> is Mozilla's <a href="/en-US/docs/JavaScript" title="en-US/docs/JavaScript">JavaScript</a> engine written in C/C++. It is used in various Mozilla products, including Firefox, and is available under MPL/GPL/LGPL tri-license.</p>
<p><a href="/en-US/docs/SpiderMonkey/1.8.5" title="SpiderMonkey 1.8.5 Release Notes">SpiderMonkey 1.8.5</a> is the most recent standalone source code release.&nbsp; It implements JavaScript 1.8.5, and it is largely the same engine that shipped with Firefox 4. You can download full source code here: <a class="external" href="http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz" rel="external nofollow" target="_blank" title="http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz">http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz</a> (MD5 checksum: a4574365938222adca0a6bd33329cb32).</p>
<table class="topicpage-table">
  <tbody>
    <tr>
      <td><h2 class="Documentation" id="Documentation" name="Documentation">Documentation</h2>
        <h3 id="General">General</h3>
        <dl>
          <dt><a href="/en-US/docs/SpiderMonkey/Build_Documentation" title="SpiderMonkey build documentation">SpiderMonkey Build Documentation</a></dt>
          <dd>How to get SpiderMonkey source code, build it, and run the test suite.</dd>
          <dt><a href="/en-US/docs/SpiderMonkey/Introduction_to_the_JavaScript_shell" title="Introduction to the JavaScript shell">Introduction to the JavaScript shell</a></dt>
          <dd>How to get, build, and use the JavaScript shell.</dd>
          <dt><a href="/en-US/docs/SpiderMonkey/Running_Automated_JavaScript_Tests" title="Running automated JavaScript tests">Running Automated JavaScript Tests</a></dt>
          <dd>How to run the JavaScript test suites.</dd>
          <dt><a href="/en-US/docs/SpiderMonkey/Creating_JavaScript_tests" title="en-US/docs/SpiderMonkey/Creating JavaScript tests">Creating JavaScript tests</a></dt>
          <dd>How to add tests to the JavaScript test suites.</dd>
          <dt><a class="link-https" href="https://wiki.mozilla.org/JavaScript:New_to_SpiderMonkey" title="https://wiki.mozilla.org/JavaScript:New_to_SpiderMonkey">New to SpiderMonkey</a></dt>
          <dd>A guide to hacking on SpiderMonkey.</dd>
          <dt><a href="/en-US/docs/SpiderMonkey/Setting_up_CDT_to_work_on_SpiderMonkey" title="en-US/docs/SpiderMonkey/Setting up CDT to work on SpiderMonkey">Setting up CDT to work on SpiderMonkey</a></dt>
          <dd>How to configure Eclipse to work on the SpiderMonkey code.</dd>
        </dl>
        <h3 id="JSAPI">JSAPI</h3>
        <dl>
          <dt><a href="/en-US/docs/SpiderMonkey/JSAPI_User_Guide" title="en-US/docs/JSAPI_User_Guide">JSAPI User Guide</a></dt>
          <dd>This guide provides an overview of SpiderMonkey and describes how you can embed engine calls in your applications to make them JavaScript-aware.</dd>
          <dt><a href="/en-US/docs/SpiderMonkey/JSAPI_Cookbook" title="en-US/docs/SpiderMonkey/JSAPI_Phrasebook">JSAPI Phrasebook</a></dt>
          <dd>Shows the JSAPI translation of some commonly used JavaScript expressions and statements.</dd>
          <dt><a href="/en-US/docs/SpiderMonkey/JSAPI_Reference" title="en-US/docs/SpiderMonkey/JSAPI_Reference">JSAPI Reference</a></dt>
          <dd>SpiderMonkey API reference.</dd>
          <dt><a href="/en-US/docs/SpiderMonkey/Bytecodes" title="en-US/docs/SpiderMonkey/Bytecodes">Bytecode Reference</a></dt>
          <dd>SpiderMonkey bytecode reference.</dd>
          <dt><a href="/en-US/docs/SpiderMonkey/JS_Debugger_API_Guide" title="en-US/docs/SpiderMonkey/JS Debugger API Guide">JS Debugger API Guide</a></dt>
          <dd>A user guide to the new JavaScript Debugger API introduced in Gecko 8.0 {{ geckoRelease("8.0") }}.</dd>
          <dt><a href="/en-US/docs/SpiderMonkey/JS_Debugger_API_Reference" title="en-US/docs/SpiderMonkey/JS Debugger API Reference">JS Debugger API Reference</a></dt>
          <dd>API reference for the <code>Debugger</code> object introduced in SpiderMonkey 1.8.6, which corresponds to Gecko 8.0 {{ geckoRelease("8.0") }}.</dd>
        </dl>
        <h3 id="Tips.2C_tricks_and_philosophy">Tips, tricks and philosophy</h3>
        <dl>
          <dt><a href="/en-US/docs/How_to_embed_the_JavaScript_engine" title="en-US/docs/How_to_embed_the_JavaScript_engine">How to embed the JavaScript engine</a></dt>
          <dd>A bare-bones tutorial about embedding SpiderMonkey.</dd>
          <dt><a href="/en-US/docs/SpiderMonkey_Garbage_Collection_Tips" title="en-US/docs/SpiderMonkey_Garbage_Collection_Tips">SpiderMonkey Garbage Collection Tips</a></dt>
          <dd>Tips on avoiding garbage collector pitfalls.</dd>
          <dt><a href="/en-US/docs/SpiderMonkey/Internals" title="en-US/docs/SpiderMonkey_Internals">SpiderMonkey Internals</a></dt>
          <dd>A design overview and a file-by-file walkthrough of the implementation.</dd>
          <dt><a href="/en-US/docs/SpiderMonkey/Internals/Garbage_collection" title="en-US/docs/SpiderMonkey/Internals/GC">SpiderMonkey Internals: GC</a></dt>
          <dd>Separate internals article on the GC.</dd>
          <dt><a href="/en-US/docs/SpiderMonkey/Internals/Thread_Safety" title="en-US/docs/SpiderMonkey_Internals/Thread_Safety">SpiderMonkey Internals: Thread Safety</a></dt>
          <dd>How SpiderMonkey's request model works inside.</dd>
        </dl></td>
      <td><h2 class="Related_Topics" id="Related_Topics" name="Related_Topics">Related Topics</h2>
        <ul>
          <li><a href="/en-US/docs/JavaScript" title="en-US/docs/JavaScript">JavaScript</a></li>
          <li><a href="/en-US/docs/SpiderMonkey/FOSS" title="en-US/docs/SpiderMonkey/FOSS">FOSS projects using or based on SpiderMonkey</a></li>
        </ul>
        <h2 class="Community" id="Community" name="Community">Community</h2>
        <p>Join the user mailing list: {{ DiscussionList("dev-tech-js-engine", "mozilla.dev.tech.js-engine") }}</p>
        <p>Join the internals mailing list: {{ DiscussionList("dev-tech-js-internals", "mozilla.dev.tech.js-internals") }}</p>
        <p>Questions? <a class="link-irc" href="irc://irc.mozilla.org/jsapi">Ask on IRC!</a></p>
        <p>See also <a class="external" href="http://stackoverflow.com/questions/tagged/spidermonkey" title="http://infomonkey.cdleary.com/">SpiderMonkey</a> tag on StackOverflow.</p>
        <p>Bugs? <a class="link-https" href="https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&amp;component=JavaScript%20Engine" title="https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&amp;component=JavaScript Engine">File them</a>!</p></td>
    </tr>
  </tbody>
</table>
Revert to this revision