Confirmed users, Bureaucrats and Sysops emeriti
419
edits
(Created page with '== Basis == The JavaScript:SpiderMonkey:Coding_Style C guidelines apply unless overridden here. If this becomes awkward we should fork and diverge instead of referencing. T...') |
|||
| Line 23: | Line 23: | ||
* Most macros become inline helpers. With LiveConnect gone on mozilla-central, we can make the helpers methods of relevant structs or classes finally, instead of static inline functions. | * Most macros become inline helpers. With LiveConnect gone on mozilla-central, we can make the helpers methods of relevant structs or classes finally, instead of static inline functions. | ||
* Based on 20+ years of bad experiences, we are going to go slow and resist virtual methods and bases, MI, and the like. Function pointer tables for now, as before -- see [https://bugzilla.mozilla.org/show_bug.cgi?id=408416 JSObjectOps needs a make-over]. | * Based on 20+ years of bad experiences, we are going to go slow and resist virtual methods and bases, MI, and the like. Function pointer tables for now, as before -- see [https://bugzilla.mozilla.org/show_bug.cgi?id=408416 JSObjectOps needs a make-over]. | ||
* Templates are good, Mozilla has positive experience and the portability is there for the kind of [RAII] helpers we need. | * Templates are good, Mozilla has positive experience and the portability is there for the kind of [http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization RAII] helpers we need. | ||
* No exceptions, so std is hard to use. Sayrer suggests using v8's vector type to get started. | * No exceptions, so std is hard to use. Sayrer suggests using v8's vector type to get started. | ||
* We would benefit from better hashtable API | * We would benefit from better hashtable API. Implementation, in targeted ways (delegate free and removed sentinel representation so that the double hashtable entry can be a word; improve bit-mixing into multiplicative hash if the cycle costs can be supported), but measurement is required and we should understand down to the bits what is going on. | ||