Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 612003 of SpiderMonkey

  • Slug da revisão: Mozilla/Projects/SpiderMonkey
  • Título da revisão: SpiderMonkey
  • ID da revisão: 612003
  • Criado:
  • Autor: YaroTek
  • É a revisão atual? Sim
  • Comentário

Conteúdo da revisão

SpiderMonkey is Mozilla's JavaScript engine written in C/C++. It is used in various Mozilla products, including Firefox, and is available under the MPL2.

SpiderMonkey 24 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 24. Full source code is available here: https://ftp.mozilla.org/pub/mozilla.org/js/mozjs-24.2.0.tar.bz2 (SHA1 checksum: ce779081cc11bd0c871c6f303fc4a0091cf4fe66).

The next release will be SpiderMonkey 31, around July 2014.

Documentation

SpiderMonkey Build Documentation
How to get SpiderMonkey source code, build it, and run the test suite.
Introduction to the JavaScript shell
Documentation of the command-line JavaScript shell, js.

Using SpiderMonkey

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.
GC Rooting Guide
Guide on how to write code compatible with the Generational GC in SpiderMonkey.
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") }}.
How to embed the JavaScript engine
An older tutorial about embedding SpiderMonkey.

{{CommunityBox("SpiderMonkey users", "dev-tech-js-engine", "mozilla.dev.tech.js-engine", "jsapi", "Stack Overflow|https://stackoverflow.com/questions/tagged/spidermonkey|SpiderMonkey topics|Visit Stack Overflow, a collaboratively built and maintained Q&A site. See if you can find an answer; if not, you can ask your question there.||Bugs?|https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&component=JavaScript%20Engine|Report them!")}}

 

Hacking on SpiderMonkey

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.
Running Automated JavaScript Tests
How to run the JavaScript test suites.
Creating JavaScript tests
How to add tests to the JavaScript test suites.

Tips, tricks and philosophy

Future Directions
Future directions for functionality, design, and coding practices.
SpiderMonkey Internals
A design overview and a file-by-file walkthrough of the implementation.
Bytecode Reference
SpiderMonkey bytecode reference.
SpiderMonkey Internals: GC
Separate internals article on the GC
SpiderMonkey Internals: Thread Safety
How SpiderMonkey's request model works inside
SpiderMonkey Internals: Hacking Tips
Collection of helpful tips & tools for hacking on the engine

{{CommunityBox("SpiderMonkey developers", "dev-tech-js-engine-internals", "mozilla.dev.tech.js-engine.internals", "jsapi")}}

 

Fonte da revisão

<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 the MPL2.</p>
<p><a href="/en-US/docs/SpiderMonkey/24" title="/en-US/docs/SpiderMonkey/24">SpiderMonkey 24</a> 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 24. Full source code is available here:&nbsp;<a href="https://ftp.mozilla.org/pub/mozilla.org/js/mozjs-24.2.0.tar.bz2">https://ftp.mozilla.org/pub/mozilla.org/js/mozjs-24.2.0.tar.bz2</a> (SHA1 checksum: ce779081cc11bd0c871c6f303fc4a0091cf4fe66).</p>
<p>The next release will be SpiderMonkey 31, around July 2014.</p>
<table class="topicpage-table">
 <tbody>
  <tr>
   <td>
    <h2 class="Documentation" id="Documentation" name="Documentation">Documentation</h2>
    <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>
      Documentation of the command-line JavaScript shell, <code>js</code>.</dd>
    </dl>
    <h2 id="Using_SpiderMonkey">Using SpiderMonkey</h2>
    <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/GC_Rooting_Guide">GC Rooting Guide</a></dt>
     <dd>
      Guide on how to write code compatible with the Generational GC in SpiderMonkey.</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>
     <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>
      An older tutorial about embedding SpiderMonkey.</dd>
    </dl>
    <p>{{CommunityBox("SpiderMonkey users", "dev-tech-js-engine", "mozilla.dev.tech.js-engine", "jsapi", "Stack Overflow|https://stackoverflow.com/questions/tagged/spidermonkey|SpiderMonkey topics|Visit Stack Overflow, a collaboratively built and maintained Q&amp;A site. See if you can find an answer; if not, you can ask your question there.||Bugs?|https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&amp;component=JavaScript%20Engine|Report them!")}}</p>
   </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>
    <p>&nbsp;</p>
    <h2 id="Hacking_on_SpiderMonkey">Hacking on SpiderMonkey</h2>
    <dl>
     <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>
    <dl>
     <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>
    </dl>
    <h3 id="Tips.2C_tricks_and_philosophy">Tips, tricks and philosophy</h3>
    <dl>
     <dt>
      <a href="/en-US/docs/SpiderMonkey/Future_directions" title="en-US/docs/SpiderMonkey/Future_directions">Future Directions</a></dt>
     <dd>
      Future directions for functionality, design, and coding practices.</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/Bytecodes" title="en-US/docs/SpiderMonkey/Bytecodes">Bytecode Reference</a></dt>
     <dd>
      SpiderMonkey bytecode reference.</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>
     <dt>
      <a href="/en-US/docs/SpiderMonkey/Hacking_Tips" title="en-US/docs/SpiderMonkey/Hacking_Tips">SpiderMonkey Internals: Hacking Tips </a></dt>
     <dd>
      Collection of helpful tips &amp; tools for hacking on the engine</dd>
    </dl>
    <p>{{CommunityBox("SpiderMonkey developers", "dev-tech-js-engine-internals", "mozilla.dev.tech.js-engine.internals", "jsapi")}}</p>
   </td>
  </tr>
 </tbody>
</table>
<p>&nbsp;</p>
Reverter para esta revisão