Compare Revisions

Self-hosted builtins in SpiderMonkey

Revision 343443:

Revision 343443 by Norbert on

Revision 343445:

Revision 343445 by Norbert on

Title:
Self-hosted builtins in SpiderMonkey
Self-hosted builtins in SpiderMonkey
Slug:
SpiderMonkey/Internals/self-hosting
SpiderMonkey/Internals/self-hosting
Tags:
"SpiderMonkey","JavaScript"
"SpiderMonkey","JavaScript"
Content:

Revision 343443
Revision 343445
n19      Self-hosted functions invoked in a <code>null</code> or <con19      Self-hosted functions invoked in a <code>null</code> or <co
>de>undefined</code> scope won't be run in the scope of the global>de>undefined</code> scope won't be run in the scope of the global
> object. Normally, this is only true for strict-mode JS. This dev> object. Normally, this is only true for strict-mode JS. This dev
>iation has been implemented to work around some serious performan>iation has been implemented to work around some serious performan
>ce degradations associated with strict mode that made converting >ce degradations associated with strict mode that made converting 
>natively implemented functions to JS infeasible.>natively implemented functions to JS infeasible. Self-hosted code
 > currently cannot be declared strict.
n37        <code>ThrowError</code>, which self-hosted code should usn37        <code>ThrowError</code>, which self-hosted code should us
>e instead of throw so that the error message is specified in <a h>e instead of <code>throw</code> so that the error message is spec
>ref="http://mxr.mozilla.org/mozilla-central/source/js/src/js.msg">ified in <a href="http://mxr.mozilla.org/mozilla-central/source/j
> title="http://mxr.mozilla.org/mozilla-central/source/js/src/js.m>s/src/js.msg" title="http://mxr.mozilla.org/mozilla-central/sourc
>sg">js.msg</a> and can be localized.>e/js/src/js.msg">js.msg</a> and can be localized.
t43      Standard built-in functions generally are specified such tht43      Standard built-in functions generally are specified such th
>at their behavior does not change when application code replaces >at their behavior does not change when application code replaces 
>other built-in functions. On the other hand, self-hosted code oft>other built-in functions. On the other hand, self-hosted code oft
>en relies on other built-in functions, especially for string proc>en relies on other built-in functions, especially for string proc
>essing or list handling. The file <a href="http://mxr.mozilla.org>essing or list handling. The <a href="http://mxr.mozilla.org/mozi
>/mozilla-central/source/js/src/builtin/Utilities.js" title="http:>lla-central/source/js/src/builtin/Utilities.js" title="http://mxr
>//mxr.mozilla.org/mozilla-central/source/js/src/builtin/Utilities>.mozilla.org/mozilla-central/source/js/src/builtin/Utilities.js">
>.js">Utilities.js</a> provides some support for doing so safely:>Utilities.js</a> provides some support for doing so safely:

Back to History