120
edits
(About to start mercurial queues.) |
|||
Line 204: | Line 204: | ||
=== Code considerations === | === Code considerations === | ||
==== Repository ==== | |||
Most active work on SpiderMonkey is done in the [http://hg.mozilla.org/tracemonkey] branch of the mozilla repository. Currently, there is also work in the [http://hg.mozilla.org/jaegermonkey JaegerMonkey] branch, but this should be merged back to Tracemonkey very soon. The main Mozilla branch is [http://hg.mozilla.org/mozilla-central Mozilla-central], to which sayrer merges our code each week. | |||
==== Coding Style ==== | |||
For many years, SpiderMonkey was written in C, and is gradually moving to C++. We still avoid many features such as run-time type information and virtual functions, but have come around to the glory of templates and namespaces relatively recently. Read the [[JavaScript:SpiderMonkey:C++ Coding Style up-to-date coding guidelines]]. Do NOT read the older coding guidelines, which I will not link to, since they are very out of date. | |||
==== Workflow ==== | |||
As stated above, everything goes through bugzilla. We find a bug or have an idea, then submit it to bugzilla, then file patches to solve it. Since most of our lives involves patches, and we use Mercurial, nearly everybody uses Mercurial queues. | |||
=== MQ === | |||
- Overview | - Overview | ||
Line 210: | Line 224: | ||
- hgrc file | - hgrc file | ||
- useful plugins | - useful plugins | ||
- Tests | - Tests | ||
- coding style | - coding style | ||
- ignore old doc | - ignore old doc |
edits