| AutoMemMap.cpp |
|
2740 |
- |
| AutoMemMap.h |
|
2047 |
100 % |
| ChromeScriptLoader.cpp |
|
18681 |
- |
| ComponentUtils.sys.mjs |
Deprecated utilities for JavaScript components loaded by the JS component
loader.
|
990 |
100 % |
| IOBuffers.h |
|
3529 |
97 % |
| moz.build |
|
1241 |
- |
| mozJSLoaderUtils.cpp |
|
2362 |
- |
| mozJSLoaderUtils.h |
mozJSLoaderUtils_h |
962 |
- |
| mozJSModuleLoader.cpp |
|
39893 |
91 % |
| mozJSModuleLoader.h |
|
8698 |
100 % |
| mozJSSubScriptLoader.cpp |
load() error msgs, XXX localize? |
16799 |
- |
| mozJSSubScriptLoader.h |
829814d6-1dd2-11b2-8e08-82fa0a339b00 |
1825 |
- |
| nsImportModule.cpp |
|
2444 |
- |
| nsImportModule.h |
Usage with exported name:
Foo.sys.mjs:
export function foo(bar) {
return bar.toString();
}
mozIFoo.idl:
interface mozIFoo : nsISupports {
AString foo(double meh);
}
Thing.cpp:
nsCOMPtr<mozIFoo> foo = do_ImportESModule(
"resource://meh/Foo.sys.mjs");
MOZ_TRY(foo->Foo(42));
Usage with a single named object:
Foo.sys.mjs:
export var Foo = {
function foo(bar) {
return bar.toString();
}
};
Thing.cpp:
nsCOMPtr<mozIFoo> foo = do_ImportESModule(
"resource:://meh/Foo.sys.mjs", "Foo");
|
3522 |
92 % |
| PrecompiledScript.h |
|
1787 |
100 % |
| PScriptCache.ipdl |
|
882 |
- |
| script_cache.py |
Usage: script_cache.py <file.bin> ...
Decodes and prints out the contents of a startup script cache file
(e.g., startupCache/scriptCache.bin) in human-readable form. |
2440 |
- |
| ScriptCacheActors.cpp |
|
2896 |
- |
| ScriptCacheActors.h |
|
1381 |
67 % |
| ScriptPreloader-inl.h |
|
3833 |
- |
| ScriptPreloader.cpp |
|
49569 |
- |
| ScriptPreloader.h |
|
19505 |
100 % |
| SyncModuleLoader.cpp |
|
8475 |
- |
| SyncModuleLoader.h |
|
3408 |
100 % |
| URLPreloader.cpp |
|
20265 |
- |
| URLPreloader.h |
A singleton class to manage loading local URLs during startup, recording
them, and pre-loading them during early startup in the next session. URLs
that are not already loaded (or already being pre-loaded) when required are
read synchronously from disk, and (if startup is not already complete)
added to the pre-load list for the next session.
|
9989 |
92 % |
| XPCOMUtils.sys.mjs |
Redefines the given property on the given object with the given
value. This can be used to redefine getter properties which do not
implement setters.
|
13914 |
86 % |